/external/pdfium/fxjs/ |
D | cfxjse_runtimedata.cpp | 14 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 …]
|
D | cfxjse_context.cpp | 46 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 …]
|
D | cfxjse_isolatetracker.h | 20 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()
|
D | cfxjse_class.cpp | 115 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 …]
|
D | cjs_runtime.cpp | 65 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 …]
|
D | fxjs_v8.cpp | 55 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 …]
|
D | fxjs_v8.h | 100 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);
|
D | cfxjse_formcalc_context.cpp | 649 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 …]
|
D | cfxjse_runtimedata.h | 20 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);
|
D | JS_Define.cpp | 212 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()
|
D | cjs_v8.h | 26 explicit CJS_V8(v8::Isolate* pIsolate); 79 void SetIsolate(v8::Isolate* pIsolate) { m_isolate = pIsolate; } in SetIsolate() argument
|
D | cfxjse_context.h | 23 v8::Isolate* pIsolate, 27 explicit CFXJSE_Context(v8::Isolate* pIsolate);
|
D | cfxjse_value.cpp | 56 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
|
D | cfxjse_class.h | 24 v8::Isolate* pIsolate,
|
D | cjs_runtime.h | 30 static CJS_Runtime* CurrentRuntimeFromIsolate(v8::Isolate* pIsolate);
|
D | cfxjse_value.h | 24 explicit CFXJSE_Value(v8::Isolate* pIsolate);
|
D | cjs_v8.cpp | 116 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()
|
D | cfxjse_engine.h | 52 explicit CFXJSE_Engine(CXFA_Document* pDocument, v8::Isolate* pIsolate);
|
D | cfxjse_engine.cpp | 94 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()
|
D | cjs_global.cpp | 25 WideString PropFromV8Prop(v8::Isolate* pIsolate, in PropFromV8Prop() argument 27 v8::String::Utf8Value utf8_value(pIsolate, property); in PropFromV8Prop()
|
/external/pdfium/xfa/fxfa/parser/ |
D | cxfa_document.h | 64 CFXJSE_Engine* InitScriptContext(v8::Isolate* pIsolate);
|
D | cxfa_document.cpp | 289 CFXJSE_Engine* CXFA_Document::InitScriptContext(v8::Isolate* pIsolate) { in InitScriptContext() argument 291 m_pScriptContext = pdfium::MakeUnique<CFXJSE_Engine>(this, pIsolate); in InitScriptContext()
|