Home | History | Annotate | Download | only in javascript

Lines Matching refs:pRuntime

104 	IFXJS_Runtime* pRuntime = (IFXJS_Runtime*)field->Value();\

105 IFXJS_Context* cc = pRuntime->GetCurrentContext();\
150 IFXJS_Runtime* pRuntime = (IFXJS_Runtime*)field->Value();\
151 IFXJS_Context* cc = pRuntime->GetCurrentContext();\
201 IFXJS_Runtime* pRuntime = (IFXJS_Runtime*)field->Value();\
202 IFXJS_Context* cc = pRuntime->GetCurrentContext();\
247 static int Init(IJS_Runtime* pRuntime, FXJSOBJTYPE eObjType);\
276 int js_class_name::Init(IJS_Runtime* pRuntime, FXJSOBJTYPE eObjType)\
278 int nObjDefnID = JS_DefineObj(pRuntime, js_class_name::m_pClassName, eObjType, JSConstructor, JSDestructor, 0);\
283 if (JS_DefineObjProperty(pRuntime, nObjDefnID, JS_Class_Properties[j].pName, JS_Class_Properties[j].pPropGet, JS_Class_Properties[j].pPropPut) < 0) return -1;\
287 if (JS_DefineObjMethod(pRuntime, nObjDefnID,JS_Class_Methods[k].pName, JS_Class_Methods[k].pMethodCall, JS_Class_Methods[k].nParamNum) < 0) return -1;\
314 static int Init(IJS_Runtime* pRuntime, FXJSOBJTYPE eObjType);\
321 int js_class_name::Init(IJS_Runtime* pRuntime, FXJSOBJTYPE eObjType)\
323 int nObjDefnID = JS_DefineObj(pRuntime, js_class_name::m_pClassName, eObjType, NULL, NULL, 0);\
330 if (JS_DefineObjConst(pRuntime, nObjDefnID, JS_Class_Consts[i].pName, JS_NewNumber(pRuntime,JS_Class_Consts[i].number)) < 0) return -1;\
334 if (JS_DefineObjConst(pRuntime, nObjDefnID, JS_Class_Consts[i].pName, JS_NewString(pRuntime,JS_Class_Consts[i].string)) < 0) return -1;\
358 static int Init(IJS_Runtime* pRuntime, FXJSOBJTYPE eObjType);\
407 IFXJS_Runtime* pRuntime = (IFXJS_Runtime*)field->Value();\
408 IFXJS_Context* cc = pRuntime->GetCurrentContext();\
455 IFXJS_Runtime* pRuntime = (IFXJS_Runtime*)field->Value();\
456 IFXJS_Context* cc = pRuntime->GetCurrentContext();\
502 IFXJS_Runtime* pRuntime = (IFXJS_Runtime*)field->Value();\
503 IFXJS_Context* cc = pRuntime->GetCurrentContext();\
554 int js_class_name::Init(IJS_Runtime* pRuntime, FXJSOBJTYPE eObjType)\
557 int nObjDefnID = JS_DefineObj(pRuntime, js_class_name::m_pClassName, eObjType, JSConstructor, JSDestructor, 0);\
563 if (JS_DefineObjProperty(pRuntime, nObjDefnID, JS_Class_Properties[j].pName, JS_Class_Properties[j].pPropGet,JS_Class_Properties[j].pPropPut)<0)return -1;\
568 if (JS_DefineObjMethod(pRuntime, nObjDefnID,JS_Class_Methods[k].pName,JS_Class_Methods[k].pMethodCall,JS_Class_Methods[k].nParamNum)<0)return -1;\
570 if (JS_DefineObjAllProperties(pRuntime, nObjDefnID, js_class_name::queryprop_##js_class_name##_static, js_class_name::getprop_##js_class_name##_static,js_class_name::putprop_##js_class_name##_static,js_class_name::delprop_##js_class_name##_static)<0) return -1;\
602 IFXJS_Runtime* pRuntime = (IFXJS_Runtime*)field->Value();\
603 IFXJS_Context* cc = pRuntime->GetCurrentContext();\
655 IFXJS_Runtime* pRuntime = (IFXJS_Runtime*)field->Value();\
656 IFXJS_Context* cc = pRuntime->GetCurrentContext();\
675 static int Init(IJS_Runtime* pRuntime)
685 int js_class_name::Init(IJS_Runtime* pRuntime)\
689 if (JS_DefineGlobalMethod(pRuntime,\
700 #define DEFINE_GLOBAL_CONST(pRuntime, const_name , const_value)\
701 if (JS_DefineGlobalConst(pRuntime,JS_WIDESTRING(const_name),JS_NewString(pRuntime,JS_WIDESTRING(const_value)))) return -1
705 #define DEFINE_GLOBAL_ARRAY(pRuntime)\
708 CJS_Array array(pRuntime);\
709 for (int i=0; i<size; i++) array.SetElement(i,CJS_Value(pRuntime,(FX_LPCWSTR)ArrayContent[i]));\
711 CJS_PropValue prop(pRuntime);\
713 if (JS_DefineGlobalConst(pRuntime, (const wchar_t*)ArrayName, prop.ToJSValue()) < 0)\