OpenCoverage

qv4runtimeapi_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4runtimeapi_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5namespace QV4 {-
6-
7typedef uint Bool;-
8struct NoThrowEngine;-
9namespace {-
10template <typename T>-
11struct ExceptionCheck {-
12 enum { NeedsCheck = 1 };-
13};-
14-
15template <>-
16struct ExceptionCheck<void (*)(QV4::NoThrowEngine *)> {-
17 enum { NeedsCheck = 0 };-
18};-
19template <typename A>-
20struct ExceptionCheck<void (*)(A, QV4::NoThrowEngine)> {-
21 enum { NeedsCheck = 0 };-
22};-
23template <>-
24struct ExceptionCheck<QV4::ReturnedValue (*)(QV4::NoThrowEngine *)> {-
25 enum { NeedsCheck = 0 };-
26};-
27template <typename A>-
28struct ExceptionCheck<QV4::ReturnedValue (*)(QV4::NoThrowEngine *, A)> {-
29 enum { NeedsCheck = 0 };-
30};-
31template <typename A, typename B>-
32struct ExceptionCheck<QV4::ReturnedValue (*)(QV4::NoThrowEngine *, A, B)> {-
33 enum { NeedsCheck = 0 };-
34};-
35template <typename A, typename B, typename C>-
36struct ExceptionCheck<void (*)(QV4::NoThrowEngine *, A, B, C)> {-
37 enum { NeedsCheck = 0 };-
38};-
39}-
40struct __attribute__((visibility("default"))) Runtime {-
41 Runtime();-
42-
43 typedef ReturnedValue (*UnaryOperation)(const Value &value);-
44 typedef ReturnedValue (*BinaryOperation)(const Value &left, const Value &right);-
45 typedef ReturnedValue (*BinaryOperationContext)(ExecutionEngine *engine, const Value &left, const Value &right);-
46-
47-
48 enum RuntimeMethods {-
49 callGlobalLookup, callName, callProperty, callPropertyLookup, callElement, callValue, callPossiblyDirectEval, callWithSpread, construct, constructWithSpread, storeNameStrict, storeNameSloppy, storeProperty, storeElement, loadProperty, loadName, loadElement, loadSuperProperty, storeSuperProperty, typeofValue, typeofName, deleteProperty, deleteName, throwException, createWithContext, createCatchContext, createBlockContext, createScriptContext, cloneBlockContext, popScriptContext, closure, declareVar, createMappedArgumentsObject, createUnmappedArgumentsObject, createRestParameter, arrayLiteral, objectLiteral, createClass, getIterator, iteratorNext, iteratorClose, destructureRestElement, uMinus, instanceof, in, add, sub, mul, div, mod, shl, shr, ushr, greaterThan, lessThan, greaterEqual, lessEqual, equal, notEqual, strictEqual, strictNotEqual, compareGreaterThan, compareLessThan, compareGreaterEqual, compareLessEqual, compareEqual, compareNotEqual, compareStrictEqual, compareStrictNotEqual, compareInstanceof, compareIn, regexpLiteral, loadQmlContext, loadQmlImportedScripts, loadQmlScopeObjectProperty, loadQmlContextObjectProperty, loadQmlIdObject, callQmlScopeObjectProperty, callQmlContextObjectProperty, storeQmlScopeObjectProperty, storeQmlContextObjectProperty,-
50 RuntimeMethodCount,-
51 InvalidRuntimeMethod = RuntimeMethodCount-
52 };-
53-
54-
55 void *runtimeMethods[RuntimeMethodCount];-
56-
57 static uint runtimeMethodOffset(RuntimeMethods method) { return
never executed: return method*8;
method*8;
never executed: return method*8;
}
0
58-
59-
60-
61-
62-
63 typedef ReturnedValue (*Method_callGlobalLookup)(ExecutionEngine *engine, uint index, Value *argv, int argc); enum { Method_callGlobalLookup_NeedsExceptionCheck = ExceptionCheck<Method_callGlobalLookup>::NeedsCheck }; static ReturnedValue method_callGlobalLookup (ExecutionEngine *engine, uint index, Value *argv, int argc); typedef ReturnedValue (*Method_callName)(ExecutionEngine *engine, int nameIndex, Value *argv, int argc); enum { Method_callName_NeedsExceptionCheck = ExceptionCheck<Method_callName>::NeedsCheck }; static ReturnedValue method_callName (ExecutionEngine *engine, int nameIndex, Value *argv, int argc); typedef ReturnedValue (*Method_callProperty)(ExecutionEngine *engine, Value *base, int nameIndex, Value *argv, int argc); enum { Method_callProperty_NeedsExceptionCheck = ExceptionCheck<Method_callProperty>::NeedsCheck }; static ReturnedValue method_callProperty (ExecutionEngine *engine, Value *base, int nameIndex, Value *argv, int argc); typedef ReturnedValue (*Method_callPropertyLookup)(ExecutionEngine *engine, Value *base, uint index, Value *argv, int argc); enum { Method_callPropertyLookup_NeedsExceptionCheck = ExceptionCheck<Method_callPropertyLookup>::NeedsCheck }; static ReturnedValue method_callPropertyLookup (ExecutionEngine *engine, Value *base, uint index, Value *argv, int argc); typedef ReturnedValue (*Method_callElement)(ExecutionEngine *engine, Value *base, const Value &index, Value *argv, int argc); enum { Method_callElement_NeedsExceptionCheck = ExceptionCheck<Method_callElement>::NeedsCheck }; static ReturnedValue method_callElement (ExecutionEngine *engine, Value *base, const Value &index, Value *argv, int argc); typedef ReturnedValue (*Method_callValue)(ExecutionEngine *engine, const Value &func, Value *argv, int argc); enum { Method_callValue_NeedsExceptionCheck = ExceptionCheck<Method_callValue>::NeedsCheck }; static ReturnedValue method_callValue (ExecutionEngine *engine, const Value &func, Value *argv, int argc); typedef ReturnedValue (*Method_callPossiblyDirectEval)(ExecutionEngine *engine, Value *argv, int argc); enum { Method_callPossiblyDirectEval_NeedsExceptionCheck = ExceptionCheck<Method_callPossiblyDirectEval>::NeedsCheck }; static ReturnedValue method_callPossiblyDirectEval (ExecutionEngine *engine, Value *argv, int argc); typedef ReturnedValue (*Method_callWithSpread)(ExecutionEngine *engine, const Value &func, const Value &thisObject, Value *argv, int argc); enum { Method_callWithSpread_NeedsExceptionCheck = ExceptionCheck<Method_callWithSpread>::NeedsCheck }; static ReturnedValue method_callWithSpread (ExecutionEngine *engine, const Value &func, const Value &thisObject, Value *argv, int argc); typedef ReturnedValue (*Method_construct)(ExecutionEngine *engine, const Value &func, const Value &newTarget, Value *argv, int argc); enum { Method_construct_NeedsExceptionCheck = ExceptionCheck<Method_construct>::NeedsCheck }; static ReturnedValue method_construct (ExecutionEngine *engine, const Value &func, const Value &newTarget, Value *argv, int argc); typedef ReturnedValue (*Method_constructWithSpread)(ExecutionEngine *engine, const Value &func, const Value &newTarget, Value *argv, int argc); enum { Method_constructWithSpread_NeedsExceptionCheck = ExceptionCheck<Method_constructWithSpread>::NeedsCheck }; static ReturnedValue method_constructWithSpread (ExecutionEngine *engine, const Value &func, const Value &newTarget, Value *argv, int argc); typedef void (*Method_storeNameStrict)(ExecutionEngine *engine, int nameIndex, const Value &value); enum { Method_storeNameStrict_NeedsExceptionCheck = ExceptionCheck<Method_storeNameStrict>::NeedsCheck }; static void method_storeNameStrict (ExecutionEngine *engine, int nameIndex, const Value &value); typedef void (*Method_storeNameSloppy)(ExecutionEngine *engine, int nameIndex, const Value &value); enum { Method_storeNameSloppy_NeedsExceptionCheck = ExceptionCheck<Method_storeNameSloppy>::NeedsCheck }; static void method_storeNameSloppy (ExecutionEngine *engine, int nameIndex, const Value &value); typedef void (*Method_storeProperty)(ExecutionEngine *engine, const Value &object, int nameIndex, const Value &value); enum { Method_storeProperty_NeedsExceptionCheck = ExceptionCheck<Method_storeProperty>::NeedsCheck }; static void method_storeProperty (ExecutionEngine *engine, const Value &object, int nameIndex, const Value &value); typedef void (*Method_storeElement)(ExecutionEngine *engine, const Value &object, const Value &index, const Value &value); enum { Method_storeElement_NeedsExceptionCheck = ExceptionCheck<Method_storeElement>::NeedsCheck }; static void method_storeElement (ExecutionEngine *engine, const Value &object, const Value &index, const Value &value); typedef ReturnedValue (*Method_loadProperty)(ExecutionEngine *engine, const Value &object, int nameIndex); enum { Method_loadProperty_NeedsExceptionCheck = ExceptionCheck<Method_loadProperty>::NeedsCheck }; static ReturnedValue method_loadProperty (ExecutionEngine *engine, const Value &object, int nameIndex); typedef ReturnedValue (*Method_loadName)(ExecutionEngine *engine, int nameIndex); enum { Method_loadName_NeedsExceptionCheck = ExceptionCheck<Method_loadName>::NeedsCheck }; static ReturnedValue method_loadName (ExecutionEngine *engine, int nameIndex); typedef ReturnedValue (*Method_loadElement)(ExecutionEngine *engine, const Value &object, const Value &index); enum { Method_loadElement_NeedsExceptionCheck = ExceptionCheck<Method_loadElement>::NeedsCheck }; static ReturnedValue method_loadElement (ExecutionEngine *engine, const Value &object, const Value &index); typedef ReturnedValue (*Method_loadSuperProperty)(ExecutionEngine *engine, const Value &property); enum { Method_loadSuperProperty_NeedsExceptionCheck = ExceptionCheck<Method_loadSuperProperty>::NeedsCheck }; static ReturnedValue method_loadSuperProperty (ExecutionEngine *engine, const Value &property); typedef void (*Method_storeSuperProperty)(ExecutionEngine *engine, const Value &property, const Value &value); enum { Method_storeSuperProperty_NeedsExceptionCheck = ExceptionCheck<Method_storeSuperProperty>::NeedsCheck }; static void method_storeSuperProperty (ExecutionEngine *engine, const Value &property, const Value &value); typedef ReturnedValue (*Method_typeofValue)(ExecutionEngine *engine, const Value &val); enum { Method_typeofValue_NeedsExceptionCheck = ExceptionCheck<Method_typeofValue>::NeedsCheck }; static ReturnedValue method_typeofValue (ExecutionEngine *engine, const Value &val); typedef ReturnedValue (*Method_typeofName)(ExecutionEngine *engine, int nameIndex); enum { Method_typeofName_NeedsExceptionCheck = ExceptionCheck<Method_typeofName>::NeedsCheck }; static ReturnedValue method_typeofName (ExecutionEngine *engine, int nameIndex); typedef bool (*Method_deleteProperty)(ExecutionEngine *engine, const Value &base, const Value &index); enum { Method_deleteProperty_NeedsExceptionCheck = ExceptionCheck<Method_deleteProperty>::NeedsCheck }; static bool method_deleteProperty (ExecutionEngine *engine, const Value &base, const Value &index); typedef bool (*Method_deleteName)(ExecutionEngine *engine, int nameIndex); enum { Method_deleteName_NeedsExceptionCheck = ExceptionCheck<Method_deleteName>::NeedsCheck }; static bool method_deleteName (ExecutionEngine *engine, int nameIndex); typedef void (*Method_throwException)(ExecutionEngine *engine, const Value &value); enum { Method_throwException_NeedsExceptionCheck = ExceptionCheck<Method_throwException>::NeedsCheck }; static void method_throwException (ExecutionEngine *engine, const Value &value); typedef ReturnedValue (*Method_createWithContext)(ExecutionEngine *, Value *jsStackFrame); enum { Method_createWithContext_NeedsExceptionCheck = ExceptionCheck<Method_createWithContext>::NeedsCheck }; static ReturnedValue method_createWithContext (ExecutionEngine *, Value *jsStackFrame); typedef ReturnedValue (*Method_createCatchContext)(ExecutionContext *parent, int blockIndex, int exceptionVarNameIndex); enum { Method_createCatchContext_NeedsExceptionCheck = ExceptionCheck<Method_createCatchContext>::NeedsCheck }; static ReturnedValue method_createCatchContext (ExecutionContext *parent, int blockIndex, int exceptionVarNameIndex); typedef ReturnedValue (*Method_createBlockContext)(ExecutionContext *parent, int index); enum { Method_createBlockContext_NeedsExceptionCheck = ExceptionCheck<Method_createBlockContext>::NeedsCheck }; static ReturnedValue method_createBlockContext (ExecutionContext *parent, int index); typedef ReturnedValue (*Method_createScriptContext)(ExecutionEngine *engine, int index); enum { Method_createScriptContext_NeedsExceptionCheck = ExceptionCheck<Method_createScriptContext>::NeedsCheck }; static ReturnedValue method_createScriptContext (ExecutionEngine *engine, int index); typedef ReturnedValue (*Method_cloneBlockContext)(ExecutionContext *previous); enum { Method_cloneBlockContext_NeedsExceptionCheck = ExceptionCheck<Method_cloneBlockContext>::NeedsCheck }; static ReturnedValue method_cloneBlockContext (ExecutionContext *previous); typedef ReturnedValue (*Method_popScriptContext)(ExecutionEngine *engine); enum { Method_popScriptContext_NeedsExceptionCheck = ExceptionCheck<Method_popScriptContext>::NeedsCheck }; static ReturnedValue method_popScriptContext (ExecutionEngine *engine); typedef ReturnedValue (*Method_closure)(ExecutionEngine *engine, int functionId); enum { Method_closure_NeedsExceptionCheck = ExceptionCheck<Method_closure>::NeedsCheck }; static ReturnedValue method_closure (ExecutionEngine *engine, int functionId); typedef void (*Method_declareVar)(ExecutionEngine *engine, bool deletable, int nameIndex); enum { Method_declareVar_NeedsExceptionCheck = ExceptionCheck<Method_declareVar>::NeedsCheck }; static void method_declareVar (ExecutionEngine *engine, bool deletable, int nameIndex); typedef ReturnedValue (*Method_createMappedArgumentsObject)(ExecutionEngine *engine); enum { Method_createMappedArgumentsObject_NeedsExceptionCheck = ExceptionCheck<Method_createMappedArgumentsObject>::NeedsCheck }; static ReturnedValue method_createMappedArgumentsObject (ExecutionEngine *engine); typedef ReturnedValue (*Method_createUnmappedArgumentsObject)(ExecutionEngine *engine); enum { Method_createUnmappedArgumentsObject_NeedsExceptionCheck = ExceptionCheck<Method_createUnmappedArgumentsObject>::NeedsCheck }; static ReturnedValue method_createUnmappedArgumentsObject (ExecutionEngine *engine); typedef ReturnedValue (*Method_createRestParameter)(ExecutionEngine *engine, int argIndex); enum { Method_createRestParameter_NeedsExceptionCheck = ExceptionCheck<Method_createRestParameter>::NeedsCheck }; static ReturnedValue method_createRestParameter (ExecutionEngine *engine, int argIndex); typedef ReturnedValue (*Method_arrayLiteral)(ExecutionEngine *engine, Value *values, uint length); enum { Method_arrayLiteral_NeedsExceptionCheck = ExceptionCheck<Method_arrayLiteral>::NeedsCheck }; static ReturnedValue method_arrayLiteral (ExecutionEngine *engine, Value *values, uint length); typedef ReturnedValue (*Method_objectLiteral)(ExecutionEngine *engine, int classId, int argc, const Value *args); enum { Method_objectLiteral_NeedsExceptionCheck = ExceptionCheck<Method_objectLiteral>::NeedsCheck }; static ReturnedValue method_objectLiteral (ExecutionEngine *engine, int classId, int argc, const Value *args); typedef ReturnedValue (*Method_createClass)(ExecutionEngine *engine, int classIndex, const Value &heritage, const Value *computedNames); enum { Method_createClass_NeedsExceptionCheck = ExceptionCheck<Method_createClass>::NeedsCheck }; static ReturnedValue method_createClass (ExecutionEngine *engine, int classIndex, const Value &heritage, const Value *computedNames); typedef ReturnedValue (*Method_getIterator)(ExecutionEngine *engine, const Value &in, int iterator); enum { Method_getIterator_NeedsExceptionCheck = ExceptionCheck<Method_getIterator>::NeedsCheck }; static ReturnedValue method_getIterator (ExecutionEngine *engine, const Value &in, int iterator); typedef ReturnedValue (*Method_iteratorNext)(ExecutionEngine *engine, const Value &iterator, Value *value); enum { Method_iteratorNext_NeedsExceptionCheck = ExceptionCheck<Method_iteratorNext>::NeedsCheck }; static ReturnedValue method_iteratorNext (ExecutionEngine *engine, const Value &iterator, Value *value); typedef ReturnedValue (*Method_iteratorClose)(ExecutionEngine *engine, const Value &iterator, const Value &done); enum { Method_iteratorClose_NeedsExceptionCheck = ExceptionCheck<Method_iteratorClose>::NeedsCheck }; static ReturnedValue method_iteratorClose (ExecutionEngine *engine, const Value &iterator, const Value &done); typedef ReturnedValue (*Method_destructureRestElement)(ExecutionEngine *engine, const Value &iterator); enum { Method_destructureRestElement_NeedsExceptionCheck = ExceptionCheck<Method_destructureRestElement>::NeedsCheck }; static ReturnedValue method_destructureRestElement (ExecutionEngine *engine, const Value &iterator); typedef ReturnedValue (*Method_uMinus)(const Value &value); enum { Method_uMinus_NeedsExceptionCheck = ExceptionCheck<Method_uMinus>::NeedsCheck }; static ReturnedValue method_uMinus (const Value &value); typedef ReturnedValue (*Method_instanceof)(ExecutionEngine *engine, const Value &left, const Value &right); enum { Method_instanceof_NeedsExceptionCheck = ExceptionCheck<Method_instanceof>::NeedsCheck }; static ReturnedValue method_instanceof (ExecutionEngine *engine, const Value &left, const Value &right); typedef ReturnedValue (*Method_in)(ExecutionEngine *engine, const Value &left, const Value &right); enum { Method_in_NeedsExceptionCheck = ExceptionCheck<Method_in>::NeedsCheck }; static ReturnedValue method_in (ExecutionEngine *engine, const Value &left, const Value &right); typedef ReturnedValue (*Method_add)(ExecutionEngine *engine, const Value &left, const Value &right); enum { Method_add_NeedsExceptionCheck = ExceptionCheck<Method_add>::NeedsCheck }; static ReturnedValue method_add (ExecutionEngine *engine, const Value &left, const Value &right); typedef ReturnedValue (*Method_sub)(const Value &left, const Value &right); enum { Method_sub_NeedsExceptionCheck = ExceptionCheck<Method_sub>::NeedsCheck }; static ReturnedValue method_sub (const Value &left, const Value &right); typedef ReturnedValue (*Method_mul)(const Value &left, const Value &right); enum { Method_mul_NeedsExceptionCheck = ExceptionCheck<Method_mul>::NeedsCheck }; static ReturnedValue method_mul (const Value &left, const Value &right); typedef ReturnedValue (*Method_div)(const Value &left, const Value &right); enum { Method_div_NeedsExceptionCheck = ExceptionCheck<Method_div>::NeedsCheck }; static ReturnedValue method_div (const Value &left, const Value &right); typedef ReturnedValue (*Method_mod)(const Value &left, const Value &right); enum { Method_mod_NeedsExceptionCheck = ExceptionCheck<Method_mod>::NeedsCheck }; static ReturnedValue method_mod (const Value &left, const Value &right); typedef ReturnedValue (*Method_shl)(const Value &left, const Value &right); enum { Method_shl_NeedsExceptionCheck = ExceptionCheck<Method_shl>::NeedsCheck }; static ReturnedValue method_shl (const Value &left, const Value &right); typedef ReturnedValue (*Method_shr)(const Value &left, const Value &right); enum { Method_shr_NeedsExceptionCheck = ExceptionCheck<Method_shr>::NeedsCheck }; static ReturnedValue method_shr (const Value &left, const Value &right); typedef ReturnedValue (*Method_ushr)(const Value &left, const Value &right); enum { Method_ushr_NeedsExceptionCheck = ExceptionCheck<Method_ushr>::NeedsCheck }; static ReturnedValue method_ushr (const Value &left, const Value &right); typedef ReturnedValue (*Method_greaterThan)(const Value &left, const Value &right); enum { Method_greaterThan_NeedsExceptionCheck = ExceptionCheck<Method_greaterThan>::NeedsCheck }; static ReturnedValue method_greaterThan (const Value &left, const Value &right); typedef ReturnedValue (*Method_lessThan)(const Value &left, const Value &right); enum { Method_lessThan_NeedsExceptionCheck = ExceptionCheck<Method_lessThan>::NeedsCheck }; static ReturnedValue method_lessThan (const Value &left, const Value &right); typedef ReturnedValue (*Method_greaterEqual)(const Value &left, const Value &right); enum { Method_greaterEqual_NeedsExceptionCheck = ExceptionCheck<Method_greaterEqual>::NeedsCheck }; static ReturnedValue method_greaterEqual (const Value &left, const Value &right); typedef ReturnedValue (*Method_lessEqual)(const Value &left, const Value &right); enum { Method_lessEqual_NeedsExceptionCheck = ExceptionCheck<Method_lessEqual>::NeedsCheck }; static ReturnedValue method_lessEqual (const Value &left, const Value &right); typedef ReturnedValue (*Method_equal)(const Value &left, const Value &right); enum { Method_equal_NeedsExceptionCheck = ExceptionCheck<Method_equal>::NeedsCheck }; static ReturnedValue method_equal (const Value &left, const Value &right); typedef ReturnedValue (*Method_notEqual)(const Value &left, const Value &right); enum { Method_notEqual_NeedsExceptionCheck = ExceptionCheck<Method_notEqual>::NeedsCheck }; static ReturnedValue method_notEqual (const Value &left, const Value &right); typedef ReturnedValue (*Method_strictEqual)(const Value &left, const Value &right); enum { Method_strictEqual_NeedsExceptionCheck = ExceptionCheck<Method_strictEqual>::NeedsCheck }; static ReturnedValue method_strictEqual (const Value &left, const Value &right); typedef ReturnedValue (*Method_strictNotEqual)(const Value &left, const Value &right); enum { Method_strictNotEqual_NeedsExceptionCheck = ExceptionCheck<Method_strictNotEqual>::NeedsCheck }; static ReturnedValue method_strictNotEqual (const Value &left, const Value &right); typedef Bool (*Method_compareGreaterThan)(const Value &l, const Value &r); enum { Method_compareGreaterThan_NeedsExceptionCheck = ExceptionCheck<Method_compareGreaterThan>::NeedsCheck }; static Bool method_compareGreaterThan (const Value &l, const Value &r); typedef Bool (*Method_compareLessThan)(const Value &l, const Value &r); enum { Method_compareLessThan_NeedsExceptionCheck = ExceptionCheck<Method_compareLessThan>::NeedsCheck }; static Bool method_compareLessThan (const Value &l, const Value &r); typedef Bool (*Method_compareGreaterEqual)(const Value &l, const Value &r); enum { Method_compareGreaterEqual_NeedsExceptionCheck = ExceptionCheck<Method_compareGreaterEqual>::NeedsCheck }; static Bool method_compareGreaterEqual (const Value &l, const Value &r); typedef Bool (*Method_compareLessEqual)(const Value &l, const Value &r); enum { Method_compareLessEqual_NeedsExceptionCheck = ExceptionCheck<Method_compareLessEqual>::NeedsCheck }; static Bool method_compareLessEqual (const Value &l, const Value &r); typedef Bool (*Method_compareEqual)(const Value &left, const Value &right); enum { Method_compareEqual_NeedsExceptionCheck = ExceptionCheck<Method_compareEqual>::NeedsCheck }; static Bool method_compareEqual (const Value &left, const Value &right); typedef Bool (*Method_compareNotEqual)(const Value &left, const Value &right); enum { Method_compareNotEqual_NeedsExceptionCheck = ExceptionCheck<Method_compareNotEqual>::NeedsCheck }; static Bool method_compareNotEqual (const Value &left, const Value &right); typedef Bool (*Method_compareStrictEqual)(const Value &left, const Value &right); enum { Method_compareStrictEqual_NeedsExceptionCheck = ExceptionCheck<Method_compareStrictEqual>::NeedsCheck }; static Bool method_compareStrictEqual (const Value &left, const Value &right); typedef Bool (*Method_compareStrictNotEqual)(const Value &left, const Value &right); enum { Method_compareStrictNotEqual_NeedsExceptionCheck = ExceptionCheck<Method_compareStrictNotEqual>::NeedsCheck }; static Bool method_compareStrictNotEqual (const Value &left, const Value &right); typedef Bool (*Method_compareInstanceof)(ExecutionEngine *engine, const Value &left, const Value &right); enum { Method_compareInstanceof_NeedsExceptionCheck = ExceptionCheck<Method_compareInstanceof>::NeedsCheck }; static Bool method_compareInstanceof (ExecutionEngine *engine, const Value &left, const Value &right); typedef Bool (*Method_compareIn)(ExecutionEngine *engine, const Value &left, const Value &right); enum { Method_compareIn_NeedsExceptionCheck = ExceptionCheck<Method_compareIn>::NeedsCheck }; static Bool method_compareIn (ExecutionEngine *engine, const Value &left, const Value &right); typedef ReturnedValue (*Method_regexpLiteral)(ExecutionEngine *engine, int id); enum { Method_regexpLiteral_NeedsExceptionCheck = ExceptionCheck<Method_regexpLiteral>::NeedsCheck }; static ReturnedValue method_regexpLiteral (ExecutionEngine *engine, int id); typedef ReturnedValue (*Method_loadQmlContext)(NoThrowEngine *engine); enum { Method_loadQmlContext_NeedsExceptionCheck = ExceptionCheck<Method_loadQmlContext>::NeedsCheck }; static ReturnedValue method_loadQmlContext (NoThrowEngine *engine); typedef ReturnedValue (*Method_loadQmlImportedScripts)(NoThrowEngine *engine); enum { Method_loadQmlImportedScripts_NeedsExceptionCheck = ExceptionCheck<Method_loadQmlImportedScripts>::NeedsCheck }; static ReturnedValue method_loadQmlImportedScripts (NoThrowEngine *engine); typedef ReturnedValue (*Method_loadQmlScopeObjectProperty)(ExecutionEngine *engine, const Value &context, int propertyIndex, bool captureRequired); enum { Method_loadQmlScopeObjectProperty_NeedsExceptionCheck = ExceptionCheck<Method_loadQmlScopeObjectProperty>::NeedsCheck }; static ReturnedValue method_loadQmlScopeObjectProperty (ExecutionEngine *engine, const Value &context, int propertyIndex, bool captureRequired); typedef ReturnedValue (*Method_loadQmlContextObjectProperty)(ExecutionEngine *engine, const Value &context, int propertyIndex, bool captureRequired); enum { Method_loadQmlContextObjectProperty_NeedsExceptionCheck = ExceptionCheck<Method_loadQmlContextObjectProperty>::NeedsCheck }; static ReturnedValue method_loadQmlContextObjectProperty (ExecutionEngine *engine, const Value &context, int propertyIndex, bool captureRequired); typedef ReturnedValue (*Method_loadQmlIdObject)(ExecutionEngine *engine, const Value &context, uint index); enum { Method_loadQmlIdObject_NeedsExceptionCheck = ExceptionCheck<Method_loadQmlIdObject>::NeedsCheck }; static ReturnedValue method_loadQmlIdObject (ExecutionEngine *engine, const Value &context, uint index); typedef ReturnedValue (*Method_callQmlScopeObjectProperty)(ExecutionEngine *engine, Value *base, int propertyIndex, Value *argv, int argc); enum { Method_callQmlScopeObjectProperty_NeedsExceptionCheck = ExceptionCheck<Method_callQmlScopeObjectProperty>::NeedsCheck }; static ReturnedValue method_callQmlScopeObjectProperty (ExecutionEngine *engine, Value *base, int propertyIndex, Value *argv, int argc); typedef ReturnedValue (*Method_callQmlContextObjectProperty)(ExecutionEngine *engine, Value *base, int propertyIndex, Value *argv, int argc); enum { Method_callQmlContextObjectProperty_NeedsExceptionCheck = ExceptionCheck<Method_callQmlContextObjectProperty>::NeedsCheck }; static ReturnedValue method_callQmlContextObjectProperty (ExecutionEngine *engine, Value *base, int propertyIndex, Value *argv, int argc); typedef void (*Method_storeQmlScopeObjectProperty)(ExecutionEngine *engine, const Value &context, int propertyIndex, const Value &value); enum { Method_storeQmlScopeObjectProperty_NeedsExceptionCheck = ExceptionCheck<Method_storeQmlScopeObjectProperty>::NeedsCheck }; static void method_storeQmlScopeObjectProperty (ExecutionEngine *engine, const Value &context, int propertyIndex, const Value &value); typedef void (*Method_storeQmlContextObjectProperty)(ExecutionEngine *engine, const Value &context, int propertyIndex, const Value &value); enum { Method_storeQmlContextObjectProperty_NeedsExceptionCheck = ExceptionCheck<Method_storeQmlContextObjectProperty>::NeedsCheck }; static void method_storeQmlContextObjectProperty (ExecutionEngine *engine, const Value &context, int propertyIndex, const Value &value);-
64-
65-
66};-
67-
68static_assert(std::is_standard_layout<Runtime>::value, "Runtime needs to be standard layout in order for us to be able to use offsetof");-
69static_assert(-
70 __builtin_offsetof (-
71 Runtime-
72 , -
73 runtimeMethods-
74 ) -
75 == 0, "JIT expects this to be the first member");-
76static_assert(sizeof(Runtime::BinaryOperation) == sizeof(void*), "JIT expects a function pointer to fit into a regular pointer, for cross-compilation offset translation");-
77-
78}-
79-
80-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0