Home
last modified time | relevance | path

Searched refs:pIsolate (Results 1 – 22 of 22) sorted by relevance

/external/pdfium/fxjs/
Dcfxjse_runtimedata.cpp14 CFXJSE_RuntimeData::CFXJSE_RuntimeData(v8::Isolate* pIsolate) in CFXJSE_RuntimeData() argument
15 : m_pIsolate(pIsolate) {} in CFXJSE_RuntimeData()
20 v8::Isolate* pIsolate) { in Create() argument
22 new CFXJSE_RuntimeData(pIsolate)); in Create()
23 CFXJSE_ScopeUtil_IsolateHandle scope(pIsolate); in Create()
26 v8::FunctionTemplate::New(pIsolate); in Create()
30 v8::Symbol::GetToStringTag(pIsolate), in Create()
31 v8::String::NewFromUtf8(pIsolate, "global", v8::NewStringType::kNormal) in Create()
35 v8::Context::New(pIsolate, 0, hGlobalTemplate); in Create()
36 hContext->SetSecurityToken(v8::External::New(pIsolate, pIsolate)); in Create()
[all …]
Dcfxjse_context.cpp46 v8::Local<v8::Object> CreateReturnValue(v8::Isolate* pIsolate, in CreateReturnValue() argument
48 v8::Local<v8::Object> hReturnValue = v8::Object::New(pIsolate); in CreateReturnValue()
55 v8::String::NewFromUtf8(pIsolate, "name")); in CreateReturnValue()
59 hReturnValue->Set(0, v8::String::NewFromUtf8(pIsolate, "Error")); in CreateReturnValue()
62 v8::String::NewFromUtf8(pIsolate, "message")); in CreateReturnValue()
68 hReturnValue->Set(0, v8::String::NewFromUtf8(pIsolate, "Error")); in CreateReturnValue()
72 hReturnValue->Set(3, v8::Integer::New(pIsolate, hMessage->GetLineNumber())); in CreateReturnValue()
75 hMessage->GetStartColumn(pIsolate->GetCurrentContext()); in CreateReturnValue()
76 hReturnValue->Set(5, v8::Integer::New(pIsolate, maybe_int.FromMaybe(0))); in CreateReturnValue()
77 maybe_int = hMessage->GetEndColumn(pIsolate->GetCurrentContext()); in CreateReturnValue()
[all …]
Dcfxjse_isolatetracker.h20 explicit CFXJSE_ScopeUtil_IsolateHandle(v8::Isolate* pIsolate) in CFXJSE_ScopeUtil_IsolateHandle() argument
21 : m_isolate(pIsolate), m_iscope(pIsolate), m_hscope(pIsolate) {} in CFXJSE_ScopeUtil_IsolateHandle()
38 explicit CFXJSE_ScopeUtil_IsolateHandleRootContext(v8::Isolate* pIsolate) in CFXJSE_ScopeUtil_IsolateHandleRootContext() argument
39 : m_parent(pIsolate), in CFXJSE_ScopeUtil_IsolateHandleRootContext()
41 pIsolate, in CFXJSE_ScopeUtil_IsolateHandleRootContext()
42 CFXJSE_RuntimeData::Get(pIsolate)->m_hRootContext)) {} in CFXJSE_ScopeUtil_IsolateHandleRootContext()
Dcfxjse_class.cpp115 v8::Isolate* pIsolate = pValue->GetIsolate(); in DynPropGetterAdapter() local
116 v8::HandleScope hscope(pIsolate); in DynPropGetterAdapter()
118 v8::ObjectTemplate::New(pIsolate); in DynPropGetterAdapter()
126 pIsolate, reinterpret_cast<const char*>(szPropName.raw_str()), in DynPropGetterAdapter()
169 v8::Isolate* pIsolate = info.GetIsolate(); in NamedPropertyQueryCallback() local
170 v8::HandleScope scope(pIsolate); in NamedPropertyQueryCallback()
171 v8::String::Utf8Value szPropName(pIsolate, property); in NamedPropertyQueryCallback()
238 v8::Isolate* pIsolate = lpContext->GetIsolate(); in Create() local
242 CFXJSE_ScopeUtil_IsolateHandleRootContext scope(pIsolate); in Create()
244 pIsolate, bIsJSGlobal ? 0 : V8ConstructorCallback_Wrapper, in Create()
[all …]
Dcjs_runtime.cpp65 CJS_Runtime* CJS_Runtime::CurrentRuntimeFromIsolate(v8::Isolate* pIsolate) { in CurrentRuntimeFromIsolate() argument
67 CFXJS_Engine::CurrentEngineFromIsolate(pIsolate)); in CurrentRuntimeFromIsolate()
74 v8::Isolate* pIsolate = nullptr; in CJS_Runtime() local
86 m_isolateManaged = FXJS_GetIsolate(&pIsolate); in CJS_Runtime()
87 SetIsolate(pIsolate); in CJS_Runtime()
90 v8::Isolate::Scope isolate_scope(pIsolate); in CJS_Runtime()
91 v8::HandleScope handle_scope(pIsolate); in CJS_Runtime()
254 v8::Isolate* pIsolate = GetIsolate(); in SetValueByName() local
255 v8::Isolate::Scope isolate_scope(pIsolate); in SetValueByName()
256 v8::HandleScope handle_scope(pIsolate); in SetValueByName()
[all …]
Dfxjs_v8.cpp55 static int MaxID(v8::Isolate* pIsolate) { in MaxID() argument
56 return FXJS_PerIsolateData::Get(pIsolate)->m_ObjectDefnArray.size(); in MaxID()
59 static CFXJS_ObjDefinition* ForID(v8::Isolate* pIsolate, int id) { in ForID() argument
61 return FXJS_PerIsolateData::Get(pIsolate)->m_ObjectDefnArray[id].get(); in ForID()
126 v8::Isolate* pIsolate) { in GetGlobalObjectTemplate() argument
127 int maxID = CFXJS_ObjDefinition::MaxID(pIsolate); in GetGlobalObjectTemplate()
129 CFXJS_ObjDefinition* pObjDef = CFXJS_ObjDefinition::ForID(pIsolate, i); in GetGlobalObjectTemplate()
135 v8::ObjectTemplate::New(pIsolate); in GetGlobalObjectTemplate()
137 v8::Symbol::GetToStringTag(pIsolate), in GetGlobalObjectTemplate()
138 v8::String::NewFromUtf8(pIsolate, "global", v8::NewStringType::kNormal) in GetGlobalObjectTemplate()
[all …]
Dfxjs_v8.h100 static void SetUp(v8::Isolate* pIsolate);
101 static FXJS_PerIsolateData* Get(v8::Isolate* pIsolate);
110 explicit FXJS_PerIsolateData(v8::Isolate* pIsolate);
120 void FXJS_Initialize(unsigned int embedderDataSlot, v8::Isolate* pIsolate);
133 explicit CFXJS_Engine(v8::Isolate* pIsolate);
140 static CFXJS_Engine* CurrentEngineFromIsolate(v8::Isolate* pIsolate);
Dcfxjse_formcalc_context.cpp649 v8::Isolate* pIsolate = ToJSContext(pThis, nullptr)->GetScriptRuntime(); in Avg() local
663 auto lengthValue = pdfium::MakeUnique<CFXJSE_Value>(pIsolate); in Avg()
668 auto propertyValue = pdfium::MakeUnique<CFXJSE_Value>(pIsolate); in Avg()
671 auto jsObjectValue = pdfium::MakeUnique<CFXJSE_Value>(pIsolate); in Avg()
675 auto defaultPropValue = pdfium::MakeUnique<CFXJSE_Value>(pIsolate); in Avg()
686 auto newPropertyValue = pdfium::MakeUnique<CFXJSE_Value>(pIsolate); in Avg()
729 v8::Isolate* pIsolate = pContext->GetScriptRuntime(); in Count() local
737 auto lengthValue = pdfium::MakeUnique<CFXJSE_Value>(pIsolate); in Count()
746 auto propertyValue = pdfium::MakeUnique<CFXJSE_Value>(pIsolate); in Count()
747 auto jsObjectValue = pdfium::MakeUnique<CFXJSE_Value>(pIsolate); in Count()
[all …]
Dcfxjse_runtimedata.h20 static CFXJSE_RuntimeData* Get(v8::Isolate* pIsolate);
27 explicit CFXJSE_RuntimeData(v8::Isolate* pIsolate);
29 static std::unique_ptr<CFXJSE_RuntimeData> Create(v8::Isolate* pIsolate);
DJS_Define.cpp212 v8::Isolate* pIsolate = v8::Isolate::GetCurrent(); in JS_DateParse() local
213 v8::Isolate::Scope isolate_scope(pIsolate); in JS_DateParse()
214 v8::HandleScope scope(pIsolate); in JS_DateParse()
216 v8::Local<v8::Context> context = pIsolate->GetCurrentContext(); in JS_DateParse()
221 ->Get(context, v8::String::NewFromUtf8(pIsolate, "Date", in JS_DateParse()
227 v = o->Get(context, v8::String::NewFromUtf8(pIsolate, "parse", in JS_DateParse()
235 CJS_Runtime::CurrentRuntimeFromIsolate(pIsolate)->NewString( in JS_DateParse()
Dcjs_v8.h26 explicit CJS_V8(v8::Isolate* pIsolate);
79 void SetIsolate(v8::Isolate* pIsolate) { m_isolate = pIsolate; } in SetIsolate() argument
Dcfxjse_context.h23 v8::Isolate* pIsolate,
27 explicit CFXJSE_Context(v8::Isolate* pIsolate);
Dcfxjse_value.cpp56 v8::Isolate* pIsolate = v8::Isolate::GetCurrent(); in FXJSE_ThrowMessage() local
57 ASSERT(pIsolate); in FXJSE_ThrowMessage()
59 CFXJSE_ScopeUtil_IsolateHandleRootContext scope(pIsolate); in FXJSE_ThrowMessage()
61 pIsolate, utf8Message.unterminated_c_str(), v8::String::kNormalString, in FXJSE_ThrowMessage()
64 pIsolate->ThrowException(hError); in FXJSE_ThrowMessage()
67 CFXJSE_Value::CFXJSE_Value(v8::Isolate* pIsolate) : m_pIsolate(pIsolate) {} in CFXJSE_Value() argument
Dcfxjse_class.h24 v8::Isolate* pIsolate,
Dcjs_runtime.h30 static CJS_Runtime* CurrentRuntimeFromIsolate(v8::Isolate* pIsolate);
Dcfxjse_value.h24 explicit CFXJSE_Value(v8::Isolate* pIsolate);
Dcjs_v8.cpp116 v8::Isolate* pIsolate = m_isolate ? m_isolate : v8::Isolate::GetCurrent(); in NewString() local
117 return v8::String::NewFromUtf8(pIsolate, str.unterminated_c_str(), in NewString()
Dcfxjse_engine.h52 explicit CFXJSE_Engine(CXFA_Document* pDocument, v8::Isolate* pIsolate);
Dcfxjse_engine.cpp94 CFXJSE_Engine::CFXJSE_Engine(CXFA_Document* pDocument, v8::Isolate* pIsolate) in CFXJSE_Engine() argument
95 : CJS_V8(pIsolate), in CFXJSE_Engine()
97 m_JsContext(CFXJSE_Context::Create(pIsolate, in CFXJSE_Engine()
Dcjs_global.cpp25 WideString PropFromV8Prop(v8::Isolate* pIsolate, in PropFromV8Prop() argument
27 v8::String::Utf8Value utf8_value(pIsolate, property); in PropFromV8Prop()
/external/pdfium/xfa/fxfa/parser/
Dcxfa_document.h64 CFXJSE_Engine* InitScriptContext(v8::Isolate* pIsolate);
Dcxfa_document.cpp289 CFXJSE_Engine* CXFA_Document::InitScriptContext(v8::Isolate* pIsolate) { in InitScriptContext() argument
291 m_pScriptContext = pdfium::MakeUnique<CFXJSE_Engine>(this, pIsolate); in InitScriptContext()