-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathlpinterpreter_opcodecase.inc
48 lines (42 loc) · 1.35 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
43
44
45
46
47
48
{
Author: Niels A.D
Project: Lape (https://github.com/nielsAD/lape)
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 opCodeP(Code)^ of
ocNone: Break;
ocIsScriptMethod: DoIsScriptMethod();
ocGetExceptionMessage: DoGetExceptionMessage();
ocGetExceptionLocation: DoGetExceptionLocation();
ocGetCallerLocation: DoGetCallerLocation();
ocGetCallerAddress: DoGetCallerAddress();
ocGetScriptMethodName: DoGetScriptMethodName();
ocDumpCallStack: DoDumpCallStack();
ocInitStackLen: DoInitStackLen();
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();
ocReRaiseException: DoReRaiseException();
ocDecCall: DoDecCall();
ocDecCall_EndTry: DoDecCall_EndTry();
{$I lpinterpreter_invokecase.inc}
{$I lpinterpreter_jumpcase.inc}
{$I lpinterpreter_evalcase.inc}
else
LapeException(lpeUnknownOC);
end;