/external/pdfium/fpdfsdk/src/jsapi/ |
D | fxjs_v8.cpp | 42 static int MaxID(v8::Isolate* pIsolate) { in MaxID() argument 43 return FXJS_PerIsolateData::Get(pIsolate)->m_ObjectDefnArray.size(); in MaxID() 46 static CFXJS_ObjDefinition* ForID(v8::Isolate* pIsolate, int id) { in ForID() argument 48 return FXJS_PerIsolateData::Get(pIsolate)->m_ObjectDefnArray[id]; in ForID() 101 v8::Isolate* pIsolate) { in GetGlobalObjectTemplate() argument 102 int maxID = CFXJS_ObjDefinition::MaxID(pIsolate); in GetGlobalObjectTemplate() 104 CFXJS_ObjDefinition* pObjDef = CFXJS_ObjDefinition::ForID(pIsolate, i); in GetGlobalObjectTemplate() 110 g_DefaultGlobalObjectTemplate->Reset(pIsolate, in GetGlobalObjectTemplate() 111 v8::ObjectTemplate::New(pIsolate)); in GetGlobalObjectTemplate() 113 return g_DefaultGlobalObjectTemplate->Get(pIsolate); in GetGlobalObjectTemplate() [all …]
|
/external/pdfium/xfa/src/fxjse/src/ |
D | runtime.cpp | 35 static void FXJSE_Runtime_DisposeCallback(v8::Isolate* pIsolate) { in FXJSE_Runtime_DisposeCallback() argument 37 v8::Locker locker(pIsolate); in FXJSE_Runtime_DisposeCallback() 38 if (FXJS_PerIsolateData* pData = FXJS_PerIsolateData::Get(pIsolate)) { in FXJSE_Runtime_DisposeCallback() 43 pIsolate->Dispose(); in FXJSE_Runtime_DisposeCallback() 56 v8::Isolate* pIsolate = v8::Isolate::New(params); in FXJSE_Runtime_Create() local 57 ASSERT(pIsolate && CFXJSE_RuntimeData::g_RuntimeList); in FXJSE_Runtime_Create() 58 CFXJSE_RuntimeData::g_RuntimeList->AppendRuntime(pIsolate); in FXJSE_Runtime_Create() 59 return reinterpret_cast<FXJSE_HRUNTIME>(pIsolate); in FXJSE_Runtime_Create() 62 v8::Isolate* pIsolate = reinterpret_cast<v8::Isolate*>(hRuntime); in FXJSE_Runtime_Release() local 63 if (pIsolate) { in FXJSE_Runtime_Release() [all …]
|
D | dynprop.cpp | 52 v8::Isolate* pIsolate = lpValue->GetIsolate(); in FXJSE_DynPropGetterAdapter() local 53 v8::HandleScope hscope(pIsolate); in FXJSE_DynPropGetterAdapter() 63 pIsolate, reinterpret_cast<const char*>(szPropName.GetPtr()), in FXJSE_DynPropGetterAdapter() 164 v8::Isolate* pIsolate = info.GetIsolate(); in FXJSE_V8ProxyCallback_getOwnPropertyDescriptor() local 165 v8::HandleScope scope(pIsolate); in FXJSE_V8ProxyCallback_getOwnPropertyDescriptor() 176 v8::Local<v8::Object> hPropDescriptor = v8::Object::New(pIsolate); in FXJSE_V8ProxyCallback_getOwnPropertyDescriptor() 178 v8::String::NewFromUtf8(pIsolate, "get"), in FXJSE_V8ProxyCallback_getOwnPropertyDescriptor() 179 v8::Function::New(pIsolate, in FXJSE_V8ProxyCallback_getOwnPropertyDescriptor() 183 v8::String::NewFromUtf8(pIsolate, "set"), in FXJSE_V8ProxyCallback_getOwnPropertyDescriptor() 184 v8::Function::New(pIsolate, in FXJSE_V8ProxyCallback_getOwnPropertyDescriptor() [all …]
|
D | scope_inline.h | 19 explicit CFXJSE_ScopeUtil_IsolateHandle(v8::Isolate* pIsolate) in CFXJSE_ScopeUtil_IsolateHandle() argument 20 : m_isolate(pIsolate), in CFXJSE_ScopeUtil_IsolateHandle() 21 m_locker(pIsolate), in CFXJSE_ScopeUtil_IsolateHandle() 22 m_iscope(pIsolate), in CFXJSE_ScopeUtil_IsolateHandle() 23 m_hscope(pIsolate) {} in CFXJSE_ScopeUtil_IsolateHandle() 37 explicit CFXJSE_ScopeUtil_IsolateHandleRootContext(v8::Isolate* pIsolate) in CFXJSE_ScopeUtil_IsolateHandleRootContext() argument 38 : m_parent(pIsolate), in CFXJSE_ScopeUtil_IsolateHandleRootContext() 40 pIsolate, in CFXJSE_ScopeUtil_IsolateHandleRootContext() 41 CFXJSE_RuntimeData::Get(pIsolate)->m_hRootContext)) {} in CFXJSE_ScopeUtil_IsolateHandleRootContext() 81 v8::Isolate* pIsolate, in CFXJSE_ScopeUtil_IsolateHandleRootOrNormalContext() argument [all …]
|
D | context.cpp | 70 v8::Local<v8::Object> FXJSE_CreateReturnValue(v8::Isolate* pIsolate, in FXJSE_CreateReturnValue() argument 72 v8::Local<v8::Object> hReturnValue = v8::Object::New(pIsolate); in FXJSE_CreateReturnValue() 79 v8::String::NewFromUtf8(pIsolate, "name")); in FXJSE_CreateReturnValue() 83 hReturnValue->Set(0, v8::String::NewFromUtf8(pIsolate, "Error")); in FXJSE_CreateReturnValue() 86 v8::String::NewFromUtf8(pIsolate, "message")); in FXJSE_CreateReturnValue() 93 hReturnValue->Set(0, v8::String::NewFromUtf8(pIsolate, "Error")); in FXJSE_CreateReturnValue() 97 hReturnValue->Set(3, v8::Integer::New(pIsolate, hMessage->GetLineNumber())); in FXJSE_CreateReturnValue() 100 v8::Integer::New(pIsolate, hMessage->GetStartColumn())); in FXJSE_CreateReturnValue() 101 hReturnValue->Set(6, v8::Integer::New(pIsolate, hMessage->GetEndColumn())); in FXJSE_CreateReturnValue() 112 v8::Isolate* pIsolate = lpValue->GetIsolate(); in FXJSE_ReturnValue_GetMessage() local [all …]
|
D | class.cpp | 31 v8::Isolate* pIsolate = lpContext->GetRuntime(); in FXJSE_DefineFunctions() local 36 v8::String::NewFromUtf8(pIsolate, lpFunctions[i].name), in FXJSE_DefineFunctions() 38 pIsolate, FXJSE_V8FunctionCallback_Wrapper, in FXJSE_DefineFunctions() 39 v8::External::New(pIsolate, in FXJSE_DefineFunctions() 240 v8::Isolate* pIsolate = lpContext->m_pIsolate; in Create() local 244 CFXJSE_ScopeUtil_IsolateHandleRootContext scope(pIsolate); in Create() 246 pIsolate, bIsJSGlobal ? 0 : FXJSE_V8ConstructorCallback_Wrapper, in Create() 247 v8::External::New(pIsolate, const_cast<FXJSE_CLASS*>(lpClassDefinition))); in Create() 249 v8::String::NewFromUtf8(pIsolate, lpClassDefinition->name)); in Create() 253 SetUpNamedPropHandler(pIsolate, hObjectTemplate, lpClassDefinition); in Create() [all …]
|
D | runtime.h | 12 CFXJSE_RuntimeData(v8::Isolate* pIsolate) : m_pIsolate(pIsolate){}; in CFXJSE_RuntimeData() argument 15 static CFXJSE_RuntimeData* Create(v8::Isolate* pIsolate); 16 static CFXJSE_RuntimeData* Get(v8::Isolate* pIsolate); 36 void AppendRuntime(v8::Isolate* pIsolate); 37 void RemoveRuntime(v8::Isolate* pIsolate,
|
D | context.h | 13 CFXJSE_Context(v8::Isolate* pIsolate) : m_pIsolate(pIsolate) {} in CFXJSE_Context() argument 16 static CFXJSE_Context* Create(v8::Isolate* pIsolate, 39 v8::Local<v8::Object> FXJSE_CreateReturnValue(v8::Isolate* pIsolate,
|
D | value.cpp | 243 v8::Isolate* pIsolate = v8::Isolate::GetCurrent(); in FXJSE_ThrowMessage() local 244 ASSERT(pIsolate); in FXJSE_ThrowMessage() 245 CFXJSE_ScopeUtil_IsolateHandleRootContext scope(pIsolate); in FXJSE_ThrowMessage() 247 pIsolate, utf8Message.GetCStr(), v8::String::kNormalString, in FXJSE_ThrowMessage() 262 v8::String::NewFromUtf8(pIsolate, "name"), in FXJSE_ThrowMessage() 263 v8::String::NewFromUtf8(pIsolate, utf8Name.GetCStr(), in FXJSE_ThrowMessage() 268 pIsolate->ThrowException(hError); in FXJSE_ThrowMessage() 270 CFXJSE_Value* CFXJSE_Value::Create(v8::Isolate* pIsolate) { in Create() argument 271 return new CFXJSE_Value(pIsolate); in Create()
|
D | value.h | 12 CFXJSE_Value(v8::Isolate* pIsolate) : m_pIsolate(pIsolate) {} in CFXJSE_Value() argument 230 static CFXJSE_Value* Create(v8::Isolate* pIsolate);
|
D | class.h | 30 v8::Isolate* pIsolate,
|
/external/pdfium/fpdfsdk/include/jsapi/ |
D | fxjs_v8.h | 50 static void SetUp(v8::Isolate* pIsolate); 51 static FXJS_PerIsolateData* Get(v8::Isolate* pIsolate); 85 void FXJS_Initialize(unsigned int embedderDataSlot, v8::Isolate* pIsolate); 98 void FXJS_PrepareIsolate(v8::Isolate* pIsolate); 102 void JS_PrepareIsolate(v8::Isolate* pIsolate); 105 int FXJS_DefineObj(v8::Isolate* pIsolate, 111 void FXJS_DefineObjMethod(v8::Isolate* pIsolate, 115 void FXJS_DefineObjProperty(v8::Isolate* pIsolate, 120 void FXJS_DefineObjAllProperties(v8::Isolate* pIsolate, 126 void FXJS_DefineObjConst(v8::Isolate* pIsolate, [all …]
|
/external/pdfium/fpdfsdk/src/javascript/ |
D | JS_Define.h | 187 static void DefineJSObjects(v8::Isolate* pIsolate, FXJSOBJTYPE eObjType); 201 void js_class_name::DefineJSObjects(v8::Isolate* pIsolate, \ 203 g_nObjDefnID = FXJS_DefineObj(pIsolate, js_class_name::g_pClassName, \ 205 DefineConsts(pIsolate); \ 210 static void DefineConsts(v8::Isolate* pIsolate); 213 void js_class_name::DefineConsts(v8::Isolate* pIsolate) { \ 216 pIsolate, g_nObjDefnID, JS_Class_Consts[i].pName, \ 218 ? FXJS_NewNumber(pIsolate, JS_Class_Consts[i].number) \ 219 : FXJS_NewString(pIsolate, JS_Class_Consts[i].string)); \ 239 void js_class_name::DefineJSObjects(v8::Isolate* pIsolate, \ [all …]
|
D | JS_Runtime.cpp | 308 v8::Isolate* pIsolate = GetIsolate(); local 309 v8::Locker lock(pIsolate); 310 v8::Isolate::Scope isolate_scope(pIsolate); 311 v8::HandleScope handle_scope(pIsolate); 313 v8::Local<v8::Context>::New(pIsolate, m_context); 321 v8::String::NewFromUtf8(pIsolate, name, v8::String::kNormalString,
|
D | JS_Value.cpp | 792 v8::Isolate* pIsolate = v8::Isolate::GetCurrent(); in JS_DateParse() local 793 v8::Isolate::Scope isolate_scope(pIsolate); in JS_DateParse() 794 v8::HandleScope scope(pIsolate); in JS_DateParse() 796 v8::Local<v8::Context> context = pIsolate->GetCurrentContext(); in JS_DateParse() 801 ->Get(context, v8::String::NewFromUtf8(pIsolate, "Date", in JS_DateParse() 807 v = o->Get(context, v8::String::NewFromUtf8(pIsolate, "parse", in JS_DateParse() 814 v8::Local<v8::String> timeStr = FXJS_WSToJSString(pIsolate, string); in JS_DateParse()
|