Home
last modified time | relevance | path

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

12345678910>>...42

/external/v8/src/builtins/
Dbuiltins-intl.cc41 HandleScope scope(isolate); in BUILTIN()
43 string = String::Flatten(isolate, string); in BUILTIN()
44 RETURN_RESULT_OR_FAILURE(isolate, Intl::ConvertToUpper(isolate, string)); in BUILTIN()
48 HandleScope handle_scope(isolate); in BUILTIN()
49 isolate->CountUsage(v8::Isolate::UseCounterFeature::kStringNormalize); in BUILTIN()
52 Handle<Object> form_input = args.atOrUndefined(isolate, 1); in BUILTIN()
54 RETURN_RESULT_OR_FAILURE(isolate, in BUILTIN()
55 Intl::Normalize(isolate, string, form_input)); in BUILTIN()
59 HandleScope scope(isolate); in BUILTIN()
60 Handle<Object> locales = args.atOrUndefined(isolate, 1); in BUILTIN()
[all …]
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 ReadOnlyRoots(isolate).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-bigint.cc18 HandleScope scope(isolate); in BUILTIN()
19 if (!args.new_target()->IsUndefined(isolate)) { // [[Construct]] in BUILTIN()
21 isolate, NewTypeError(MessageTemplate::kNotConstructor, in BUILTIN()
22 isolate->factory()->BigInt_string())); in BUILTIN()
25 Handle<Object> value = args.atOrUndefined(isolate, 1); in BUILTIN()
29 isolate, value, in BUILTIN()
35 RETURN_RESULT_OR_FAILURE(isolate, BigInt::FromNumber(isolate, value)); in BUILTIN()
37 RETURN_RESULT_OR_FAILURE(isolate, BigInt::FromObject(isolate, value)); in BUILTIN()
42 HandleScope scope(isolate); in BUILTIN()
43 Handle<Object> bits_obj = args.atOrUndefined(isolate, 1); in BUILTIN()
[all …]
Dbuiltins-global.cc18 HandleScope scope(isolate); in BUILTIN()
21 isolate, encoded_uri, in BUILTIN()
22 Object::ToString(isolate, args.atOrUndefined(isolate, 1))); in BUILTIN()
24 RETURN_RESULT_OR_FAILURE(isolate, Uri::DecodeUri(isolate, encoded_uri)); in BUILTIN()
29 HandleScope scope(isolate); in BUILTIN()
32 isolate, encoded_uri_component, in BUILTIN()
33 Object::ToString(isolate, args.atOrUndefined(isolate, 1))); in BUILTIN()
36 isolate, Uri::DecodeUriComponent(isolate, encoded_uri_component)); in BUILTIN()
41 HandleScope scope(isolate); in BUILTIN()
44 isolate, uri, Object::ToString(isolate, args.atOrUndefined(isolate, 1))); in BUILTIN()
[all …]
Dbuiltins-object.cc24 HandleScope scope(isolate); in BUILTIN()
28 isolate, name, Object::ToName(isolate, args.atOrUndefined(isolate, 1))); in BUILTIN()
30 isolate, object, Object::ToObject(isolate, args.receiver())); in BUILTIN()
33 if (maybe.IsNothing()) return ReadOnlyRoots(isolate).exception(); in BUILTIN()
34 if (maybe.FromJust() == ABSENT) return ReadOnlyRoots(isolate).false_value(); in BUILTIN()
35 return isolate->heap()->ToBoolean((maybe.FromJust() & DONT_ENUM) == 0); in BUILTIN()
40 HandleScope scope(isolate); in BUILTIN()
46 isolate, JSReceiver::DefineProperties(isolate, target, properties)); in BUILTIN()
51 HandleScope scope(isolate); in BUILTIN()
57 return JSReceiver::DefineProperty(isolate, target, key, attributes); in BUILTIN()
[all …]
Dbuiltins-number.cc23 HandleScope scope(isolate); in BUILTIN()
25 Handle<Object> fraction_digits = args.atOrUndefined(isolate, 1); in BUILTIN()
29 value = handle(Handle<JSPrimitiveWrapper>::cast(value)->value(), isolate); in BUILTIN()
33 isolate, NewTypeError(MessageTemplate::kNotGeneric, in BUILTIN()
34 isolate->factory()->NewStringFromAsciiChecked( in BUILTIN()
36 isolate->factory()->Number_string())); in BUILTIN()
42 isolate, fraction_digits, Object::ToInteger(isolate, fraction_digits)); in BUILTIN()
45 if (std::isnan(value_number)) return ReadOnlyRoots(isolate).NaN_string(); in BUILTIN()
47 return (value_number < 0.0) ? ReadOnlyRoots(isolate).minus_Infinity_string() in BUILTIN()
48 : ReadOnlyRoots(isolate).Infinity_string(); in BUILTIN()
[all …]
Dbuiltins-date.cc112 double ParseDateTimeString(Isolate* isolate, Handle<String> str) { in ParseDateTimeString() argument
113 str = String::Flatten(isolate, str); in ParseDateTimeString()
119 result = DateParser::Parse(isolate, str_content.ToOneByteVector(), out); in ParseDateTimeString()
121 result = DateParser::Parse(isolate, str_content.ToUC16Vector(), out); in ParseDateTimeString()
133 date = isolate->date_cache()->ToUTC(static_cast<int64_t>(date)); in ParseDateTimeString()
192 Object SetLocalDateValue(Isolate* isolate, Handle<JSDate> date, in SetLocalDateValue() argument
196 time_val = isolate->date_cache()->ToUTC(static_cast<int64_t>(time_val)); in SetLocalDateValue()
207 HandleScope scope(isolate); in BUILTIN()
208 if (args.new_target()->IsUndefined(isolate)) { in BUILTIN()
209 double const time_val = JSDate::CurrentTimeValue(isolate); in BUILTIN()
[all …]
Dbuiltins-regexp.cc20 HandleScope scope(isolate); in BUILTIN()
23 if (*recv == isolate->regexp_function()->prototype()) { in BUILTIN()
24 isolate->CountUsage(v8::Isolate::kRegExpPrototypeToString); in BUILTIN()
27 IncrementalStringBuilder builder(isolate); in BUILTIN()
33 isolate, source, in BUILTIN()
34 JSReceiver::GetProperty(isolate, recv, in BUILTIN()
35 isolate->factory()->source_string())); in BUILTIN()
37 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, source_str, in BUILTIN()
38 Object::ToString(isolate, source)); in BUILTIN()
46 isolate, flags, in BUILTIN()
[all …]
Dbuiltins-function.cc23 MaybeHandle<Object> CreateDynamicFunction(Isolate* isolate, in CreateDynamicFunction() argument
31 Handle<JSObject> target_global_proxy(target->global_proxy(), isolate); in CreateDynamicFunction()
33 if (!Builtins::AllowDynamicFunction(isolate, target, target_global_proxy)) { in CreateDynamicFunction()
34 isolate->CountUsage(v8::Isolate::kFunctionConstructorReturnedUndefined); in CreateDynamicFunction()
37 HandleScopeImplementer* impl = isolate->handle_scope_implementer(); in CreateDynamicFunction()
39 isolate, impl->LastEnteredOrMicrotaskContext()->native_context()); in CreateDynamicFunction()
40 THROW_NEW_ERROR(isolate, NewTypeError(MessageTemplate::kNoAccess), Object); in CreateDynamicFunction()
47 IncrementalStringBuilder builder(isolate); in CreateDynamicFunction()
57 isolate, param, Object::ToString(isolate, args.at(i)), Object); in CreateDynamicFunction()
58 param = String::Flatten(isolate, param); in CreateDynamicFunction()
[all …]
Dbuiltins-string.cc25 bool IsValidCodePoint(Isolate* isolate, Handle<Object> value) { in IsValidCodePoint() argument
27 !Object::ToNumber(isolate, value).ToHandle(&value)) { in IsValidCodePoint()
31 if (Object::ToInteger(isolate, value).ToHandleChecked()->Number() != in IsValidCodePoint()
45 uc32 NextCodePoint(Isolate* isolate, BuiltinArguments args, int index) { in NextCodePoint() argument
48 isolate, value, Object::ToNumber(isolate, value), kInvalidCodePoint); in NextCodePoint()
49 if (!IsValidCodePoint(isolate, value)) { in NextCodePoint()
50 isolate->Throw(*isolate->factory()->NewRangeError( in NextCodePoint()
61 HandleScope scope(isolate); in BUILTIN()
63 if (length == 0) return ReadOnlyRoots(isolate).empty_string(); in BUILTIN()
73 code = NextCodePoint(isolate, args, index); in BUILTIN()
[all …]
/external/v8/src/runtime/
Druntime-internal.cc36 HandleScope scope(isolate); in RUNTIME_FUNCTION()
39 if (!isolate->MayAccess(handle(isolate->context(), isolate), object)) { in RUNTIME_FUNCTION()
40 isolate->ReportFailedAccessCheck(object); in RUNTIME_FUNCTION()
41 RETURN_FAILURE_IF_SCHEDULED_EXCEPTION(isolate); in RUNTIME_FUNCTION()
43 return ReadOnlyRoots(isolate).undefined_value(); in RUNTIME_FUNCTION()
47 HandleScope scope(isolate); in RUNTIME_FUNCTION()
49 isolate->heap()->FatalProcessOutOfMemory("CodeStubAssembler::AllocateRaw"); in RUNTIME_FUNCTION()
54 HandleScope scope(isolate); in RUNTIME_FUNCTION()
56 isolate->heap()->FatalProcessOutOfMemory("invalid array length"); in RUNTIME_FUNCTION()
61 HandleScope scope(isolate); in RUNTIME_FUNCTION()
[all …]
Druntime-wasm.cc40 explicit FrameFinder(Isolate* isolate) in FrameFinder() argument
41 : frame_iterator_(isolate, isolate->thread_local_top()) { in FrameFinder()
57 WasmInstanceObject GetWasmInstanceOnStackTop(Isolate* isolate) { in GetWasmInstanceOnStackTop() argument
58 return FrameFinder<WasmFrame, StackFrame::EXIT>(isolate) in GetWasmInstanceOnStackTop()
63 Context GetNativeContextFromWasmInstanceOnStackTop(Isolate* isolate) { in GetNativeContextFromWasmInstanceOnStackTop() argument
64 return GetWasmInstanceOnStackTop(isolate).native_context(); in GetNativeContextFromWasmInstanceOnStackTop()
81 Object ThrowWasmError(Isolate* isolate, MessageTemplate message) { in ThrowWasmError() argument
82 HandleScope scope(isolate); in ThrowWasmError()
83 Handle<JSObject> error_obj = isolate->factory()->NewWasmRuntimeError(message); in ThrowWasmError()
84 JSObject::AddProperty(isolate, error_obj, in ThrowWasmError()
[all …]
Druntime-object.cc26 MaybeHandle<Object> Runtime::GetObjectProperty(Isolate* isolate, in GetObjectProperty() argument
34 if (holder->IsNullOrUndefined(isolate)) { in GetObjectProperty()
35 ErrorUtils::ThrowLoadFromNullOrUndefined(isolate, holder, key); in GetObjectProperty()
40 LookupIterator::Key lookup_key(isolate, key, &success); in GetObjectProperty()
42 LookupIterator it = LookupIterator(isolate, receiver, lookup_key, holder); in GetObjectProperty()
50 Handle<Object> name(sym->description(), isolate); in GetObjectProperty()
55 ? isolate->factory()->anonymous_string() in GetObjectProperty()
57 THROW_NEW_ERROR(isolate, in GetObjectProperty()
62 THROW_NEW_ERROR(isolate, in GetObjectProperty()
70 MaybeHandle<Object> Runtime::HasProperty(Isolate* isolate, in HasProperty() argument
[all …]
Druntime-debug.cc42 SealHandleScope shs(isolate); in RUNTIME_FUNCTION_RETURN_PAIR()
45 HandleScope scope(isolate); in RUNTIME_FUNCTION_RETURN_PAIR()
49 ReturnValueScope result_scope(isolate->debug()); in RUNTIME_FUNCTION_RETURN_PAIR()
50 isolate->debug()->set_return_value(*value); in RUNTIME_FUNCTION_RETURN_PAIR()
53 JavaScriptFrameIterator it(isolate); in RUNTIME_FUNCTION_RETURN_PAIR()
54 if (isolate->debug_execution_mode() == DebugInfo::kBreakpoints) { in RUNTIME_FUNCTION_RETURN_PAIR()
55 isolate->debug()->Break(it.frame(), in RUNTIME_FUNCTION_RETURN_PAIR()
56 handle(it.frame()->function(), isolate)); in RUNTIME_FUNCTION_RETURN_PAIR()
61 if (isolate->debug()->will_restart()) { in RUNTIME_FUNCTION_RETURN_PAIR()
62 return MakePair(ReadOnlyRoots(isolate).undefined_value(), in RUNTIME_FUNCTION_RETURN_PAIR()
[all …]
Druntime-promise.cc22 HandleScope scope(isolate); in RUNTIME_FUNCTION()
27 if (isolate->debug()->is_active()) { in RUNTIME_FUNCTION()
30 rejected_promise = isolate->GetPromiseOnStackOnThrow(); in RUNTIME_FUNCTION()
32 isolate->RunPromiseHook(PromiseHookType::kResolve, promise, in RUNTIME_FUNCTION()
33 isolate->factory()->undefined_value()); in RUNTIME_FUNCTION()
34 isolate->debug()->OnPromiseReject(rejected_promise, value); in RUNTIME_FUNCTION()
38 isolate->ReportPromiseReject(promise, value, in RUNTIME_FUNCTION()
41 return ReadOnlyRoots(isolate).undefined_value(); in RUNTIME_FUNCTION()
46 HandleScope scope(isolate); in RUNTIME_FUNCTION()
49 isolate->ReportPromiseReject(promise, reason, in RUNTIME_FUNCTION()
[all …]
Druntime-classes.cc31 HandleScope scope(isolate); in RUNTIME_FUNCTION()
34 isolate, NewReferenceError(MessageTemplate::kUnsupportedSuper)); in RUNTIME_FUNCTION()
39 HandleScope scope(isolate); in RUNTIME_FUNCTION()
42 Handle<String> name(constructor->shared().Name(), isolate); in RUNTIME_FUNCTION()
45 isolate, in RUNTIME_FUNCTION()
49 isolate, NewTypeError(MessageTemplate::kConstructorNonCallable, name)); in RUNTIME_FUNCTION()
54 HandleScope scope(isolate); in RUNTIME_FUNCTION()
57 isolate, NewTypeError(MessageTemplate::kStaticPrototype)); in RUNTIME_FUNCTION()
61 HandleScope scope(isolate); in RUNTIME_FUNCTION()
64 isolate, NewReferenceError(MessageTemplate::kSuperAlreadyCalled)); in RUNTIME_FUNCTION()
[all …]
Druntime-scopes.cc27 HandleScope scope(isolate); in RUNTIME_FUNCTION()
28 THROW_NEW_ERROR_RETURN_FAILURE(isolate, in RUNTIME_FUNCTION()
36 Object ThrowRedeclarationError(Isolate* isolate, Handle<String> name, in ThrowRedeclarationError() argument
38 HandleScope scope(isolate); in ThrowRedeclarationError()
41 isolate, NewSyntaxError(MessageTemplate::kVarRedeclaration, name)); in ThrowRedeclarationError()
44 isolate, NewTypeError(MessageTemplate::kVarRedeclaration, name)); in ThrowRedeclarationError()
49 Object DeclareGlobal(Isolate* isolate, Handle<JSGlobalObject> global, in DeclareGlobal() argument
54 global->native_context().script_context_table(), isolate); in DeclareGlobal()
56 if (ScriptContextTable::Lookup(isolate, *script_contexts, *name, &lookup) && in DeclareGlobal()
61 return ThrowRedeclarationError(isolate, name, in DeclareGlobal()
[all …]
Druntime-test.cc60 bool IsWasmCompileAllowed(v8::Isolate* isolate, v8::Local<v8::Value> value, in IsWasmCompileAllowed() argument
63 DCHECK_GT(GetPerIsolateWasmControls()->count(isolate), 0); in IsWasmCompileAllowed()
64 const WasmCompileControls& ctrls = GetPerIsolateWasmControls()->at(isolate); in IsWasmCompileAllowed()
75 bool IsWasmInstantiateAllowed(v8::Isolate* isolate, in IsWasmInstantiateAllowed() argument
79 DCHECK_GT(GetPerIsolateWasmControls()->count(isolate), 0); in IsWasmInstantiateAllowed()
80 const WasmCompileControls& ctrls = GetPerIsolateWasmControls()->at(isolate); in IsWasmInstantiateAllowed()
83 return IsWasmCompileAllowed(isolate, module_or_bytes, is_async); in IsWasmInstantiateAllowed()
92 v8::Local<v8::Value> NewRangeException(v8::Isolate* isolate, in NewRangeException() argument
95 v8::String::NewFromOneByte(isolate, in NewRangeException()
100 void ThrowRangeException(v8::Isolate* isolate, const char* message) { in ThrowRangeException() argument
[all …]
Druntime-strings.cc22 HandleScope scope(isolate); in RUNTIME_FUNCTION()
57 isolate->factory()->NewSubString(subject, 0, position); in RUNTIME_FUNCTION()
58 Handle<String> suffix = isolate->factory()->NewSubString( in RUNTIME_FUNCTION()
63 isolate, in RUNTIME_FUNCTION()
64 String::GetSubstitution(isolate, &match, replacement, start_index)); in RUNTIME_FUNCTION()
70 Isolate* isolate, Handle<String> subject, Handle<String> search, in StringReplaceOneCharWithString() argument
72 StackLimitCheck stackLimitCheck(isolate); in StringReplaceOneCharWithString()
79 Handle<String> first = handle(cons.first(), isolate); in StringReplaceOneCharWithString()
80 Handle<String> second = handle(cons.second(), isolate); in StringReplaceOneCharWithString()
82 if (!StringReplaceOneCharWithString(isolate, first, search, replace, found, in StringReplaceOneCharWithString()
[all …]
/external/v8/src/api/
Dapi-natives.cc23 explicit InvokeScope(Isolate* isolate) in InvokeScope() argument
24 : isolate_(isolate), save_context_(isolate) {} in InvokeScope()
39 MaybeHandle<JSObject> InstantiateObject(Isolate* isolate,
45 Isolate* isolate, Handle<NativeContext> native_context,
50 Isolate* isolate, Handle<FunctionTemplateInfo> data, in InstantiateFunction() argument
52 return InstantiateFunction(isolate, isolate->native_context(), data, in InstantiateFunction()
57 Isolate* isolate, Handle<Object> data, in Instantiate() argument
61 isolate, Handle<FunctionTemplateInfo>::cast(data), maybe_name); in Instantiate()
63 return InstantiateObject(isolate, Handle<ObjectTemplateInfo>::cast(data), in Instantiate()
71 Isolate* isolate, Handle<JSObject> object, Handle<Name> name, in DefineAccessorProperty() argument
[all …]
/external/v8/src/codegen/
Dcode-factory.cc17 Handle<Code> CodeFactory::RuntimeCEntry(Isolate* isolate, int result_size) { in RuntimeCEntry() argument
18 return CodeFactory::CEntry(isolate, result_size); in RuntimeCEntry()
22 BUILTIN_CODE(isolate, CEntry_##RS##_##SD##_##AM##_##BE)
25 Handle<Code> CodeFactory::CEntry(Isolate* isolate, int result_size, in CEntry() argument
62 Callable CodeFactory::ApiGetter(Isolate* isolate) { in ApiGetter() argument
63 return Builtins::CallableFor(isolate, Builtins::kCallApiGetter); in ApiGetter()
67 Callable CodeFactory::CallApiCallback(Isolate* isolate) { in CallApiCallback() argument
68 return Builtins::CallableFor(isolate, Builtins::kCallApiCallback); in CallApiCallback()
72 Callable CodeFactory::LoadGlobalIC(Isolate* isolate, TypeofMode typeof_mode) { in LoadGlobalIC() argument
74 ? Builtins::CallableFor(isolate, Builtins::kLoadGlobalICTrampoline) in LoadGlobalIC()
[all …]
Dcode-factory.h29 static Handle<Code> RuntimeCEntry(Isolate* isolate, int result_size = 1);
31 static Handle<Code> CEntry(Isolate* isolate, int result_size = 1,
37 static Callable LoadGlobalIC(Isolate* isolate, TypeofMode typeof_mode);
38 static Callable LoadGlobalICInOptimizedCode(Isolate* isolate,
40 static Callable StoreOwnIC(Isolate* isolate);
41 static Callable StoreOwnICInOptimizedCode(Isolate* isolate);
43 static Callable KeyedStoreIC_SloppyArguments(Isolate* isolate,
45 static Callable ElementsTransitionAndStore(Isolate* isolate,
47 static Callable StoreFastElementIC(Isolate* isolate,
50 static Callable ResumeGenerator(Isolate* isolate);
[all …]
/external/v8/src/diagnostics/
Dobjects-debug.cc108 void Class::Class##Verify(Isolate* isolate) { \
109 TorqueGeneratedClassVerifiers::Class##Verify(*this, isolate); \
112 void Object::ObjectVerify(Isolate* isolate) { in ObjectVerify() argument
113 RuntimeCallTimerScope timer(isolate, RuntimeCallCounterId::kObjectVerify); in ObjectVerify()
115 Smi::cast(*this).SmiVerify(isolate); in ObjectVerify()
117 HeapObject::cast(*this).HeapObjectVerify(isolate); in ObjectVerify()
122 void Object::VerifyPointer(Isolate* isolate, Object p) { in VerifyPointer() argument
124 HeapObject::VerifyHeapPointer(isolate, p); in VerifyPointer()
130 void MaybeObject::VerifyMaybeObjectPointer(Isolate* isolate, MaybeObject p) { in VerifyMaybeObjectPointer() argument
133 HeapObject::VerifyHeapPointer(isolate, heap_object); in VerifyMaybeObjectPointer()
[all …]
/external/v8/src/execution/
Dmessages.cc63 void MessageHandler::DefaultMessageReport(Isolate* isolate, in DefaultMessageReport() argument
66 std::unique_ptr<char[]> str = GetLocalizedMessage(isolate, message_obj); in DefaultMessageReport()
70 HandleScope scope(isolate); in DefaultMessageReport()
71 Handle<Object> data(loc->script()->name(), isolate); in DefaultMessageReport()
81 Isolate* isolate, MessageTemplate message, const MessageLocation* location, in MakeMessageObject() argument
83 Factory* factory = isolate->factory(); in MakeMessageObject()
88 Handle<Script> script_handle = isolate->factory()->empty_script(); in MakeMessageObject()
109 void MessageHandler::ReportMessage(Isolate* isolate, const MessageLocation* loc, in ReportMessage() argument
119 Object exception_object = ReadOnlyRoots(isolate).undefined_value(); in ReportMessage()
120 if (isolate->has_pending_exception()) { in ReportMessage()
[all …]
/external/v8/src/objects/
Dobjects-inl.h70 return IsFixedArrayExact(isolate); in DEF_GETTER()
81 bool Object::Is##type_(IsolateRoot isolate) const { \
82 return IsHeapObject() && HeapObject::cast(*this).Is##type_(isolate); \
90 bool Object::Is##Type(Isolate* isolate) const { \ in IS_TYPE_FUNCTION_DEF()
91 return Is##Type(ReadOnlyRoots(isolate)); \ in IS_TYPE_FUNCTION_DEF()
93 bool Object::Is##Type(LocalIsolate* isolate) const { \
94 return Is##Type(ReadOnlyRoots(isolate)); \
102 bool HeapObject::Is##Type(Isolate* isolate) const { \
103 return Object::Is##Type(isolate); \
105 bool HeapObject::Is##Type(LocalIsolate* isolate) const { \
[all …]

12345678910>>...42