/external/v8/src/ |
D | v8threads.cc | 32 isolate_ = reinterpret_cast<i::Isolate*>(isolate); in Initialize() 36 if (!isolate_->thread_manager()->IsLockedByCurrentThread()) { in Initialize() 37 isolate_->thread_manager()->Lock(); in Initialize() 42 if (isolate_->thread_manager()->RestoreThread()) { in Initialize() 45 internal::ExecutionAccess access(isolate_); in Initialize() 46 isolate_->stack_guard()->ClearThread(access); in Initialize() 47 isolate_->stack_guard()->InitThread(access); in Initialize() 50 DCHECK(isolate_->thread_manager()->IsLockedByCurrentThread()); in Initialize() 67 DCHECK(isolate_->thread_manager()->IsLockedByCurrentThread()); in ~Locker() 70 isolate_->thread_manager()->FreeThreadResources(); in ~Locker() [all …]
|
D | json-stringifier.cc | 85 : isolate_(isolate), builder_(isolate), gap_(nullptr), indent_(0) { in JsonStringifier() 94 if (!gap->IsUndefined(isolate_) && !InitializeGap(gap)) { in Stringify() 119 HandleScope handle_scope(isolate_); in InitializeReplacer() 123 isolate_, length_obj, in InitializeReplacer() 124 Object::GetLengthFromArrayLike(isolate_, replacer), false); in InitializeReplacer() 131 isolate_, element, Object::GetElement(isolate_, replacer, i), false); in InitializeReplacer() 134 isolate_, key, Object::ToString(isolate_, element), false); in InitializeReplacer() 136 Handle<Object> value(Handle<JSValue>::cast(element)->value(), isolate_); in InitializeReplacer() 139 isolate_, key, Object::ToString(isolate_, element), false); in InitializeReplacer() 158 HandleScope scope(isolate_); in InitializeGap() [all …]
|
D | prototype.h | 35 : isolate_(isolate), in isolate_() function 48 : isolate_(isolate), in isolate_() function 58 : isolate_(receiver_map->GetIsolate()), 59 object_(receiver_map->GetPrototypeChainRootMap(isolate_)->prototype()), 61 is_at_end_(object_->IsNull(isolate_)), 72 : isolate_(receiver_map->GetIsolate()), 74 handle_(receiver_map->GetPrototypeChainRootMap(isolate_)->prototype(), 75 isolate_), 77 is_at_end_(handle_->IsNull(isolate_)), 93 return isolate_->MayAccess(handle(isolate_->context()), in HasAccess() [all …]
|
D | execution.cc | 20 : isolate_(NULL) { in StackGuard() 25 DCHECK(isolate_ != NULL); in set_interrupt_limits() 28 isolate_->heap()->SetStackLimits(); in set_interrupt_limits() 33 DCHECK(isolate_ != NULL); in reset_limits() 36 isolate_->heap()->SetStackLimits(); in reset_limits() 261 ExecutionAccess access(isolate_); in SetStackLimit() 264 uintptr_t jslimit = SimulatorStack::JsLimitFromCLimit(isolate_, limit); in SetStackLimit() 277 ExecutionAccess access(isolate_); in AdjustStackLimitForSimulator() 281 uintptr_t jslimit = SimulatorStack::JsLimitFromCLimit(isolate_, climit); in AdjustStackLimitForSimulator() 284 isolate_->heap()->SetStackLimits(); in AdjustStackLimitForSimulator() [all …]
|
D | value-serializer.cc | 157 : isolate_(isolate), in ValueSerializer() 335 : handle(JSArrayBuffer::cast(view->buffer()), isolate_)); in WriteObject() 430 STACK_CHECK(isolate_, Nothing<bool>()); in WriteJSReceiver() 432 HandleScope scope(isolate_); in WriteJSReceiver() 442 isolate_->native_context()->wasm_module_constructor()) { in WriteJSReceiver() 482 Handle<Map> map(object->map(), isolate_); in WriteJSObject() 490 Handle<Name> key(map->instance_descriptors()->GetKey(i), isolate_); in WriteJSObject() 506 LookupIterator it(isolate_, object, key, LookupIterator::OWN); in WriteJSObject() 563 isolate_); in WriteJSArray() 572 FixedDoubleArray::cast(array->elements()), isolate_); in WriteJSArray() [all …]
|
D | keys.cc | 47 return isolate_->factory()->empty_fixed_array(); in GetKeys() 50 keys_->map() == isolate_->heap()->fixed_array_map()) { in GetKeys() 61 AddKey(handle(key, isolate_), convert); in AddKey() 73 keys_ = OrderedHashSet::Allocate(isolate_, 16); in AddKey() 78 key = isolate_->factory()->NewNumberFromUint(index); in AddKey() 87 Handle<Object> current(array->get(i), isolate_); in AddKeys() 140 isolate_, keys, FilterProxyKeys(this, proxy, keys, filter_), in AddKeysFromJSProxy() 166 for (PrototypeIterator iter(isolate_, object, kStartAtReceiver, end); in CollectKeys() 199 return shadowing_keys_->Has(isolate_, key); in IsShadowed() 204 AddShadowingKey(handle(key, isolate_)); in AddShadowingKey() [all …]
|
D | vm-state-inl.h | 42 : isolate_(isolate), previous_tag_(isolate->current_vm_state()) { in VMState() 44 LOG(isolate_, TimerEvent(Logger::START, TimerEventExternal::name())); in VMState() 46 isolate_->set_current_vm_state(Tag); in VMState() 53 LOG(isolate_, TimerEvent(Logger::END, TimerEventExternal::name())); in ~VMState() 55 isolate_->set_current_vm_state(previous_tag_); in ~VMState() 59 : isolate_(isolate), in ExternalCallbackScope() 65 isolate_->set_external_callback_scope(this); in ExternalCallbackScope() 71 isolate_->set_external_callback_scope(previous_scope_); in ~ExternalCallbackScope()
|
D | messages.cc | 285 if (!HasScript()) return isolate_->factory()->undefined_value(); in GetEvalOrigin() 286 return FormatEvalOrigin(isolate_, GetScript()).ToHandleChecked(); in GetEvalOrigin() 297 isolate_ = isolate; in FromFrameArray() 326 if (!HasScript()) return isolate_->factory()->null_value(); in GetFileName() 327 return handle(GetScript()->name(), isolate_); in GetFileName() 336 return isolate_->factory()->eval_string(); in GetFunctionName() 338 return isolate_->factory()->null_value(); in GetFunctionName() 369 if (!HasScript()) return isolate_->factory()->null_value(); in GetScriptNameOrSourceUrl() 370 return ScriptNameOrSourceUrl(GetScript(), isolate_); in GetScriptNameOrSourceUrl() 374 if (receiver_->IsNullOrUndefined(isolate_)) { in GetMethodName() [all …]
|
D | handles-inl.h | 30 isolate_ = isolate; in HandleScope() 46 int before = NumberOfHandles(isolate_); in ~HandleScope() 47 CloseScope(isolate_, prev_next_, prev_limit_); in ~HandleScope() 48 int after = NumberOfHandles(isolate_); in ~HandleScope() 53 CloseScope(isolate_, prev_next_, prev_limit_); in ~HandleScope() 81 HandleScopeData* current = isolate_->handle_scope_data(); in CloseAndEscape() 85 CloseScope(isolate_, prev_next_, prev_limit_); in CloseAndEscape() 88 Handle<T> result(value, isolate_); in CloseAndEscape() 122 inline SealHandleScope::SealHandleScope(Isolate* isolate) : isolate_(isolate) { in SealHandleScope() 125 HandleScopeData* current = isolate_->handle_scope_data(); in SealHandleScope() [all …]
|
D | lookup.cc | 96 if (holder != *holder_) holder_ = handle(holder, isolate_); in NextInternal() 104 holder_ = handle(holder, isolate_); in NextInternal() 144 return handle(Handle<HeapObject>::cast(receiver_)->map(), isolate_); in GetReceiverMap() 149 return isolate_->MayAccess(handle(isolate_->context()), in HasAccess() 162 if (isolate_->bootstrapper()->IsActive()) return; in InternalUpdateProtector() 165 if (!isolate_->IsArraySpeciesLookupChainIntact()) return; in InternalUpdateProtector() 168 isolate_->CountUsage( in InternalUpdateProtector() 170 isolate_->InvalidateArraySpeciesProtector(); in InternalUpdateProtector() 175 if (isolate_->IsInAnyContext(*holder_, in InternalUpdateProtector() 177 isolate_->CountUsage(v8::Isolate::UseCounterFeature:: in InternalUpdateProtector() [all …]
|
D | map-updater.cc | 67 return handle(GetFieldType(descriptor), isolate_); in GetOrComputeFieldType() 69 return GetValue(descriptor)->OptimalType(isolate_, representation); in GetOrComputeFieldType() 79 return handle(descriptors->GetFieldType(descriptor), isolate_); in GetOrComputeFieldType() 82 ->OptimalType(isolate_, representation); in GetOrComputeFieldType() 116 new_representation_, field_type, isolate_); in ReconfigureToDataField() 198 handle(old_descriptors_->GetFieldType(modified_descriptor_), isolate_), in TryRecofigureToDataFieldInplace() 202 isolate_); in TryRecofigureToDataFieldInplace() 221 root_map_ = handle(old_map_->FindRootMap(), isolate_); in FindRootMap() 283 Handle<Map> tmp_map(transition, isolate_); in FindTargetMap() 286 isolate_); in FindTargetMap() [all …]
|
D | json-parser.cc | 37 HandleScope outer_scope(isolate_); in InternalizeJsonProperty() 40 isolate_, value, Object::GetPropertyOrElement(holder, name), Object); in InternalizeJsonProperty() 48 isolate_, length_object, in InternalizeJsonProperty() 49 Object::GetLengthFromArrayLike(isolate_, object), Object); in InternalizeJsonProperty() 52 HandleScope inner_scope(isolate_); in InternalizeJsonProperty() 53 Handle<Object> index = isolate_->factory()->NewNumber(i); in InternalizeJsonProperty() 54 Handle<String> name = isolate_->factory()->NumberToString(index); in InternalizeJsonProperty() 60 isolate_, contents, in InternalizeJsonProperty() 66 HandleScope inner_scope(isolate_); in InternalizeJsonProperty() 67 Handle<String> name(String::cast(contents->get(i)), isolate_); in InternalizeJsonProperty() [all …]
|
D | handles.cc | 122 : isolate_(isolate), zone_(isolate->allocator(), ZONE_NAME) { in CanonicalHandleScope() 123 HandleScopeData* handle_scope_data = isolate_->handle_scope_data(); in CanonicalHandleScope() 136 isolate_->handle_scope_data()->canonical_scope = prev_canonical_scope_; in ~CanonicalHandleScope() 141 DCHECK_LE(canonical_level_, isolate_->handle_scope_data()->level); in Lookup() 142 if (isolate_->handle_scope_data()->level != canonical_level_) { in Lookup() 145 return HandleScope::CreateHandle(isolate_, object); in Lookup() 150 return isolate_->heap() in Lookup() 158 *entry = HandleScope::CreateHandle(isolate_, object); in Lookup()
|
/external/v8/src/compiler-dispatcher/ |
D | compiler-dispatcher-job.cc | 69 isolate_(isolate), in CompilerDispatcherJob() 72 isolate_->global_handles()->Create(isolate->context()))), in CompilerDispatcherJob() 74 isolate_->global_handles()->Create(*shared))), in CompilerDispatcherJob() 78 HandleScope scope(isolate_); in CompilerDispatcherJob() 79 Handle<Script> script(Script::cast(shared_->script()), isolate_); in CompilerDispatcherJob() 80 Handle<String> source(String::cast(script->source()), isolate_); in CompilerDispatcherJob() 95 isolate_(isolate), in CompilerDispatcherJob() 98 isolate_->global_handles()->Create(isolate->context()))), in CompilerDispatcherJob() 100 isolate_->global_handles()->Create(*shared))), in CompilerDispatcherJob() 120 DCHECK(ThreadId::Current().Equals(isolate_->thread_id())); in ~CompilerDispatcherJob() [all …]
|
D | compiler-dispatcher.cc | 218 : isolate_(isolate), in CompilerDispatcher() 222 tracer_(new CompilerDispatcherTracer(isolate_)), in CompilerDispatcher() 279 isolate_, tracer_.get(), function, max_stack_size_)); in Enqueue() 299 DoNextStepOnMainThread(isolate_, job->second.get(), in EnqueueAndStep() 322 isolate_, tracer_.get(), script, function, literal, parse_zone, in Enqueue() 350 DoNextStepOnMainThread(isolate_, job->second.get(), in EnqueueAndStep() 368 isolate_, &RuntimeCallStats::CompileWaitForDispatcher); in WaitForJobIfRunningOnBackground() 398 DoNextStepOnMainThread(isolate_, job->second.get(), in FinishNow() 512 reinterpret_cast<v8::Isolate*>(isolate_), in MemoryPressureNotification() 513 new MemoryPressureTask(isolate_, task_manager_.get(), this)); in MemoryPressureNotification() [all …]
|
/external/v8/src/debug/ |
D | debug.cc | 53 isolate_(isolate) { in Debug() 365 isolate_->counters()->debug_feature_usage()->AddSample(feature); in Track() 436 PostponeInterruptsScope postpone(isolate_); in Load() 439 HandleScope scope(isolate_); in Load() 445 Handle<Context> context = isolate_->bootstrapper()->CreateEnvironment( in Load() 454 isolate_->global_handles()->Create(*context)); in Load() 487 PostponeInterruptsScope postpone(isolate_); in Break() 494 Handle<DebugInfo> debug_info(shared->GetDebugInfo(), isolate_); in Break() 506 Handle<JSArray> jsarr = isolate_->factory()->NewJSArrayWithElements( in Break() 548 OnDebugBreak(isolate_->factory()->undefined_value()); in Break() [all …]
|
D | debug-frames.cc | 18 isolate_(isolate) { in FrameInspector() 72 return handle(frame_->GetParameter(index), isolate_); in GetParameter() 80 return isolate_->factory()->undefined_value(); in GetExpression() 83 : handle(frame_->GetExpression(index), isolate_); in GetExpression() 94 : handle(frame_->context(), isolate_); in GetContext() 113 HandleScope scope(isolate_); in MaterializeStackLocals() 126 : Handle<Object>::cast(isolate_->factory()->undefined_value()); in MaterializeStackLocals() 127 DCHECK(!value->IsTheHole(isolate_)); in MaterializeStackLocals() 139 if (value->IsTheHole(isolate_)) { in MaterializeStackLocals() 140 value = isolate_->factory()->undefined_value(); in MaterializeStackLocals() [all …]
|
D | debug-scopes.cc | 24 : isolate_(isolate), in ScopeIterator() 44 context_ = Handle<Context>(context_->previous(), isolate_); in ScopeIterator() 74 context_ = Handle<Context>(context_->declaration_context(), isolate_); in ScopeIterator() 77 context_ = Handle<Context>(context_->previous(), isolate_); in ScopeIterator() 129 CHECK(isolate_->has_pending_exception()); in ScopeIterator() 130 isolate_->clear_pending_exception(); in ScopeIterator() 137 : isolate_(isolate), in ScopeIterator() 147 : isolate_(isolate), in ScopeIterator() 162 isolate_); in UnwrapEvaluationContext() 166 context_ = Handle<Context>(context_->previous(), isolate_); in UnwrapEvaluationContext() [all …]
|
/external/chromium-libpac/src/ |
D | proxy_resolver_v8.cc | 363 : js_bindings_(js_bindings), error_listener_(error_listener), isolate_(isolate) { in Context() 367 v8::Locker locked(isolate_); in ~Context() 368 v8::Isolate::Scope isolate_scope(isolate_); in ~Context() 376 v8::Locker locked(isolate_); in ResolveProxy() 377 v8::Isolate::Scope isolate_scope(isolate_); in ResolveProxy() 378 v8::HandleScope scope(isolate_); in ResolveProxy() 381 v8::Local<v8::Context>::New(isolate_, v8_context_); in ResolveProxy() 392 UTF16StringToV8String(isolate_, url), in ResolveProxy() 393 UTF16StringToV8String(isolate_, host) }; in ResolveProxy() 427 v8::Locker locked(isolate_); in InitV8() [all …]
|
/external/v8/src/wasm/ |
D | wasm-result.cc | 45 isolate_->factory()->NewStringFromAsciiChecked(str.str().c_str()); in Format() 46 exception_ = isolate_->factory()->NewError(constructor, message); in Format() 53 Format(isolate_->type_error_function(), format, arguments); in TypeError() 61 Format(isolate_->range_error_function(), format, arguments); in RangeError() 70 Format(isolate_->wasm_compile_error_function(), format, arguments); in CompileError() 79 Format(isolate_->wasm_link_error_function(), format, arguments); in LinkError() 88 Format(isolate_->wasm_runtime_error_function(), format, arguments); in RuntimeError() 93 if (error() && !isolate_->has_pending_exception()) { in ~ErrorThrower() 94 isolate_->ScheduleThrow(*exception_); in ~ErrorThrower()
|
D | wasm-module.cc | 212 : isolate_(isolate), module_(module) {} in CompilationHelper() 219 : CancelableTask(helper->isolate_), helper_(helper) {} in CompilationTask() 228 Isolate* isolate_; member in __anonda50ac2a0111::CompilationHelper 267 thrower, isolate_, &module_env, func, i)); in InitializeParallelCompilation() 293 if (isolate_->cancelable_task_manager()->TryAbort(task_ids[i]) != in WaitForCompilationTasks() 341 CanonicalHandleScope canonical(isolate_); in CompileInParallel() 388 thrower, isolate_, module_env, &func); in CompileSequentially() 403 Factory* factory = isolate_->factory(); in CompileToModuleObject() 407 WasmModuleWrapper::New(isolate_, module_); in CompileToModuleObject() 409 temp_instance.context = isolate_->native_context(); in CompileToModuleObject() [all …]
|
/external/v8/src/snapshot/ |
D | deserializer.cc | 38 for (Page* p : *isolate_->heap()->code_space()) { in FlushICacheForNewIsolate() 39 Assembler::FlushICache(isolate_, p->area_start(), in FlushICacheForNewIsolate() 48 isolate_->heap()->RecordWritesIntoCode(code); in FlushICacheForNewCodeObjectsAndRecordEmbeddedObjects() 50 if (FLAG_serialize_age_code) code->PreAge(isolate_); in FlushICacheForNewCodeObjectsAndRecordEmbeddedObjects() 51 Assembler::FlushICache(isolate_, code->instruction_start(), in FlushICacheForNewCodeObjectsAndRecordEmbeddedObjects() 63 if (!isolate_->heap()->ReserveSpace(reservations_, &allocated_maps_)) in ReserveSpace() 72 DCHECK_NULL(isolate_); in Initialize() 74 isolate_ = isolate; in Initialize() 85 DCHECK_NULL(isolate_->thread_manager()->FirstThreadStateInUse()); in Deserialize() 87 DCHECK(isolate_->handle_scope_implementer()->blocks()->is_empty()); in Deserialize() [all …]
|
/external/libmojo/mojo/edk/js/ |
D | drain_data.cc | 23 : isolate_(isolate), handle_(DataPipeConsumerHandle(handle.value())) { in DrainData() 24 v8::Handle<v8::Context> context(isolate_->GetCurrentContext()); in DrainData() 33 v8::Promise::Resolver::New(isolate_)); in GetPromise() 34 resolver_.Reset(isolate_, resolver); in GetPromise() 88 v8::ArrayBuffer::New(isolate_, total_bytes); in DeliverData() 90 ConvertFromV8(isolate_, array_buffer, &buffer); in DeliverData() 110 v8::Local<v8::Promise::Resolver>::New(isolate_, resolver_)); in DeliverData() 112 gin::Dictionary dictionary = gin::Dictionary::CreateEmpty(isolate_); in DeliverData() 115 v8::Handle<v8::Value> settled_value(ConvertToV8(isolate_, dictionary)); in DeliverData()
|
/external/v8/src/profiler/ |
D | cpu-profiler.cc | 236 processor_->AddDeoptStack(isolate_, pc, fp_to_sp_delta); in CodeEventHandler() 245 : isolate_(isolate), in CpuProfiler() 256 : isolate_(isolate), in CpuProfiler() 276 profiles_.reset(new CpuProfilesCollection(isolate_)); in ResetProfiles() 282 RuntimeCallStats* rcs = isolate_->counters()->runtime_call_stats(); in CreateEntriesForRuntimeCallStats() 297 processor_->AddCurrentStack(isolate_); in CollectSample() 310 isolate_->debug()->feature_tracker()->Track(DebugFeatureTracker::kProfiler); in StartProfiling() 316 processor_->AddCurrentStack(isolate_); in StartProcessorIfNotStarted() 319 Logger* logger = isolate_->logger(); in StartProcessorIfNotStarted() 324 processor_.reset(new ProfilerEventsProcessor(isolate_, generator_.get(), in StartProcessorIfNotStarted() [all …]
|
/external/v8/src/parsing/ |
D | parse-info.cc | 37 isolate_(nullptr), in ParseInfo() 46 isolate_ = shared->GetIsolate(); in ParseInfo() 50 set_hash_seed(isolate_->heap()->HashSeed()); in ParseInfo() 57 set_stack_limit(isolate_->stack_guard()->real_climit()); in ParseInfo() 58 set_unicode_cache(isolate_->unicode_cache()); in ParseInfo() 83 isolate_ = script->GetIsolate(); in ParseInfo() 87 set_hash_seed(isolate_->heap()->HashSeed()); in ParseInfo() 88 set_stack_limit(isolate_->stack_guard()->real_climit()); in ParseInfo() 89 set_unicode_cache(isolate_->unicode_cache()); in ParseInfo() 108 p->isolate_ = isolate; in AllocateWithoutScript()
|