Home
last modified time | relevance | path

Searched refs:isolate_ (Results 1 – 25 of 205) sorted by relevance

123456789

/external/v8/src/
Dv8threads.cc33 isolate_ = reinterpret_cast<i::Isolate*>(isolate); in Initialize()
37 if (!isolate_->thread_manager()->IsLockedByCurrentThread()) { in Initialize()
38 isolate_->thread_manager()->Lock(); in Initialize()
43 if (isolate_->thread_manager()->RestoreThread()) { in Initialize()
46 internal::ExecutionAccess access(isolate_); in Initialize()
47 isolate_->stack_guard()->ClearThread(access); in Initialize()
48 isolate_->thread_manager()->InitThread(access); in Initialize()
51 DCHECK(isolate_->thread_manager()->IsLockedByCurrentThread()); in Initialize()
68 DCHECK(isolate_->thread_manager()->IsLockedByCurrentThread()); in ~Locker()
71 isolate_->thread_manager()->FreeThreadResources(); in ~Locker()
[all …]
Dasync-hooks-wrapper.cc16 return init_function_.Get(isolate_); in init_function()
19 init_function_.Reset(isolate_, value); in set_init_function()
22 return before_function_.Get(isolate_); in before_function()
25 before_function_.Reset(isolate_, value); in set_before_function()
28 return after_function_.Get(isolate_); in after_function()
31 after_function_.Reset(isolate_, value); in set_after_function()
34 return promiseResolve_function_.Get(isolate_); in promiseResolve_function()
38 promiseResolve_function_.Reset(isolate_, value); in set_promiseResolve_function()
136 HandleScope handle_scope(hooks->isolate_); in ShellPromiseHook()
138 Local<Context> currentContext = hooks->isolate_->GetCurrentContext(); in ShellPromiseHook()
[all …]
Dbootstrapper.cc83 : isolate_(isolate), in Bootstrapper()
91 isolate_->factory()->NewNativeSourceString(resource); in GetNativeSource()
97 extensions_cache_.Initialize(isolate_, create_heap_objects); in Initialize()
146 extensions_cache_.Initialize(isolate_, false); // Yes, symmetrical in TearDown()
161 Isolate* isolate() const { return isolate_; } in isolate()
162 Factory* factory() const { return isolate_->factory(); } in factory()
163 Builtins* builtins() const { return isolate_->builtins(); } in builtins()
164 Heap* heap() const { return isolate_->heap(); } in heap()
298 Isolate* isolate_; member in v8::internal::BASE_EMBEDDED
325 HandleScope scope(isolate_); in CreateEnvironment()
[all …]
Djson-stringifier.cc109 Factory* factory() { return isolate_->factory(); } in factory()
111 Isolate* isolate_; member in v8::internal::BASE_EMBEDDED
199 : isolate_(isolate), builder_(isolate), gap_(nullptr), indent_(0) { in JsonStringifier()
208 if (!gap->IsUndefined(isolate_) && !InitializeGap(gap)) { in Stringify()
224 HandleScope handle_scope(isolate_); in InitializeReplacer()
228 isolate_, length_obj, in InitializeReplacer()
229 Object::GetLengthFromArrayLike(isolate_, in InitializeReplacer()
238 isolate_, element, Object::GetElement(isolate_, replacer, i), false); in InitializeReplacer()
241 isolate_, key, Object::ToString(isolate_, element), false); in InitializeReplacer()
243 Handle<Object> value(Handle<JSValue>::cast(element)->value(), isolate_); in InitializeReplacer()
[all …]
Dvalue-serializer.cc188 : isolate_(isolate), in ValueSerializer()
381 : handle(JSArrayBuffer::cast(view->buffer()), isolate_)); in WriteObject()
443 string = String::Flatten(isolate_, string); in WriteString()
486 STACK_CHECK(isolate_, Nothing<bool>()); in WriteJSReceiver()
488 HandleScope scope(isolate_); in WriteJSReceiver()
521 auto enabled_features = wasm::WasmFeaturesFromIsolate(isolate_); in WriteJSReceiver()
529 auto enabled_features = wasm::WasmFeaturesFromIsolate(isolate_); in WriteJSReceiver()
549 Handle<Map> map(object->map(), isolate_); in WriteJSObject()
557 Handle<Name> key(map->instance_descriptors()->GetKey(i), isolate_); in WriteJSObject()
573 LookupIterator it(isolate_, object, key, LookupIterator::OWN); in WriteJSObject()
[all …]
Dprototype-inl.h20 : isolate_(isolate), in PrototypeIterator()
33 : isolate_(isolate), in PrototypeIterator()
43 : isolate_(isolate), in PrototypeIterator()
44 object_(receiver_map->GetPrototypeChainRootMap(isolate_)->prototype()), in PrototypeIterator()
46 is_at_end_(object_->IsNull(isolate_)), in PrototypeIterator()
57 : isolate_(isolate), in PrototypeIterator()
59 handle_(receiver_map->GetPrototypeChainRootMap(isolate_)->prototype(), in PrototypeIterator()
60 isolate_), in PrototypeIterator()
62 is_at_end_(handle_->IsNull(isolate_)), in PrototypeIterator()
76 return isolate_->MayAccess(handle(isolate_->context(), isolate_), in HasAccess()
[all …]
Dd8-console.cc36 D8Console::D8Console(Isolate* isolate) : isolate_(isolate) { in D8Console()
44 if (!args[0]->ToBoolean(isolate_->GetCurrentContext()).ToLocal(&arg)) { in Assert()
49 arg = v8::False(isolate_); in Assert()
52 WriteToFile("console.assert", stdout, isolate_, args); in Assert()
53 isolate_->ThrowException(v8::Exception::Error( in Assert()
54 v8::String::NewFromUtf8(isolate_, "console.assert failed", in Assert()
61 WriteToFile(nullptr, stdout, isolate_, args); in Log()
66 WriteToFile("console.error", stderr, isolate_, args); in Error()
71 WriteToFile("console.warn", stdout, isolate_, args); in Warn()
76 WriteToFile("console.info", stdout, isolate_, args); in Info()
[all …]
Dlookup.cc132 isolate_(isolate), in LookupIterator()
191 if (holder != *holder_) holder_ = handle(holder, isolate_); in NextInternal()
199 holder_ = handle(holder, isolate_); in NextInternal()
238 return handle(Handle<HeapObject>::cast(receiver_)->map(), isolate_); in GetReceiverMap()
243 return isolate_->MayAccess(handle(isolate_->context(), isolate_), in HasAccess()
276 if (isolate_->bootstrapper()->IsActive()) return; in InternalUpdateProtector()
280 if (!isolate_->IsArraySpeciesLookupChainIntact() && in InternalUpdateProtector()
281 !isolate_->IsTypedArraySpeciesLookupChainIntact() && in InternalUpdateProtector()
282 !isolate_->IsPromiseSpeciesLookupChainIntact()) in InternalUpdateProtector()
286 if (!isolate_->IsArraySpeciesLookupChainIntact()) return; in InternalUpdateProtector()
[all …]
Dexecution.cc19 StackGuard::StackGuard() : isolate_(nullptr) {} in StackGuard()
22 DCHECK_NOT_NULL(isolate_); in set_interrupt_limits()
25 isolate_->heap()->SetStackLimits(); in set_interrupt_limits()
30 DCHECK_NOT_NULL(isolate_); in reset_limits()
33 isolate_->heap()->SetStackLimits(); in reset_limits()
277 ExecutionAccess access(isolate_); in SetStackLimit()
280 uintptr_t jslimit = SimulatorStack::JsLimitFromCLimit(isolate_, limit); in SetStackLimit()
293 ExecutionAccess access(isolate_); in AdjustStackLimitForSimulator()
297 uintptr_t jslimit = SimulatorStack::JsLimitFromCLimit(isolate_, climit); in AdjustStackLimitForSimulator()
300 isolate_->heap()->SetStackLimits(); in AdjustStackLimitForSimulator()
[all …]
Dmap-updater.cc28 : isolate_(isolate), in MapUpdater()
30 old_descriptors_(old_map->instance_descriptors(), isolate_), in MapUpdater()
81 return handle(GetFieldType(descriptor), isolate_); in GetOrComputeFieldType()
83 return GetValue(descriptor)->OptimalType(isolate_, representation); in GetOrComputeFieldType()
93 return handle(descriptors->GetFieldType(descriptor), isolate_); in GetOrComputeFieldType()
96 ->OptimalType(isolate_, representation); in GetOrComputeFieldType()
130 new_representation_, field_type, isolate_); in ReconfigureToDataField()
141 isolate_, old_map_->instance_type(), &new_constness_, in ReconfigureToDataField()
180 Map::GeneralizeField(isolate_, map, modify_index, new_constness, in GeneralizeField()
188 isolate_, old_map_, new_elements_kind_, modified_descriptor_, new_kind_, in CopyGeneralizeAllFields()
[all …]
Dkeys.cc51 return isolate_->factory()->empty_fixed_array(); in GetKeys()
54 keys_->map() == ReadOnlyRoots(isolate_).fixed_array_map()) { in GetKeys()
69 AddKey(handle(key, isolate_), convert); in AddKey()
81 keys_ = OrderedHashSet::Allocate(isolate_, 16); in AddKey()
86 key = isolate_->factory()->NewNumberFromUint(index); in AddKey()
102 Handle<Object> current(array->get(i), isolate_); in AddKeys()
153 isolate_, keys, FilterProxyKeys(this, proxy, keys, filter_), in AddKeysFromJSProxy()
179 for (PrototypeIterator iter(isolate_, object, kStartAtReceiver, end); in CollectKeys()
212 return shadowing_keys_->Has(isolate_, key); in IsShadowed()
217 AddShadowingKey(handle(key, isolate_)); in AddShadowingKey()
[all …]
Dmessages.cc287 if (!HasScript()) return isolate_->factory()->undefined_value(); in GetEvalOrigin()
288 return FormatEvalOrigin(isolate_, GetScript()).ToHandleChecked(); in GetEvalOrigin()
299 isolate_ = isolate; in FromFrameArray()
328 if (!HasScript()) return isolate_->factory()->null_value(); in GetFileName()
329 return handle(GetScript()->name(), isolate_); in GetFileName()
338 return isolate_->factory()->eval_string(); in GetFunctionName()
340 return isolate_->factory()->null_value(); in GetFunctionName()
371 if (!HasScript()) return isolate_->factory()->null_value(); in GetScriptNameOrSourceUrl()
372 return ScriptNameOrSourceUrl(GetScript(), isolate_); in GetScriptNameOrSourceUrl()
376 if (receiver_->IsNullOrUndefined(isolate_)) { in GetMethodName()
[all …]
Dvm-state-inl.h45 : isolate_(isolate), previous_tag_(isolate->current_vm_state()) { in VMState()
47 LOG(isolate_, TimerEvent(Logger::START, TimerEventExternal::name())); in VMState()
49 isolate_->set_current_vm_state(Tag); in VMState()
56 LOG(isolate_, TimerEvent(Logger::END, TimerEventExternal::name())); in ~VMState()
58 isolate_->set_current_vm_state(previous_tag_); in ~VMState()
62 : isolate_(isolate), in ExternalCallbackScope()
68 isolate_->set_external_callback_scope(this); in ExternalCallbackScope()
74 isolate_->set_external_callback_scope(previous_scope_); in ~ExternalCallbackScope()
Dhandles-inl.h35 isolate_ = isolate; in HandleScope()
57 int before = NumberOfHandles(isolate_); in ~HandleScope()
58 CloseScope(isolate_, prev_next_, prev_limit_); in ~HandleScope()
59 int after = NumberOfHandles(isolate_); in ~HandleScope()
64 CloseScope(isolate_, prev_next_, prev_limit_); in ~HandleScope()
94 HandleScopeData* current = isolate_->handle_scope_data(); in CloseAndEscape()
98 CloseScope(isolate_, prev_next_, prev_limit_); in CloseAndEscape()
101 Handle<T> result(value, isolate_); in CloseAndEscape()
135 inline SealHandleScope::SealHandleScope(Isolate* isolate) : isolate_(isolate) { in SealHandleScope()
138 HandleScopeData* current = isolate_->handle_scope_data(); in SealHandleScope()
[all …]
/external/v8/src/builtins/
Dconstants-table-builder.cc13 : isolate_(isolate), map_(isolate->heap()) { in BuiltinsConstantsTableBuilder()
15 DCHECK_EQ(ReadOnlyRoots(isolate_).empty_fixed_array(), in BuiltinsConstantsTableBuilder()
16 isolate_->heap()->builtins_constants_table()); in BuiltinsConstantsTableBuilder()
21 DCHECK(isolate_->heap()->RootCanBeTreatedAsConstant( in BuiltinsConstantsTableBuilder()
30 DCHECK(!isolate_->heap()->IsRootHandle(object, &root_list_index)); in AddObject()
33 DCHECK_EQ(ReadOnlyRoots(isolate_).empty_fixed_array(), in AddObject()
34 isolate_->heap()->builtins_constants_table()); in AddObject()
37 DCHECK(ThreadId::Current().Equals(isolate_->thread_id())); in AddObject()
40 DCHECK(isolate_->serializer_enabled()); in AddObject()
60 DCHECK(!isolate_->heap()->IsRootHandle(code_object, &root_list_index)); in PatchSelfReference()
[all …]
/external/v8/src/debug/
Ddebug.cc93 isolate_(isolate) { in Debug()
329 isolate_->counters()->debug_feature_usage()->AddSample(feature); in Track()
422 PostponeInterruptsScope postpone(isolate_); in Break()
426 Handle<SharedFunctionInfo> shared(break_target->shared(), isolate_); in Break()
430 Handle<DebugInfo> debug_info(shared->GetDebugInfo(), isolate_); in Break()
444 : isolate_->factory()->empty_fixed_array()); in Break()
510 OnDebugBreak(isolate_->factory()->empty_fixed_array()); in Break()
525 break_points_active_ && location->HasBreakPoint(isolate_, debug_info); in CheckBreakPoints()
534 HandleScope scope(isolate_); in IsMutedAtCurrentLocation()
544 Handle<DebugInfo> debug_info(function->shared()->GetDebugInfo(), isolate_); in IsMutedAtCurrentLocation()
[all …]
Ddebug-scopes.cc26 : isolate_(isolate), in ScopeIterator()
50 Handle<String> debug_name(closure_info->FunctionDebugName(), isolate_); in GetFunctionDebugName()
53 return isolate_->factory()->undefined_value(); in GetFunctionDebugName()
57 : isolate_(isolate), in ScopeIterator()
69 : isolate_(isolate), in ScopeIterator()
92 Handle<SharedFunctionInfo> shared_info(function_->shared(), isolate_); in TryParseAndRetrieveScopes()
93 Handle<ScopeInfo> scope_info(shared_info->scope_info(), isolate_); in TryParseAndRetrieveScopes()
94 if (shared_info->script()->IsUndefined(isolate_)) { in TryParseAndRetrieveScopes()
96 context_ = handle(function_->context(), isolate_); in TryParseAndRetrieveScopes()
110 Handle<DebugInfo> debug_info(shared_info->GetDebugInfo(), isolate_); in TryParseAndRetrieveScopes()
[all …]
Ddebug-stack-trace-iterator.cc27 : isolate_(isolate), in DebugStackTraceIterator()
55 iterator_.frame(), inlined_frame_index_, isolate_)); in Advance()
87 Handle<Context> context(function->context(), isolate_); in GetReceiver()
91 ScopeIterator scope_iterator(isolate_, frame_inspector_.get(), in GetReceiver()
95 if (!scope_iterator.GetNonLocals()->Has(isolate_, in GetReceiver()
96 isolate_->factory()->this_string())) in GetReceiver()
99 Handle<ScopeInfo> scope_info(context->scope_info(), isolate_); in GetReceiver()
104 scope_info, isolate_->factory()->this_string(), &mode, &flag, in GetReceiver()
107 Handle<Object> value = handle(context->get(slot_index), isolate_); in GetReceiver()
108 if (value->IsTheHole(isolate_)) return v8::MaybeLocal<v8::Value>(); in GetReceiver()
[all …]
/external/chromium-libpac/src/
Dproxy_resolver_v8.cc361 : js_bindings_(js_bindings), error_listener_(error_listener), isolate_(isolate) { in Context()
365 v8::Locker locked(isolate_); in ~Context()
366 v8::Isolate::Scope isolate_scope(isolate_); in ~Context()
374 v8::Locker locked(isolate_); in ResolveProxy()
375 v8::Isolate::Scope isolate_scope(isolate_); in ResolveProxy()
376 v8::HandleScope scope(isolate_); in ResolveProxy()
379 v8::Local<v8::Context>::New(isolate_, v8_context_); in ResolveProxy()
389 UTF16StringToV8String(isolate_, url), in ResolveProxy()
390 UTF16StringToV8String(isolate_, host) }; in ResolveProxy()
392 v8::TryCatch try_catch(isolate_); in ResolveProxy()
[all …]
/external/v8/src/wasm/
Dwasm-result.cc121 constructor = isolate_->type_error_function(); in Reify()
124 constructor = isolate_->range_error_function(); in Reify()
127 constructor = isolate_->wasm_compile_error_function(); in Reify()
130 constructor = isolate_->wasm_link_error_function(); in Reify()
133 constructor = isolate_->wasm_runtime_error_function(); in Reify()
138 isolate_->factory()->NewStringFromUtf8(msg_vec).ToHandleChecked(); in Reify()
140 return isolate_->factory()->NewError(constructor, message); in Reify()
149 : isolate_(other.isolate_), in ErrorThrower()
157 if (error() && !isolate_->has_pending_exception()) { in ~ErrorThrower()
160 DCHECK(!isolate_->has_scheduled_exception()); in ~ErrorThrower()
[all …]
Dmodule-compiler.cc103 Isolate* isolate() const { return isolate_; } in isolate()
129 Isolate* const isolate_; member in v8::internal::wasm::CompilationState
238 Isolate* isolate_; member in v8::internal::wasm::__anonc090e3370111::InstanceBuilder
944 : isolate_(isolate), in InstanceBuilder()
969 CodeSpaceMemoryModificationScope modification_scope(isolate_->heap()); in Build()
971 DisallowJavascriptExecution no_js(isolate_); in Build()
974 isolate_->counters(), module_->origin, wasm_instantiate, module_time)); in Build()
983 isolate_->counters(), module_->origin, wasm, min_mem_pages_count); in Build()
1013 isolate_->wasm_engine()->memory_tracker(); in Build()
1029 ErrorThrower thrower(isolate_, "recompile"); in Build()
[all …]
Dwasm-debug.cc96 Isolate* isolate_; member in v8::internal::wasm::__anonf9bf0af50111::InterpreterHandle
143 : isolate_(isolate), in InterpreterHandle()
215 Handle<Object> exception = isolate_->factory()->NewWasmRuntimeError( in Execute()
217 isolate_->Throw(*exception); in Execute()
220 auto result = thread->HandleException(isolate_); in Execute()
286 StackTraceFrameIterator it(isolate_); in GetInstanceObject()
289 Handle<WasmInstanceObject> instance_obj(frame->wasm_instance(), isolate_); in GetInstanceObject()
300 DebugScope debug_scope(isolate_->debug()); in NotifyDebugEventListeners()
303 if (isolate_->debug()->break_points_active()) { in NotifyDebugEventListeners()
305 GetInstanceObject()->module_object(), isolate_); in NotifyDebugEventListeners()
[all …]
/external/v8/src/profiler/
Dcpu-profiler.cc244 processor_->AddDeoptStack(isolate_, pc, fp_to_sp_delta); in CodeEventHandler()
297 : isolate_(isolate), in CpuProfiler()
310 g_profilers_manager.Pointer()->RemoveProfiler(isolate_, this); in ~CpuProfiler()
319 profiles_.reset(new CpuProfilesCollection(isolate_)); in ResetProfiles()
326 RuntimeCallStats* rcs = isolate_->counters()->runtime_call_stats(); in CreateEntriesForRuntimeCallStats()
344 processor_->AddCurrentStack(isolate_); in CollectSample()
359 isolate_->debug()->feature_tracker()->Track(DebugFeatureTracker::kProfiler); in StartProfiling()
364 processor_->AddCurrentStack(isolate_); in StartProcessorIfNotStarted()
367 Logger* logger = isolate_->logger(); in StartProcessorIfNotStarted()
378 processor_.reset(new ProfilerEventsProcessor(isolate_, generator_.get(), in StartProcessorIfNotStarted()
[all …]
/external/v8/src/heap/
Dembedder-tracing.h21 explicit LocalEmbedderHeapTracer(Isolate* isolate) : isolate_(isolate) {} in LocalEmbedderHeapTracer()
24 if (remote_tracer_) remote_tracer_->isolate_ = nullptr; in ~LocalEmbedderHeapTracer()
28 if (remote_tracer_) remote_tracer_->isolate_ = nullptr; in SetRemoteTracer()
32 remote_tracer_->isolate_ = reinterpret_cast<v8::Isolate*>(isolate_); in SetRemoteTracer()
73 Isolate* const isolate_; variable
/external/v8/src/interpreter/
Dsetup-interpreter-internal.cc29 HandleScope scope(interpreter->isolate_); in InstallBytecodeHandlers()
32 CanonicalHandleScope canonical(interpreter->isolate_); in InstallBytecodeHandlers()
44 InstallBytecodeHandler(interpreter->isolate_, dispatch_table, \ in InstallBytecodeHandlers()
60 Heap* heap = interpreter->isolate_->heap(); in InstallBytecodeHandlers()
63 interpreter->isolate_, OperandScale::kSingle)); in InstallBytecodeHandlers()
66 interpreter->isolate_, OperandScale::kDouble)); in InstallBytecodeHandlers()
69 interpreter->isolate_, OperandScale::kQuadruple)); in InstallBytecodeHandlers()

123456789