-
Notifications
You must be signed in to change notification settings - Fork 4
/
lpinterpreter_opcodecase.inc
42 lines (36 loc) · 1.07 KB
/
lpinterpreter_opcodecase.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
Author: Niels A.D
Project: Lape (http://code.google.com/p/la-pe/)
License: GNU Lesser GPL (http://www.gnu.org/licenses/lgpl.html)
This is include directs the opcode to the correct function.
}
{%MainUnit lpinterpreter.pas}
case opCode(opCodeTypeP(Code)^) of
ocNone: Break;
ocIsInternal: DoCheckInternal();
ocInitStackLen: DoInitStackLen();
ocInitVarLen: DoInitVarLen();
ocInitStack: DoInitStack();
ocGrowStack: DoGrowStack();
ocExpandVar: DoExpandVar();
ocExpandVarAndInit: DoExpandVarAndInit();
ocGrowVar: DoGrowVar();
ocGrowVarAndInit: DoGrowVarAndInit();
ocPopVar: DoPopVar();
ocPopStackToVar: DoPopStackToVar();
ocPopVarToStack: DoPopVarToStack();
ocJmpVar: DoJmpVar();
ocJmpSafe: DoJmpSafe();
ocJmpSafeR: DoJmpSafeR();
ocIncTry: DoIncTry();
ocDecTry: DoDecTry();
ocEndTry: DoEndTry();
ocCatchException: DoCatchException();
ocDecCall: DoDecCall();
ocDecCall_EndTry: DoDecCall_EndTry();
{$I lpinterpreter_invokecase.inc}
{$I lpinterpreter_jumpcase.inc}
{$I lpinterpreter_evalcase.inc}
else
LapeException(lpeUnknownOC);
end;