Home
last modified time | relevance | path

Searched refs:isolate (Results 1 – 25 of 895) sorted by relevance

12345678910>>...36

/external/v8/src/
Dcode-factory.cc20 return Callable(stub.GetCode(), Descriptor(stub.isolate())); in make_callable()
26 Handle<Code> CodeFactory::RuntimeCEntry(Isolate* isolate, int result_size) { in RuntimeCEntry() argument
27 CEntryStub stub(isolate, result_size); in RuntimeCEntry()
32 Callable CodeFactory::LoadIC(Isolate* isolate) { in LoadIC() argument
33 return Callable(isolate->builtins()->LoadICTrampoline(), in LoadIC()
34 LoadDescriptor(isolate)); in LoadIC()
38 Callable CodeFactory::LoadICProtoArray(Isolate* isolate, in LoadICProtoArray() argument
42 ? isolate->builtins()->LoadICProtoArrayThrowIfNonexistent() in LoadICProtoArray()
43 : isolate->builtins()->LoadICProtoArray(), in LoadICProtoArray()
44 LoadICProtoArrayDescriptor(isolate)); in LoadICProtoArray()
[all …]
Dcode-factory.h37 static Handle<Code> RuntimeCEntry(Isolate* isolate, int result_size = 1);
40 static Callable LoadIC(Isolate* isolate);
41 static Callable LoadICInOptimizedCode(Isolate* isolate);
42 static Callable LoadICProtoArray(Isolate* isolate, bool throw_if_nonexistent);
43 static Callable LoadGlobalIC(Isolate* isolate, TypeofMode typeof_mode);
44 static Callable LoadGlobalICInOptimizedCode(Isolate* isolate,
46 static Callable KeyedLoadIC(Isolate* isolate);
47 static Callable KeyedLoadICInOptimizedCode(Isolate* isolate);
48 static Callable KeyedLoadIC_Megamorphic(Isolate* isolate);
49 static Callable CallIC(Isolate* isolate,
[all …]
Dexternal-reference-table.cc25 Object* Builtin_##Name(int argc, Object** args, Isolate* isolate);
29 ExternalReferenceTable* ExternalReferenceTable::instance(Isolate* isolate) { in BUILTIN_LIST_C()
31 isolate->external_reference_table(); in BUILTIN_LIST_C()
33 external_reference_table = new ExternalReferenceTable(isolate); in BUILTIN_LIST_C()
34 isolate->set_external_reference_table(external_reference_table); in BUILTIN_LIST_C()
39 ExternalReferenceTable::ExternalReferenceTable(Isolate* isolate) { in ExternalReferenceTable() argument
42 AddReferences(isolate); in ExternalReferenceTable()
43 AddBuiltins(isolate); in ExternalReferenceTable()
44 AddRuntimeFunctions(isolate); in ExternalReferenceTable()
45 AddIsolateAddresses(isolate); in ExternalReferenceTable()
[all …]
Dapi-natives.cc20 explicit InvokeScope(Isolate* isolate) in InvokeScope() argument
21 : isolate_(isolate), save_context_(isolate) {} in InvokeScope()
36 MaybeHandle<JSObject> InstantiateObject(Isolate* isolate,
41 MaybeHandle<JSFunction> InstantiateFunction(Isolate* isolate,
45 MaybeHandle<Object> Instantiate(Isolate* isolate, Handle<Object> data, in Instantiate() argument
48 return InstantiateFunction(isolate, in Instantiate()
51 return InstantiateObject(isolate, Handle<ObjectTemplateInfo>::cast(data), in Instantiate()
59 Isolate* isolate, Handle<JSObject> object, Handle<Name> name, in DefineAccessorProperty() argument
69 isolate, getter, in DefineAccessorProperty()
70 InstantiateFunction(isolate, in DefineAccessorProperty()
[all …]
Dapi-arguments-inl.h29 Isolate* isolate = this->isolate(); \
30 SIDE_EFFECT_CHECK(isolate, f, InternalReturn); \
31 RuntimeCallTimerScope timer(isolate, &RuntimeCallStats::Function); \
32 VMState<EXTERNAL> state(isolate); \
33 ExternalCallbackScope call_scope(isolate, FUNCTION_ADDR(f)); \
35 LOG(isolate, \
38 return GetReturnValue<InternalReturn>(isolate); \
54 Isolate* isolate = this->isolate(); \
55 SIDE_EFFECT_CHECK(isolate, f, InternalReturn); \
56 RuntimeCallTimerScope timer(isolate, &RuntimeCallStats::Function); \
[all …]
Daccessors.cc23 Isolate* isolate, Handle<Name> name, AccessorNameGetterCallback getter, in MakeAccessor() argument
25 Factory* factory = isolate->factory(); in MakeAccessor()
35 Handle<Object> get = v8::FromCData(isolate, getter); in MakeAccessor()
37 Handle<Object> set = v8::FromCData(isolate, setter); in MakeAccessor()
42 Handle<Object> js_get = v8::FromCData(isolate, redirected); in MakeAccessor()
65 Isolate* isolate = name->GetIsolate(); in IsJSObjectFieldAccessor() local
70 CheckForName(name, isolate->factory()->length_string(), in IsJSObjectFieldAccessor()
74 return CheckForName(name, isolate->factory()->length_string(), in IsJSObjectFieldAccessor()
86 Isolate* isolate, Handle<Object> receiver, Handle<JSObject> holder, in ReplaceAccessorWithDataProperty() argument
107 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate()); in ReconfigureToDataProperty() local
[all …]
Dassembler.cc141 AssemblerBase::AssemblerBase(Isolate* isolate, void* buffer, int buffer_size) in AssemblerBase() argument
142 : isolate_(isolate), in AssemblerBase()
148 serializer_enabled_(isolate && isolate->serializer_enabled()), in AssemblerBase()
150 DCHECK_NOT_NULL(isolate); in AssemblerBase()
152 jit_cookie_ = isolate->random_number_generator()->NextInt(); in AssemblerBase()
170 void AssemblerBase::FlushICache(Isolate* isolate, void* start, size_t size) { in FlushICache() argument
174 base::LockGuard<base::Mutex> lock_guard(isolate->simulator_i_cache_mutex()); in FlushICache()
175 Simulator::FlushICache(isolate->simulator_i_cache(), start, size); in FlushICache()
184 v8::internal::Disassembler::Decode(isolate(), &os, buffer_, pc_, nullptr); in Print()
670 Isolate* isolate = code->map()->GetIsolate(); in RelocIterator() local
[all …]
Dmessages.cc33 void MessageHandler::DefaultMessageReport(Isolate* isolate, in DefaultMessageReport() argument
36 std::unique_ptr<char[]> str = GetLocalizedMessage(isolate, message_obj); in DefaultMessageReport()
40 HandleScope scope(isolate); in DefaultMessageReport()
41 Handle<Object> data(loc->script()->name(), isolate); in DefaultMessageReport()
51 Isolate* isolate, MessageTemplate::Template message, in MakeMessageObject() argument
54 Factory* factory = isolate->factory(); in MakeMessageObject()
64 script_handle = Script::GetWrapper(isolate->factory()->empty_script()); in MakeMessageObject()
77 void MessageHandler::ReportMessage(Isolate* isolate, const MessageLocation* loc, in ReportMessage() argument
87 Object* exception_object = isolate->heap()->undefined_value(); in ReportMessage()
88 if (isolate->has_pending_exception()) { in ReportMessage()
[all …]
/external/v8/src/builtins/
Dbuiltins-callsite.cc19 recv, isolate->factory()->call_site_frame_array_symbol()) \
22 isolate, \
24 isolate->factory()->NewStringFromAsciiChecked(method))); \
29 Object* PositiveNumberOrNull(int value, Isolate* isolate) { in PositiveNumberOrNull() argument
30 if (value >= 0) return *isolate->factory()->NewNumberFromInt(value); in PositiveNumberOrNull()
31 return isolate->heap()->null_value(); in PositiveNumberOrNull()
34 Handle<FrameArray> GetFrameArray(Isolate* isolate, Handle<JSObject> object) { in GetFrameArray() argument
36 object, isolate->factory()->call_site_frame_array_symbol()); in GetFrameArray()
40 int GetFrameIndex(Isolate* isolate, Handle<JSObject> object) { in GetFrameIndex() argument
42 object, isolate->factory()->call_site_frame_index_symbol()); in GetFrameIndex()
[all …]
Dbuiltins-reflect.cc22 HandleScope scope(isolate); in BUILTIN()
30 isolate, NewTypeError(MessageTemplate::kCalledOnNonObject, in BUILTIN()
31 isolate->factory()->NewStringFromAsciiChecked( in BUILTIN()
36 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, name, in BUILTIN()
37 Object::ToName(isolate, key)); in BUILTIN()
40 if (!PropertyDescriptor::ToPropertyDescriptor(isolate, attributes, &desc)) { in BUILTIN()
41 return isolate->heap()->exception(); in BUILTIN()
45 JSReceiver::DefineOwnProperty(isolate, Handle<JSReceiver>::cast(target), in BUILTIN()
47 MAYBE_RETURN(result, isolate->heap()->exception()); in BUILTIN()
48 return *isolate->factory()->ToBoolean(result.FromJust()); in BUILTIN()
[all …]
Dbuiltins-error.cc19 HandleScope scope(isolate); in BUILTIN()
33 isolate, ErrorUtils::Construct(isolate, args.target(), in BUILTIN()
35 args.atOrUndefined(isolate, 1), mode, in BUILTIN()
41 HandleScope scope(isolate); in BUILTIN()
42 Handle<Object> object_obj = args.atOrUndefined(isolate, 1); in BUILTIN()
45 isolate, NewTypeError(MessageTemplate::kInvalidArgument, object_obj)); in BUILTIN()
48 Handle<Object> caller = args.atOrUndefined(isolate, 2); in BUILTIN()
53 RETURN_FAILURE_ON_EXCEPTION(isolate, in BUILTIN()
54 isolate->CaptureAndSetDetailedStackTrace(object)); in BUILTIN()
59 isolate->CaptureSimpleStackTrace(object, mode, caller); in BUILTIN()
[all …]
Dbuiltins-object.cc88 HandleScope scope(isolate); in BUILTIN()
89 Handle<Object> target = args.atOrUndefined(isolate, 1); in BUILTIN()
92 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, target, in BUILTIN()
93 Object::ToObject(isolate, target)); in BUILTIN()
102 MAYBE_RETURN(JSReceiver::SetOrCopyDataProperties(isolate, to, next_source), in BUILTIN()
103 isolate->heap()->exception()); in BUILTIN()
111 HandleScope scope(isolate); in BUILTIN()
115 isolate, name, Object::ToName(isolate, args.atOrUndefined(isolate, 1))); in BUILTIN()
117 isolate, object, JSReceiver::ToObject(isolate, args.receiver())); in BUILTIN()
120 if (!maybe.IsJust()) return isolate->heap()->exception(); in BUILTIN()
[all …]
Dbuiltins-global.cc19 HandleScope scope(isolate); in BUILTIN()
22 isolate, encoded_uri, in BUILTIN()
23 Object::ToString(isolate, args.atOrUndefined(isolate, 1))); in BUILTIN()
25 RETURN_RESULT_OR_FAILURE(isolate, Uri::DecodeUri(isolate, encoded_uri)); in BUILTIN()
30 HandleScope scope(isolate); in BUILTIN()
33 isolate, encoded_uri_component, in BUILTIN()
34 Object::ToString(isolate, args.atOrUndefined(isolate, 1))); in BUILTIN()
37 isolate, Uri::DecodeUriComponent(isolate, encoded_uri_component)); in BUILTIN()
42 HandleScope scope(isolate); in BUILTIN()
45 isolate, uri, Object::ToString(isolate, args.atOrUndefined(isolate, 1))); in BUILTIN()
[all …]
/external/v8/src/runtime/
Druntime-internal.cc26 SealHandleScope shs(isolate); in RUNTIME_FUNCTION()
28 CHECK(isolate->bootstrapper()->IsActive()); in RUNTIME_FUNCTION()
29 return isolate->heap()->undefined_value(); in RUNTIME_FUNCTION()
34 HandleScope scope(isolate); in RUNTIME_FUNCTION()
37 CHECK(isolate->bootstrapper()->IsActive()); in RUNTIME_FUNCTION()
40 Bootstrapper::ExportFromRuntime(isolate, container); in RUNTIME_FUNCTION()
47 HandleScope scope(isolate); in RUNTIME_FUNCTION()
51 CHECK(isolate->bootstrapper()->IsActive()); in RUNTIME_FUNCTION()
52 Handle<Context> native_context = isolate->native_context(); in RUNTIME_FUNCTION()
67 return isolate->heap()->undefined_value(); in RUNTIME_FUNCTION()
[all …]
Druntime-classes.cc24 HandleScope scope(isolate); in RUNTIME_FUNCTION()
27 isolate, NewReferenceError(MessageTemplate::kUnsupportedSuper)); in RUNTIME_FUNCTION()
32 HandleScope scope(isolate); in RUNTIME_FUNCTION()
35 Handle<Object> name(constructor->shared()->name(), isolate); in RUNTIME_FUNCTION()
37 isolate, NewTypeError(MessageTemplate::kConstructorNonCallable, name)); in RUNTIME_FUNCTION()
42 HandleScope scope(isolate); in RUNTIME_FUNCTION()
45 isolate, NewTypeError(MessageTemplate::kStaticPrototype)); in RUNTIME_FUNCTION()
49 HandleScope scope(isolate); in RUNTIME_FUNCTION()
52 isolate, NewReferenceError(MessageTemplate::kSuperAlreadyCalled)); in RUNTIME_FUNCTION()
57 Object* ThrowNotSuperConstructor(Isolate* isolate, Handle<Object> constructor, in ThrowNotSuperConstructor() argument
[all …]
Druntime-promise.cc17 void PromiseRejectEvent(Isolate* isolate, Handle<JSPromise> promise, in PromiseRejectEvent() argument
20 isolate->RunPromiseHook(PromiseHookType::kResolve, promise, in PromiseRejectEvent()
21 isolate->factory()->undefined_value()); in PromiseRejectEvent()
23 if (isolate->debug()->is_active() && debug_event) { in PromiseRejectEvent()
24 isolate->debug()->OnPromiseReject(rejected_promise, value); in PromiseRejectEvent()
29 isolate->ReportPromiseReject(Handle<JSObject>::cast(promise), value, in PromiseRejectEvent()
38 HandleScope scope(isolate); in RUNTIME_FUNCTION()
43 if (isolate->debug()->is_active()) { in RUNTIME_FUNCTION()
47 rejected_promise = isolate->GetPromiseOnStackOnThrow(); in RUNTIME_FUNCTION()
48 isolate->debug()->OnAsyncTaskEvent( in RUNTIME_FUNCTION()
[all …]
Druntime-object.cc18 MaybeHandle<Object> Runtime::GetObjectProperty(Isolate* isolate, in GetObjectProperty() argument
22 if (object->IsNullOrUndefined(isolate)) { in GetObjectProperty()
24 isolate, in GetObjectProperty()
31 LookupIterator::PropertyOrElement(isolate, object, key, &success); in GetObjectProperty()
39 static MaybeHandle<Object> KeyedGetObjectProperty(Isolate* isolate, in KeyedGetObjectProperty() argument
65 key = handle(Handle<ThinString>::cast(key)->actual(), isolate); in KeyedGetObjectProperty()
76 if (!value->IsTheHole(isolate)) { in KeyedGetObjectProperty()
77 return Handle<Object>(value, isolate); in KeyedGetObjectProperty()
89 return Handle<Object>(value, isolate); in KeyedGetObjectProperty()
118 Factory* factory = isolate->factory(); in KeyedGetObjectProperty()
[all …]
Druntime-wasm.cc24 WasmInstanceObject* GetWasmInstanceOnStackTop(Isolate* isolate) { in GetWasmInstanceOnStackTop() argument
26 const Address entry = Isolate::c_entry_fp(isolate->thread_local_top()); in GetWasmInstanceOnStackTop()
29 Code* code = isolate->inner_pointer_to_code_cache()->GetCacheEntry(pc)->code; in GetWasmInstanceOnStackTop()
35 Context* GetWasmContextOnStackTop(Isolate* isolate) { in GetWasmContextOnStackTop() argument
36 return GetWasmInstanceOnStackTop(isolate) in GetWasmContextOnStackTop()
43 HandleScope scope(isolate); in RUNTIME_FUNCTION()
46 Handle<WasmInstanceObject> instance(GetWasmInstanceOnStackTop(isolate), in RUNTIME_FUNCTION()
47 isolate); in RUNTIME_FUNCTION()
48 return *isolate->factory()->NewNumberFromInt( in RUNTIME_FUNCTION()
49 wasm::GetInstanceMemorySize(isolate, instance)); in RUNTIME_FUNCTION()
[all …]
Druntime-operators.cc13 HandleScope scope(isolate); in RUNTIME_FUNCTION()
17 RETURN_RESULT_OR_FAILURE(isolate, Object::Multiply(isolate, lhs, rhs)); in RUNTIME_FUNCTION()
22 HandleScope scope(isolate); in RUNTIME_FUNCTION()
26 RETURN_RESULT_OR_FAILURE(isolate, Object::Divide(isolate, lhs, rhs)); in RUNTIME_FUNCTION()
31 HandleScope scope(isolate); in RUNTIME_FUNCTION()
35 RETURN_RESULT_OR_FAILURE(isolate, Object::Modulus(isolate, lhs, rhs)); in RUNTIME_FUNCTION()
40 HandleScope scope(isolate); in RUNTIME_FUNCTION()
44 RETURN_RESULT_OR_FAILURE(isolate, Object::Add(isolate, lhs, rhs)); in RUNTIME_FUNCTION()
49 HandleScope scope(isolate); in RUNTIME_FUNCTION()
53 RETURN_RESULT_OR_FAILURE(isolate, Object::Subtract(isolate, lhs, rhs)); in RUNTIME_FUNCTION()
[all …]
Druntime-test.cc36 bool IsWasmCompileAllowed(v8::Isolate* isolate, v8::Local<v8::Value> value, in IsWasmCompileAllowed() argument
38 DCHECK_GT(g_PerIsolateWasmControls.Get().count(isolate), 0); in IsWasmCompileAllowed()
39 const WasmCompileControls& ctrls = g_PerIsolateWasmControls.Get().at(isolate); in IsWasmCompileAllowed()
46 bool IsWasmInstantiateAllowed(v8::Isolate* isolate, in IsWasmInstantiateAllowed() argument
49 DCHECK_GT(g_PerIsolateWasmControls.Get().count(isolate), 0); in IsWasmInstantiateAllowed()
50 const WasmCompileControls& ctrls = g_PerIsolateWasmControls.Get().at(isolate); in IsWasmInstantiateAllowed()
53 return IsWasmCompileAllowed(isolate, module_or_bytes, is_async); in IsWasmInstantiateAllowed()
66 HandleScope scope(isolate); in RUNTIME_FUNCTION()
71 return *isolate->factory()->NewNumber(uint64_to_double(result)); in RUNTIME_FUNCTION()
75 HandleScope scope(isolate); in RUNTIME_FUNCTION()
[all …]
Druntime-debug.cc28 SealHandleScope shs(isolate); in RUNTIME_FUNCTION()
31 HandleScope scope(isolate); in RUNTIME_FUNCTION()
32 ReturnValueScope result_scope(isolate->debug()); in RUNTIME_FUNCTION()
33 isolate->debug()->set_return_value(*value); in RUNTIME_FUNCTION()
36 JavaScriptFrameIterator it(isolate); in RUNTIME_FUNCTION()
37 isolate->debug()->Break(it.frame()); in RUNTIME_FUNCTION()
38 return isolate->debug()->return_value(); in RUNTIME_FUNCTION()
42 SealHandleScope shs(isolate); in RUNTIME_FUNCTION()
45 HandleScope scope(isolate); in RUNTIME_FUNCTION()
46 ReturnValueScope result_scope(isolate->debug()); in RUNTIME_FUNCTION()
[all …]
Druntime-array.cc21 HandleScope scope(isolate); in RUNTIME_FUNCTION()
30 prototype->set_elements(isolate->heap()->empty_fixed_array()); in RUNTIME_FUNCTION()
35 Isolate* isolate, Handle<JSObject> holder, const char* name, in InstallCode() argument
38 Handle<String> key = isolate->factory()->InternalizeUtf8String(name); in InstallCode()
40 isolate->factory()->NewFunctionWithoutPrototype(key, code, true); in InstallCode()
55 Isolate* isolate, Handle<JSObject> holder, const char* name, in InstallBuiltin() argument
58 InstallCode(isolate, holder, name, in InstallBuiltin()
59 handle(isolate->builtins()->builtin(builtin_name), isolate), argc, in InstallBuiltin()
64 HandleScope scope(isolate); in RUNTIME_FUNCTION()
67 isolate->factory()->NewJSObject(isolate->object_function()); in RUNTIME_FUNCTION()
[all …]
Druntime-scopes.cc21 HandleScope scope(isolate); in RUNTIME_FUNCTION()
22 THROW_NEW_ERROR_RETURN_FAILURE(isolate, in RUNTIME_FUNCTION()
30 Object* ThrowRedeclarationError(Isolate* isolate, Handle<String> name, in ThrowRedeclarationError() argument
32 HandleScope scope(isolate); in ThrowRedeclarationError()
35 isolate, NewSyntaxError(MessageTemplate::kVarRedeclaration, name)); in ThrowRedeclarationError()
38 isolate, NewTypeError(MessageTemplate::kVarRedeclaration, name)); in ThrowRedeclarationError()
45 Isolate* isolate, Handle<JSGlobalObject> global, Handle<String> name, in DeclareGlobal() argument
58 return ThrowRedeclarationError(isolate, name, in DeclareGlobal()
72 if (!maybe.IsJust()) return isolate->heap()->exception(); in DeclareGlobal()
79 if (is_var) return isolate->heap()->undefined_value(); in DeclareGlobal()
[all …]
Druntime-regexp.cc225 Isolate* isolate = replacement->GetIsolate(); in Compile() local
234 isolate->factory()->NewSubString(replacement, from, to), zone()); in Compile()
315 void FindStringIndices(Isolate* isolate, Vector<const SubjectChar> subject, in FindStringIndices() argument
323 StringSearch<PatternChar, SubjectChar> search(isolate, pattern); in FindStringIndices()
333 void FindStringIndicesDispatch(Isolate* isolate, String* subject, in FindStringIndicesDispatch() argument
351 FindStringIndices(isolate, subject_vector, pattern_vector, indices, in FindStringIndicesDispatch()
355 FindStringIndices(isolate, subject_vector, in FindStringIndicesDispatch()
367 FindStringIndices(isolate, subject_vector, pattern_vector, indices, in FindStringIndicesDispatch()
376 FindStringIndices(isolate, subject_vector, pattern_vector, indices, in FindStringIndicesDispatch()
385 List<int>* GetRewoundRegexpIndicesList(Isolate* isolate) { in GetRewoundRegexpIndicesList() argument
[all …]
Druntime-i18n.cc73 HandleScope scope(isolate); in RUNTIME_FUNCTION()
74 Factory* factory = isolate->factory(); in RUNTIME_FUNCTION()
110 HandleScope scope(isolate); in RUNTIME_FUNCTION()
111 Factory* factory = isolate->factory(); in RUNTIME_FUNCTION()
131 Handle<JSObject> locales = factory->NewJSObject(isolate->object_function()); in RUNTIME_FUNCTION()
145 isolate, JSObject::SetOwnPropertyIgnoreAttributes( in RUNTIME_FUNCTION()
155 HandleScope scope(isolate); in RUNTIME_FUNCTION()
156 Factory* factory = isolate->factory(); in RUNTIME_FUNCTION()
176 HandleScope scope(isolate); in RUNTIME_FUNCTION()
177 Factory* factory = isolate->factory(); in RUNTIME_FUNCTION()
[all …]

12345678910>>...36