-
Notifications
You must be signed in to change notification settings - Fork 71
/
interpreter.h
66 lines (46 loc) · 1.58 KB
/
interpreter.h
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef INCLUDE_INTERPRETER_H_
#define INCLUDE_INTERPRETER_H_
//#include "cogmethod.h"
#include "interp.h"
sqInt stSizeOf(sqInt oop);
sqInt stObjectat(sqInt array, sqInt index);
sqInt stObjectatput(sqInt array, sqInt index, sqInt value);
sqInt stackIntegerValue(sqInt offset);
sqInt stackObjectValue(sqInt offset);
sqInt stackValue(sqInt offset);
sqInt integerObjectOf(sqInt value);
sqInt integerValueOf(sqInt oop);
sqInt methodReturnInteger(sqInt integer);
sqInt isPinned(sqInt objOop);
sqInt isPointers(sqInt oop);
sqInt stSizeOf(sqInt oop);
sqInt slotSizeOf(sqInt oop);
sqInt isKindOfClass(sqInt, sqInt);
sqInt instantiateClassindexableSize(sqInt, sqInt);
sqInt classExternalAddress(void);
void * firstIndexableField(sqInt objOop);
sqInt classArray(void);
sqInt classByteArray(void);
sqInt classString(void);
sqInt classExternalAddress(void);
sqInt classFloat(void);
sqInt trueObject(void);
sqInt falseObject(void);
sqInt methodArgumentCount(void);
void pushFloat(double f);
sqInt pushInteger(sqInt integerValue);
void push(sqInt object);
sqInt failed(void);
sqInt primitiveFailFor(sqInt);
sqInt forceInterruptCheck(void);
sqInt doSignalSemaphoreWithIndex(sqInt semaIndex);
sqInt getExternalSemaphoreWithIndex(sqInt index);
void doWaitSemaphore(sqInt sema);
void doWaitSemaphorereEnterInterpreter(sqInt sema, sqInt hasToReenter);
sqInt fetchPointerofObject(sqInt, sqInt);
sqInt stringForCString(const char*);
sqInt ptEnterInterpreterFromCallback(void*);
sqInt ptExitInterpreterToCallback(void*);
int osCogStackPageHeadroom();
sqInt isForwarded(sqInt oop);
#endif /* INCLUDE_INTERPRETER_H_ */