/external/pdfium/fpdfsdk/src/javascript/ |
D | JS_Runtime.cpp | 94 FXJS_InitializeRuntime(GetIsolate(), this, &m_context, &m_StaticObjects); 112 FXJS_InitializeRuntime(GetIsolate(), this, &m_context, &m_StaticObjects); 125 FXJS_ReleaseRuntime(GetIsolate(), &m_context, &m_StaticObjects); 137 v8::Isolate::Scope isolate_scope(GetIsolate()); 139 v8::Locker locker(GetIsolate()); 141 v8::HandleScope handle_scope(GetIsolate()); 142 v8::Local<v8::Context> context = v8::Context::New(GetIsolate()); 147 CJS_Border::DefineJSObjects(GetIsolate(), FXJSOBJTYPE_STATIC); 148 CJS_Display::DefineJSObjects(GetIsolate(), FXJSOBJTYPE_STATIC); 149 CJS_Font::DefineJSObjects(GetIsolate(), FXJSOBJTYPE_STATIC); [all …]
|
D | JS_Value.cpp | 105 return FXJS_ToInt32(m_pJSRuntime->GetIsolate(), m_pValue); in ToInt() 109 return FXJS_ToBoolean(m_pJSRuntime->GetIsolate(), m_pValue); in ToBool() 113 return FXJS_ToNumber(m_pJSRuntime->GetIsolate(), m_pValue); in ToDouble() 122 FXJS_ToObject(m_pJSRuntime->GetIsolate(), m_pValue); in ToCJSObject() 123 return (CJS_Object*)FXJS_GetPrivate(m_pJSRuntime->GetIsolate(), pObj); in ToCJSObject() 127 return FXJS_ToObject(m_pJSRuntime->GetIsolate(), m_pValue); in ToV8Object() 131 return FXJS_ToString(m_pJSRuntime->GetIsolate(), m_pValue); in ToCFXWideString() 145 FXJS_ToObject(m_pJSRuntime->GetIsolate(), m_pValue)); in ToV8Array() 153 m_pValue = FXJS_NewNumber(m_pJSRuntime->GetIsolate(), iValue); in operator =() 158 m_pValue = FXJS_NewBoolean(m_pJSRuntime->GetIsolate(), bValue); in operator =() [all …]
|
/external/v8/src/ |
D | d8-posix.cc | 235 ->Int32Value(args.GetIsolate()->GetCurrentContext()) in GetTimeouts() 238 args.GetIsolate()->ThrowException( in GetTimeouts() 239 String::NewFromUtf8(args.GetIsolate(), in GetTimeouts() 248 ->Int32Value(args.GetIsolate()->GetCurrentContext()) in GetTimeouts() 251 args.GetIsolate()->ThrowException( in GetTimeouts() 252 String::NewFromUtf8(args.GetIsolate(), in GetTimeouts() 468 HandleScope scope(args.GetIsolate()); in System() 475 args.GetIsolate()->ThrowException( in System() 476 String::NewFromUtf8(args.GetIsolate(), in System() 483 command_args = Array::New(args.GetIsolate(), 0); in System() [all …]
|
D | type-feedback-vector.cc | 181 Isolate* isolate = GetIsolate(); in ClearSlotsImpl() 256 Isolate* isolate = GetIsolate(); in ClearKeyedStoreICs() 283 Isolate* isolate = GetIsolate(); in EnsureArrayOfSize() 296 Isolate* isolate = GetIsolate(); in EnsureExtraArrayOfSize() 322 SetFeedback(*TypeFeedbackVector::UninitializedSentinel(GetIsolate()), in ConfigureUninitialized() 324 SetFeedbackExtra(*TypeFeedbackVector::UninitializedSentinel(GetIsolate()), in ConfigureUninitialized() 330 SetFeedback(*TypeFeedbackVector::PremonomorphicSentinel(GetIsolate()), in ConfigurePremonomorphic() 332 SetFeedbackExtra(*TypeFeedbackVector::UninitializedSentinel(GetIsolate()), in ConfigurePremonomorphic() 338 Isolate* isolate = GetIsolate(); in ConfigureMegamorphic() 347 Isolate* isolate = GetIsolate(); in StateFromFeedback() [all …]
|
D | accessors.cc | 75 Isolate* isolate = name->GetIsolate(); in IsJSObjectFieldAccessor() 99 Isolate* isolate = name->GetIsolate(); in IsJSArrayBufferViewFieldAccessor() 151 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate()); in ArgumentsIteratorGetter() 162 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate()); in ArgumentsIteratorSetter() 193 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate()); in ArrayLengthGetter() 206 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate()); in ArrayLengthSetter() 242 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate()); in StringLengthGetter() 288 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate()); in ScriptColumnOffsetGetter() 326 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate()); in ScriptIdGetter() 363 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate()); in ScriptNameGetter() [all …]
|
/external/v8/test/cctest/ |
D | test-debug.cc | 100 inline v8::Isolate* GetIsolate() { return context_->GetIsolate(); } in GetIsolate() function in DebugLocalContext 104 reinterpret_cast<v8::internal::Isolate*>(context_->GetIsolate()); in ExposeDebug() 148 return CompileFunction(env->GetIsolate(), source, function_name); in CompileFunction() 165 v8::internal::Isolate* isolate = fun->GetIsolate(); in SetBreakPoint() 910 v8::HandleScope scope(env->GetIsolate()); in TEST() 920 EnableDebugger(env->GetIsolate()); in TEST() 938 DisableDebugger(env->GetIsolate()); in TEST() 949 v8::HandleScope scope(env->GetIsolate()); in TEST() 951 v8::Debug::SetDebugEventListener(env->GetIsolate(), in TEST() 972 v8::Debug::SetDebugEventListener(env->GetIsolate(), nullptr); in TEST() [all …]
|
D | test-microtask-delivery.cc | 49 v8::Isolate* GetIsolate() const { return isolate_; } in GetIsolate() function in __anon04ace53d0111::HarmonyIsolate 60 v8::HandleScope scope(isolate.GetIsolate()); in TEST() 61 LocalContext context(isolate.GetIsolate()); in TEST() 106 v8::HandleScope scope(isolate.GetIsolate()); in TEST() 107 LocalContext context1(isolate.GetIsolate()); in TEST() 108 isolate.GetIsolate()->SetAutorunMicrotasks(false); in TEST() 113 LocalContext context2(isolate.GetIsolate()); in TEST() 116 v8::String::NewFromUtf8(isolate.GetIsolate(), "obj", in TEST() 133 LocalContext context3(isolate.GetIsolate()); in TEST() 136 v8::String::NewFromUtf8(isolate.GetIsolate(), "obj", in TEST() [all …]
|
D | test-accessors.cc | 69 v8::Isolate* isolate = env->GetIsolate(); in THREADED_TEST() 134 *field = value->Int32Value(info.GetIsolate()->GetCurrentContext()).FromJust(); in SetIntValue() 170 CHECK_EQ(isolate, info.GetIsolate()); in XGetter() 179 CHECK(x_holder->Equals(info.GetIsolate()->GetCurrentContext(), info.Holder()) in XGetter() 187 x_receiver->Equals(info.GetIsolate()->GetCurrentContext(), info.Holder()) in XGetter() 196 CHECK_EQ(isolate, info.GetIsolate()); in XSetter() 197 CHECK(x_holder->Equals(info.GetIsolate()->GetCurrentContext(), info.This()) in XSetter() 199 CHECK(x_holder->Equals(info.GetIsolate()->GetCurrentContext(), info.Holder()) in XSetter() 202 value->Int32Value(info.GetIsolate()->GetCurrentContext()).FromJust(); in XSetter() 222 v8::Isolate* isolate = context->GetIsolate(); in THREADED_TEST() [all …]
|
D | test-thread-termination.cc | 43 CHECK(!args.GetIsolate()->IsExecutionTerminating()); in TerminateCurrentThread() 44 args.GetIsolate()->TerminateExecution(); in TerminateCurrentThread() 54 CHECK(!args.GetIsolate()->IsExecutionTerminating()); in Loop() 56 CompileRun(args.GetIsolate()->GetCurrentContext(), in Loop() 59 CHECK(args.GetIsolate()->IsExecutionTerminating()); in Loop() 64 v8::TryCatch try_catch(args.GetIsolate()); in DoLoop() 65 CHECK(!args.GetIsolate()->IsExecutionTerminating()); in DoLoop() 67 CompileRun(args.GetIsolate()->GetCurrentContext(), in DoLoop() 86 CHECK(args.GetIsolate()->IsExecutionTerminating()); in DoLoop() 91 v8::TryCatch try_catch(args.GetIsolate()); in DoLoopNoCall() [all …]
|
D | test-heap-profiler.cc | 172 v8::HandleScope scope(env2->GetIsolate()); in TEST() 173 v8::HeapProfiler* heap_profiler = env2->GetIsolate()->GetHeapProfiler(); in TEST() 205 v8::HandleScope scope(env->GetIsolate()); in TEST() 206 v8::HeapProfiler* heap_profiler = env->GetIsolate()->GetHeapProfiler(); in TEST() 237 v8::HandleScope scope(env->GetIsolate()); in TEST() 238 v8::HeapProfiler* heap_profiler = env->GetIsolate()->GetHeapProfiler(); in TEST() 275 v8::HandleScope scope(env->GetIsolate()); in TEST() 276 v8::HeapProfiler* heap_profiler = env->GetIsolate()->GetHeapProfiler(); in TEST() 300 v8::HandleScope scope(env->GetIsolate()); in TEST() 301 v8::HeapProfiler* heap_profiler = env->GetIsolate()->GetHeapProfiler(); in TEST() [all …]
|
D | test-typedarrays.cc | 37 v8::HandleScope scope(env->GetIsolate()); in TEST() 50 v8::HandleScope scope(env->GetIsolate()); in TEST() 58 v8::HandleScope scope(env->GetIsolate()); in TEST() 75 v8::HandleScope scope(env->GetIsolate()); in TEST() 76 void* memory = reinterpret_cast<Isolate*>(env->GetIsolate()) in TEST() 80 v8::ArrayBuffer::New(env->GetIsolate(), memory, 1024, in TEST()
|
D | test-js-arm64-variables.cc | 73 v8::HandleScope scope(env->GetIsolate()); in TEST() 85 v8::HandleScope scope(env->GetIsolate()); in TEST() 96 v8::HandleScope scope(env->GetIsolate()); in TEST() 107 v8::HandleScope scope(env->GetIsolate()); in TEST() 121 v8::HandleScope scope(env->GetIsolate()); in TEST() 135 v8::HandleScope scope(env->GetIsolate()); in TEST()
|
D | test-javascript-arm64.cc | 91 v8::HandleScope scope(env->GetIsolate()); in TEST() 99 v8::HandleScope scope(env->GetIsolate()); in TEST() 107 v8::HandleScope scope(env->GetIsolate()); in TEST() 117 v8::HandleScope scope(env->GetIsolate()); in TEST() 174 v8::HandleScope scope(env->GetIsolate()); in TEST() 189 v8::HandleScope scope(env->GetIsolate()); in TEST() 211 v8::HandleScope scope(env->GetIsolate()); in TEST() 228 v8::HandleScope scope(env->GetIsolate()); in TEST() 241 v8::HandleScope scope(env->GetIsolate()); in TEST()
|
D | test-api.h | 16 CHECK_EQ(CcTest::isolate(), t.GetIsolate()); in CheckReturnValue() 17 CHECK_EQ(t.GetIsolate(), rv.GetIsolate()); in CheckReturnValue() 26 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(t.GetIsolate()); in CheckReturnValue()
|
D | profiler-extension.cc | 68 v8::CpuProfiler* cpu_profiler = args.GetIsolate()->GetCpuProfiler(); in StartProfiling() 71 : v8::String::Empty(args.GetIsolate())); in StartProfiling() 77 v8::CpuProfiler* cpu_profiler = args.GetIsolate()->GetCpuProfiler(); in StopProfiling() 80 : v8::String::Empty(args.GetIsolate())); in StopProfiling()
|
D | test-deoptimization.cc | 126 v8::HandleScope scope(env->GetIsolate()); in TEST() 172 v8::HandleScope scope(env->GetIsolate()); in TEST() 219 v8::HandleScope scope(env->GetIsolate()); in TEST() 252 v8::HandleScope scope(env->GetIsolate()); in TEST() 289 v8::HandleScope scope(env->GetIsolate()); in TEST() 325 v8::HandleScope scope(env->GetIsolate()); in TEST() 378 v8::HandleScope scope(env->GetIsolate()); in TEST() 423 v8::HandleScope scope(env->GetIsolate()); in UNINITIALIZED_TEST() 490 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>((*env)->GetIsolate()); in TestDeoptimizeBinaryOpHelper() 531 v8::HandleScope scope(env->GetIsolate()); in UNINITIALIZED_TEST() [all …]
|
D | test-api.cc | 96 v8::HandleScope scope(env->GetIsolate()); in RunWithProfiler() 98 v8::CpuProfiler* cpu_profiler = env->GetIsolate()->GetCpuProfiler(); in RunWithProfiler() 113 args.GetIsolate()->GetCurrentContext(), in IncrementingSignatureCallback() 117 args.GetIsolate()->GetCurrentContext(), in IncrementingSignatureCallback() 121 v8::Array::New(args.GetIsolate(), args.Length()); in IncrementingSignatureCallback() 123 CHECK(result->Set(args.GetIsolate()->GetCurrentContext(), in IncrementingSignatureCallback() 124 v8::Integer::New(args.GetIsolate(), i), args[i]) in IncrementingSignatureCallback() 181 CHECK(!env->GetIsolate()->InContext()); in THREADED_TEST() 182 CHECK(env->GetIsolate() == CcTest::isolate()); in THREADED_TEST() 184 CHECK(env->GetIsolate()->InContext()); in THREADED_TEST() [all …]
|
/external/v8/samples/ |
D | process.cc | 140 Isolate* GetIsolate() { return isolate_; } in GetIsolate() function in JsHttpRequestProcessor 158 HandleScope scope(args.GetIsolate()); in LogCallback() 169 HandleScope handle_scope(GetIsolate()); in Initialize() 173 Local<ObjectTemplate> global = ObjectTemplate::New(GetIsolate()); in Initialize() 174 global->Set(String::NewFromUtf8(GetIsolate(), "log", NewStringType::kNormal) in Initialize() 176 FunctionTemplate::New(GetIsolate(), LogCallback)); in Initialize() 183 v8::Local<v8::Context> context = Context::New(GetIsolate(), NULL, global); in Initialize() 184 context_.Reset(GetIsolate(), context); in Initialize() 201 String::NewFromUtf8(GetIsolate(), "Process", NewStringType::kNormal) in Initialize() 216 process_.Reset(GetIsolate(), process_fun); in Initialize() [all …]
|
D | shell.cc | 154 v8::HandleScope handle_scope(args.GetIsolate()); in Print() 174 args.GetIsolate()->ThrowException( in Read() 175 v8::String::NewFromUtf8(args.GetIsolate(), "Bad parameters", in Read() 181 args.GetIsolate()->ThrowException( in Read() 182 v8::String::NewFromUtf8(args.GetIsolate(), "Error loading file", in Read() 187 if (!ReadFile(args.GetIsolate(), *file).ToLocal(&source)) { in Read() 188 args.GetIsolate()->ThrowException( in Read() 189 v8::String::NewFromUtf8(args.GetIsolate(), "Error loading file", in Read() 202 v8::HandleScope handle_scope(args.GetIsolate()); in Load() 205 args.GetIsolate()->ThrowException( in Load() [all …]
|
/external/v8/src/extensions/ |
D | externalize-string-extension.cc | 61 args.GetIsolate()->ThrowException( in Externalize() 63 args.GetIsolate(), in Externalize() 73 ->BooleanValue(args.GetIsolate()->GetCurrentContext()) in Externalize() 76 args.GetIsolate()->ThrowException( in Externalize() 78 args.GetIsolate(), in Externalize() 87 args.GetIsolate()->ThrowException( in Externalize() 88 v8::String::NewFromUtf8(args.GetIsolate(), in Externalize() 100 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(args.GetIsolate()); in Externalize() 111 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(args.GetIsolate()); in Externalize() 117 args.GetIsolate()->ThrowException( in Externalize() [all …]
|
D | statistics-extension.cc | 62 Isolate* isolate = reinterpret_cast<Isolate*>(args.GetIsolate()); in GetCounters() 68 ->BooleanValue(args.GetIsolate()->GetCurrentContext()) in GetCounters() 75 v8::Local<v8::Object> result = v8::Object::New(args.GetIsolate()); in GetCounters() 109 AddCounter(args.GetIsolate(), result, counter_list[i].counter, in GetCounters() 135 AddNumber(args.GetIsolate(), result, numbers[i].number, numbers[i].name); in GetCounters() 138 AddNumber64(args.GetIsolate(), result, in GetCounters()
|
/external/skia/experimental/SkV8Example/ |
D | Path2DBuilder.cpp | 78 args.GetIsolate()->ThrowException( in MoveTo() 80 args.GetIsolate(), "Error: 2 arguments required.")); in MoveTo() 91 args.GetIsolate()->ThrowException( in LineTo() 93 args.GetIsolate(), "Error: 2 arguments required.")); in LineTo() 104 args.GetIsolate()->ThrowException( in QuadraticCurveTo() 106 args.GetIsolate(), "Error: 4 arguments required.")); in QuadraticCurveTo() 123 args.GetIsolate()->ThrowException( in BezierCurveTo() 125 args.GetIsolate(), "Error: 6 arguments required.")); in BezierCurveTo() 145 args.GetIsolate()->ThrowException( in Arc() 147 args.GetIsolate(), "Error: 5 or 6 args required.")); in Arc() [all …]
|
/external/pdfium/xfa/src/fxjse/src/ |
D | dynprop.cpp | 21 CFXJSE_Value* lpThisValue = CFXJSE_Value::Create(info.GetIsolate()); in FXJSE_DynPropGetterAdapter_MethodCallback() 23 CFXJSE_Value* lpRetValue = CFXJSE_Value::Create(info.GetIsolate()); in FXJSE_DynPropGetterAdapter_MethodCallback() 52 v8::Isolate* pIsolate = lpValue->GetIsolate(); in FXJSE_DynPropGetterAdapter() 66 lpValue->GetIsolate(), FXJSE_DynPropGetterAdapter_MethodCallback, in FXJSE_DynPropGetterAdapter() 123 CFXJSE_Value* lpThisValue = CFXJSE_Value::Create(info.GetIsolate()); in FXJSE_V8ProxyCallback_getOwnPropertyDescriptor_getter() 124 CFXJSE_Value* lpNewValue = CFXJSE_Value::Create(info.GetIsolate()); in FXJSE_V8ProxyCallback_getOwnPropertyDescriptor_getter() 145 CFXJSE_Value* lpThisValue = CFXJSE_Value::Create(info.GetIsolate()); in FXJSE_V8ProxyCallback_getOwnPropertyDescriptor_setter() 146 CFXJSE_Value* lpNewValue = CFXJSE_Value::Create(info.GetIsolate()); in FXJSE_V8ProxyCallback_getOwnPropertyDescriptor_setter() 164 v8::Isolate* pIsolate = info.GetIsolate(); in FXJSE_V8ProxyCallback_getOwnPropertyDescriptor() 195 v8::Isolate* pIsolate = info.GetIsolate(); in FXJSE_V8ProxyCallback_getPropertyDescriptor() [all …]
|
D | scope_inline.h | 24 v8::Isolate* GetIsolate() { return m_isolate; } in GetIsolate() function 61 v8::Isolate* GetIsolate() { return m_context->m_pIsolate; } in GetIsolate() function 89 v8::Isolate* GetIsolate() { return m_parent.GetIsolate(); } in GetIsolate() function 91 v8::Isolate* pIsolate = m_parent.GetIsolate(); in GetLocalContext()
|
/external/v8/src/wasm/ |
D | wasm-js.cc | 60 HandleScope scope(args.GetIsolate()); in VerifyModule() 61 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(args.GetIsolate()); in VerifyModule() 80 HandleScope scope(args.GetIsolate()); in VerifyFunction() 81 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(args.GetIsolate()); in VerifyFunction() 105 HandleScope scope(args.GetIsolate()); in CompileRun() 106 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(args.GetIsolate()); in CompileRun() 156 HandleScope scope(args.GetIsolate()); in AsmCompileRun() 157 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(args.GetIsolate()); in AsmCompileRun() 189 HandleScope scope(args.GetIsolate()); in InstantiateModuleFromAsm() 190 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(args.GetIsolate()); in InstantiateModuleFromAsm() [all …]
|