Lines Matching refs:Utils

281       i::Handle<i::Context> env = Utils::OpenHandle(*context);  in CallDepthScope()
337 Utils::ToLocal(scriptName), in GetScriptOriginForScript()
342 Utils::ToLocal(source_map_url), in GetScriptOriginForScript()
346 Utils::ToLocal(host_defined_options)); in GetScriptOriginForScript()
448 Utils::ReportOOMFailure(isolate, location, is_heap_oom); in FatalProcessOutOfMemory()
454 void Utils::ReportApiFailure(const char* location, const char* message) { in ReportApiFailure()
470 void Utils::ReportOOMFailure(i::Isolate* isolate, const char* location, in ReportOOMFailure()
654 i::Handle<i::Context> ctx = Utils::OpenHandle(*context); in AddData()
673 i::Handle<i::Context> ctx = Utils::OpenHandle(*context); in ConvertSerializedObjectsToFixedArray()
725 v8::Utils::OpenHandle(*data->contexts_.Get(i)); in CreateBlob()
781 *v8::Utils::OpenHandle(*data->default_context_.Get(data->isolate_))); in CreateBlob()
785 v8::Utils::OpenHandle(*data->contexts_.Get(i)); in CreateBlob()
1042 i::Object* object = *Utils::OpenHandle(value); in Eternalize()
1051 Utils::ApiCheck(false, "v8::FromJust", "Maybe value is Nothing."); in FromJustIsNothing()
1056 Utils::ApiCheck(false, "v8::ToLocalChecked", "Empty MaybeLocal."); in ToLocalEmpty()
1060 Utils::ApiCheck(0 <= index && index < kInternalFieldsInWeakCallback, in InternalFieldOutOfBounds()
1081 Utils::ApiCheck( in Initialize()
1131 Utils::ApiCheck((*escape_slot_)->IsTheHole(heap->isolate()), in Escape()
1172 i::Handle<i::Context> env = Utils::OpenHandle(this); in Enter()
1182 i::Handle<i::Context> env = Utils::OpenHandle(this); in Exit()
1186 if (!Utils::ApiCheck(impl->LastEnteredContextWas(env), in Exit()
1200 i::Handle<i::Context> env = Utils::OpenHandle(*backup_incumbent_context_); in BackupIncumbentScope()
1207 i::Handle<i::Context> env = Utils::OpenHandle(*backup_incumbent_context_); in ~BackupIncumbentScope()
1213 Utils::ApiCheck(value->IsSmi(), location, "Not a Smi"); in DecodeSmiToAligned()
1220 Utils::ApiCheck(smi->IsSmi(), location, "Pointer is not aligned"); in EncodeAlignedAsSmi()
1229 i::Handle<i::Context> env = Utils::OpenHandle(context); in EmbedderDataFor()
1232 Utils::ApiCheck(env->IsNativeContext(), in EmbedderDataFor()
1235 Utils::ApiCheck(index >= 0, location, "Negative index"); in EmbedderDataFor()
1239 if (!Utils::ApiCheck(can_grow, location, "Index too large")) { in EmbedderDataFor()
1250 i::Handle<i::Context> context = Utils::OpenHandle(this); in GetNumberOfEmbedderDataFields()
1261 reinterpret_cast<i::Isolate*>(Utils::OpenHandle(this)->GetIsolate())); in SlowGetEmbedderData()
1262 return Utils::ToLocal(result); in SlowGetEmbedderData()
1270 i::Handle<i::Object> val = Utils::OpenHandle(*value); in SetEmbedderData()
1272 DCHECK_EQ(*Utils::OpenHandle(*value), in SetEmbedderData()
1273 *Utils::OpenHandle(*GetEmbedderData(index))); in SetEmbedderData()
1304 auto templ = Utils::OpenHandle(this); in Set()
1308 auto value_obj = Utils::OpenHandle(*value); in Set()
1316 i::ApiNatives::AddDataProperty(isolate, templ, Utils::OpenHandle(*name), in Set()
1323 Set(Utils::ToLocal(Utils::OpenHandle(reinterpret_cast<Name*>(*name))), value, in SetPrivate()
1335 auto templ = Utils::OpenHandle(this); in SetAccessorProperty()
1342 isolate, templ, Utils::OpenHandle(*name), in SetAccessorProperty()
1343 Utils::OpenHandle(*getter, true), Utils::OpenHandle(*setter, true), in SetAccessorProperty()
1360 i::Isolate* i_isolate = Utils::OpenHandle(this)->GetIsolate(); in PrototypeTemplate()
1362 i::Handle<i::Object> result(Utils::OpenHandle(this)->prototype_template(), in PrototypeTemplate()
1366 result = Utils::OpenHandle( in PrototypeTemplate()
1368 Utils::OpenHandle(this)->set_prototype_template(*result); in PrototypeTemplate()
1375 i::Isolate* i_isolate = Utils::OpenHandle(this)->GetIsolate(); in SetPrototypeProviderTemplate()
1377 i::Handle<i::Object> result = Utils::OpenHandle(*prototype_provider); in SetPrototypeProviderTemplate()
1378 auto info = Utils::OpenHandle(this); in SetPrototypeProviderTemplate()
1386 Utils::ApiCheck(!info->instantiated(), func, in EnsureNotInstantiated()
1392 auto info = Utils::OpenHandle(this); in Inherit()
1397 info->set_parent_template(*Utils::OpenHandle(*value)); in Inherit()
1417 Utils::ToLocal(obj)->SetCallHandler(callback, data, side_effect_type); in FunctionTemplateNew()
1424 obj->set_signature(*Utils::OpenHandle(*signature)); in FunctionTemplateNew()
1429 : *Utils::OpenHandle(*cached_property_name)); in FunctionTemplateNew()
1430 return Utils::ToLocal(obj); in FunctionTemplateNew()
1456 return Utils::ToLocal(i::Handle<i::FunctionTemplateInfo>( in FromSnapshot()
1476 return Utils::SignatureToLocal(Utils::OpenHandle(*receiver)); in New()
1482 return Utils::AccessorSignatureToLocal(Utils::OpenHandle(*receiver)); in New()
1494 auto info = Utils::OpenHandle(this); in SetCallHandler()
1506 obj->set_data(*Utils::OpenHandle(*data)); in SetCallHandler()
1534 obj->set_data(*Utils::OpenHandle(*data)); in MakeAccessorInfo()
1537 i::Handle<i::Name> accessor_name = Utils::OpenHandle(*name); in MakeAccessorInfo()
1547 obj->set_expected_receiver_type(*Utils::OpenHandle(*signature)); in MakeAccessorInfo()
1555 i::Handle<i::FunctionTemplateInfo> handle = Utils::OpenHandle(this, true); in InstanceTemplate()
1556 if (!Utils::ApiCheck(!handle.is_null(), in InstanceTemplate()
1566 handle->set_instance_template(*Utils::OpenHandle(*templ)); in InstanceTemplate()
1570 return Utils::ToLocal(result); in InstanceTemplate()
1575 auto info = Utils::OpenHandle(this); in SetLength()
1584 auto info = Utils::OpenHandle(this); in SetClassName()
1588 info->set_class_name(*Utils::OpenHandle(*name)); in SetClassName()
1593 auto info = Utils::OpenHandle(this); in SetAcceptAnyReceiver()
1602 auto info = Utils::OpenHandle(this); in SetHiddenPrototype()
1611 auto info = Utils::OpenHandle(this); in ReadOnlyPrototype()
1620 auto info = Utils::OpenHandle(this); in RemovePrototype()
1653 obj->set_constructor(*Utils::OpenHandle(*constructor)); in ObjectTemplateNew()
1655 return Utils::ToLocal(obj); in ObjectTemplateNew()
1671 return Utils::ToLocal(i::Handle<i::ObjectTemplateInfo>( in FromSnapshot()
1683 i::Object* obj = Utils::OpenHandle(object_template)->constructor(); in EnsureConstructor()
1690 i::Handle<i::FunctionTemplateInfo> constructor = Utils::OpenHandle(*templ); in EnsureConstructor()
1691 constructor->set_instance_template(*Utils::OpenHandle(object_template)); in EnsureConstructor()
1692 Utils::OpenHandle(object_template)->set_constructor(*constructor); in EnsureConstructor()
1702 auto info = Utils::OpenHandle(template_obj); in TemplateSetAccessor()
1747 auto templ = Utils::OpenHandle(this); in SetIntrinsicDataProperty()
1751 i::ApiNatives::AddDataProperty(isolate, templ, Utils::OpenHandle(*name), in SetIntrinsicDataProperty()
1813 obj->set_data(*Utils::OpenHandle(*data)); in CreateInterceptorInfo()
1849 i::Isolate* isolate = Utils::OpenHandle(templ)->GetIsolate(); in ObjectTemplateSetNamedPropertyHandler()
1870 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); in MarkAsUndetectable()
1881 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); in SetAccessCheckCallback()
1899 info->set_data(*Utils::OpenHandle(*data)); in SetAccessCheckCallback()
1910 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); in SetAccessCheckCallbackAndHandler()
1938 info->set_data(*Utils::OpenHandle(*data)); in SetAccessCheckCallbackAndHandler()
1946 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); in SetHandler()
1960 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); in SetCallAsFunctionHandler()
1971 obj->set_data(*Utils::OpenHandle(*data)); in SetCallAsFunctionHandler()
1976 return Utils::OpenHandle(this)->embedder_field_count(); in InternalFieldCount()
1980 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); in SetInternalFieldCount()
1981 if (!Utils::ApiCheck(i::Smi::IsValid(value), in SetInternalFieldCount()
1993 Utils::OpenHandle(this)->set_embedder_field_count(value); in SetInternalFieldCount()
1997 return Utils::OpenHandle(this)->immutable_proto(); in IsImmutableProto()
2001 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); in SetImmutableProto()
2003 Utils::OpenHandle(this)->set_immutable_proto(true); in SetImmutableProto()
2047 i::Handle<i::SharedFunctionInfo>::cast(Utils::OpenHandle(this)); in BindToCurrentContext()
2058 i::Handle<i::SharedFunctionInfo>::cast(Utils::OpenHandle(this)); in GetId()
2070 i::Handle<i::SharedFunctionInfo>::cast(Utils::OpenHandle(this)); in GetLineNumber()
2084 i::Handle<i::SharedFunctionInfo>::cast(Utils::OpenHandle(this)); in GetScriptName()
2089 return Utils::ToLocal(i::Handle<i::Object>(name, isolate)); in GetScriptName()
2098 i::Handle<i::SharedFunctionInfo>::cast(Utils::OpenHandle(this)); in GetSourceURL()
2103 return Utils::ToLocal(i::Handle<i::Object>(url, isolate)); in GetSourceURL()
2112 i::Handle<i::SharedFunctionInfo>::cast(Utils::OpenHandle(this)); in GetSourceMappingURL()
2117 return Utils::ToLocal(i::Handle<i::Object>(url, isolate)); in GetSourceMappingURL()
2132 auto fun = i::Handle<i::JSFunction>::cast(Utils::OpenHandle(this)); in Run()
2145 i::Handle<i::Script> obj = Utils::OpenHandle(this); in GetResourceName()
2153 i::Handle<i::Script> obj = Utils::OpenHandle(this); in GetHostDefinedOptions()
2161 i::Handle<i::Object> obj = Utils::OpenHandle(this); in GetUnboundScript()
2171 Utils::ApiCheck(length >= 0, "v8::PrimitiveArray::New", in New()
2178 i::Handle<i::FixedArray> array = Utils::OpenHandle(this); in Length()
2185 i::Handle<i::FixedArray> array = Utils::OpenHandle(this); in Set()
2187 Utils::ApiCheck(index >= 0 && index < array->length(), in Set()
2191 i::Handle<i::Object> i_item = Utils::OpenHandle(*item); in Set()
2196 i::Handle<i::FixedArray> array = Utils::OpenHandle(this); in Set()
2203 i::Handle<i::FixedArray> array = Utils::OpenHandle(this); in Get()
2205 Utils::ApiCheck(index >= 0 && index < array->length(), in Get()
2214 i::Handle<i::FixedArray> array = Utils::OpenHandle(this); in Get()
2220 i::Handle<i::Module> self = Utils::OpenHandle(this); in GetStatus()
2240 Utils::ApiCheck(GetStatus() == kErrored, "v8::Module::GetException", in GetException()
2242 i::Handle<i::Module> self = Utils::OpenHandle(this); in GetException()
2248 i::Handle<i::Module> self = Utils::OpenHandle(this); in GetModuleRequestsLength()
2254 i::Handle<i::Module> self = Utils::OpenHandle(this); in GetModuleRequest()
2264 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); in GetModuleRequestLocation()
2266 i::Handle<i::Module> self = Utils::OpenHandle(this); in GetModuleRequestLocation()
2278 Utils::ApiCheck( in GetModuleNamespace()
2281 i::Handle<i::Module> self = Utils::OpenHandle(this); in GetModuleNamespace()
2288 Utils::ApiCheck( in GetUnboundModuleScript()
2291 i::Handle<i::Module> self = Utils::OpenHandle(this); in GetUnboundModuleScript()
2296 int Module::GetIdentityHash() const { return Utils::OpenHandle(this)->hash(); } in GetIdentityHash()
2304 isolate, Utils::OpenHandle(this), context, callback); in InstantiateModule()
2318 i::Handle<i::Module> self = Utils::OpenHandle(this); in Evaluate()
2336 script_details.name_obj = Utils::OpenHandle(*(resource_name)); in GetScriptDetails()
2349 Utils::OpenHandle(*(host_defined_options)); in GetScriptDetails()
2352 script_details.source_map_url = Utils::OpenHandle(*(source_map_url)); in GetScriptDetails()
2388 i::Handle<i::String> str = Utils::OpenHandle(*(source->source_string)); in CompileUnboundInternal()
2411 Utils::ApiCheck( in CompileUnboundScript()
2422 Utils::ApiCheck( in Compile()
2441 Utils::ApiCheck(source->GetResourceOptions().IsModule(), in CompileModule()
2449 i::Handle<i::SharedFunctionInfo> shared = Utils::OpenHandle(*unbound); in CompileModule()
2505 i::Handle<i::Context> context = Utils::OpenHandle(*v8_context); in CompileFunctionInContext()
2516 i::Handle<i::String> argument = Utils::OpenHandle(*arguments[i]); in CompileFunctionInContext()
2523 Utils::OpenHandle(*context_extensions[i]); in CompileFunctionInContext()
2551 Utils::OpenHandle(*source->source_string), arguments_list, context, in CompileFunctionInContext()
2560 RETURN_ESCAPED(Utils::CallableToLocal(result)); in CompileFunctionInContext()
2586 i::Handle<i::String> str = Utils::OpenHandle(*(full_source_string)); in Compile()
2620 Utils::OpenHandle(*unbound_script)); in CreateCodeCache()
2630 Utils::OpenHandle(*unbound_module_script)); in CreateCodeCache()
2638 i::Handle<i::JSFunction>::cast(Utils::OpenHandle(*function)); in CreateCodeCacheForFunction()
2735 return v8::Utils::ToLocal(i::Handle<i::Object>(exception, isolate_)); in Exception()
2765 return v8::Utils::MessageToLocal(i::Handle<i::Object>(message, isolate_)); in Message()
2805 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); in Get()
2808 i::Handle<i::Object> obj = Utils::OpenHandle(this); in Get()
2810 Local<String> result = Utils::ToLocal(raw_result); in Get()
2815 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); in GetIsolate()
2820 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); in GetScriptOrigin()
2822 auto message = i::Handle<i::JSMessageObject>::cast(Utils::OpenHandle(this)); in GetScriptOrigin()
2834 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); in GetStackTrace()
2837 auto message = i::Handle<i::JSMessageObject>::cast(Utils::OpenHandle(this)); in GetStackTrace()
2841 return scope.Escape(Utils::StackTraceToLocal(stackTrace)); in GetStackTrace()
2846 auto self = Utils::OpenHandle(this); in GetLineNumber()
2856 auto self = Utils::OpenHandle(this); in GetStartPosition()
2862 auto self = Utils::OpenHandle(this); in GetEndPosition()
2867 auto self = Utils::OpenHandle(this); in ErrorLevel()
2872 auto self = Utils::OpenHandle(this); in GetStartColumn()
2885 auto self = Utils::OpenHandle(this); in GetEndColumn()
2903 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); in IsSharedCrossOrigin()
2905 return Utils::OpenHandle(this) in IsSharedCrossOrigin()
2912 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); in IsOpaque()
2914 return Utils::OpenHandle(this)->script()->origin_options().IsOpaque(); in IsOpaque()
2919 auto self = Utils::OpenHandle(this); in GetSourceLine()
2924 RETURN_ESCAPED(Utils::ToLocal(msg->GetSourceLine())); in GetSourceLine()
2942 auto obj = handle(Utils::OpenHandle(this)->get(index), isolate); in GetFrame()
2944 return scope.Escape(Utils::StackFrameToLocal(info)); in GetFrame()
2948 i::Isolate* isolate = UnsafeIsolateFromHeapObject(Utils::OpenHandle(this)); in GetFrame()
2953 return Utils::OpenHandle(this)->length(); in GetFrameCount()
2965 return Utils::StackTraceToLocal(stackTrace); in CurrentStackTrace()
2972 int v = Utils::OpenHandle(this)->line_number(); in GetLineNumber()
2978 int v = Utils::OpenHandle(this)->column_number(); in GetColumn()
2984 int v = Utils::OpenHandle(this)->script_id(); in GetScriptId()
2989 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); in GetScriptName()
2991 i::Handle<i::StackFrameInfo> self = Utils::OpenHandle(this); in GetScriptName()
2994 ? scope.Escape(Local<String>::Cast(Utils::ToLocal(obj))) in GetScriptName()
3000 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); in GetScriptNameOrSourceURL()
3002 i::Handle<i::StackFrameInfo> self = Utils::OpenHandle(this); in GetScriptNameOrSourceURL()
3005 ? scope.Escape(Local<String>::Cast(Utils::ToLocal(obj))) in GetScriptNameOrSourceURL()
3011 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); in GetFunctionName()
3013 i::Handle<i::StackFrameInfo> self = Utils::OpenHandle(this); in GetFunctionName()
3016 ? scope.Escape(Local<String>::Cast(Utils::ToLocal(obj))) in GetFunctionName()
3020 bool StackFrame::IsEval() const { return Utils::OpenHandle(this)->is_eval(); } in IsEval()
3023 return Utils::OpenHandle(this)->is_constructor(); in IsConstructor()
3026 bool StackFrame::IsWasm() const { return Utils::OpenHandle(this)->is_wasm(); } in IsWasm()
3033 i::Handle<i::String> string = Utils::OpenHandle(*json_string); in Parse()
3048 i::Handle<i::String> string = Utils::OpenHandle(*json_string); in Parse()
3064 i::Handle<i::Object> object = Utils::OpenHandle(*json_object); in Stringify()
3068 : Utils::OpenHandle(*gap); in Stringify()
3087 Utils::OpenHandle(*object))); in WriteHostObject()
3096 Utils::OpenHandle(*shared_array_buffer))); in GetSharedArrayBufferId()
3143 i::Handle<i::Object> object = Utils::OpenHandle(*value); in WriteValue()
3161 Utils::OpenHandle(*array_buffer)); in TransferArrayBuffer()
3167 transfer_id, Utils::OpenHandle(*shared_array_buffer)); in TransferSharedArrayBuffer()
3307 Utils::OpenHandle(*array_buffer)); in TransferArrayBuffer()
3314 transfer_id, Utils::OpenHandle(*shared_array_buffer)); in TransferSharedArrayBuffer()
3336 i::Handle<i::Object> object = Utils::OpenHandle(this); in FullIsUndefined()
3344 i::Handle<i::Object> object = Utils::OpenHandle(this); in FullIsNull()
3352 i::Handle<i::Object> object = Utils::OpenHandle(this); in IsTrue()
3359 i::Handle<i::Object> object = Utils::OpenHandle(this); in IsFalse()
3365 bool Value::IsFunction() const { return Utils::OpenHandle(this)->IsCallable(); } in IsFunction()
3369 return Utils::OpenHandle(this)->IsName(); in IsName()
3374 bool result = Utils::OpenHandle(this)->IsString(); in FullIsString()
3381 return Utils::OpenHandle(this)->IsSymbol(); in IsSymbol()
3386 return Utils::OpenHandle(this)->IsJSArray(); in IsArray()
3391 i::Handle<i::Object> obj = Utils::OpenHandle(this); in IsArrayBuffer()
3397 return Utils::OpenHandle(this)->IsJSArrayBufferView(); in IsArrayBufferView()
3402 return Utils::OpenHandle(this)->IsJSTypedArray(); in IsTypedArray()
3407 i::Handle<i::Object> obj = Utils::OpenHandle(this); \
3418 return Utils::OpenHandle(this)->IsJSDataView(); in TYPED_ARRAYS()
3423 i::Handle<i::Object> obj = Utils::OpenHandle(this); in IsSharedArrayBuffer()
3428 bool Value::IsObject() const { return Utils::OpenHandle(this)->IsJSReceiver(); } in IsObject()
3432 return Utils::OpenHandle(this)->IsNumber(); in IsNumber()
3435 bool Value::IsBigInt() const { return Utils::OpenHandle(this)->IsBigInt(); } in IsBigInt()
3437 bool Value::IsProxy() const { return Utils::OpenHandle(this)->IsJSProxy(); } in IsProxy()
3441 i::Handle<i::Object> obj = Utils::OpenHandle(this); \
3462 return Utils::OpenHandle(this)->IsBoolean(); in VALUE_IS_SPECIFIC_TYPE()
3466 i::Handle<i::Object> obj = Utils::OpenHandle(this); in IsExternal()
3479 i::Handle<i::Object> obj = Utils::OpenHandle(this); in IsInt32()
3489 i::Handle<i::Object> obj = Utils::OpenHandle(this); in IsUint32()
3503 return Utils::OpenHandle(this)->IsJSError(); in IsNativeError()
3508 i::Handle<i::Object> obj = Utils::OpenHandle(this); in IsRegExp()
3513 i::Handle<i::Object> obj = Utils::OpenHandle(this); in IsAsyncFunction()
3520 i::Handle<i::Object> obj = Utils::OpenHandle(this); in IsGeneratorFunction()
3528 return Utils::OpenHandle(this)->IsJSGeneratorObject(); in IsGeneratorObject()
3533 return Utils::OpenHandle(this)->IsJSMapIterator(); in IsMapIterator()
3538 return Utils::OpenHandle(this)->IsJSSetIterator(); in IsSetIterator()
3541 bool Value::IsPromise() const { return Utils::OpenHandle(this)->IsJSPromise(); } in IsPromise()
3544 return Utils::OpenHandle(this)->IsJSModuleNamespace(); in IsModuleNamespaceObject()
3548 auto obj = Utils::OpenHandle(this); in ToString()
3565 i::Handle<i::Object> obj = Utils::OpenHandle(this); in ToDetailString()
3569 Utils::ToLocal(i::Object::NoSideEffectsToString(isolate, obj)); in ToDetailString()
3576 auto obj = Utils::OpenHandle(this); in ToObject()
3592 i::Handle<i::Object> obj = Utils::OpenHandle(this); in ToBigInt()
3603 auto obj = Utils::OpenHandle(this); in ToBoolean()
3617 auto obj = Utils::OpenHandle(this); in ToNumber()
3634 auto obj = Utils::OpenHandle(this); in ToInteger()
3651 auto obj = Utils::OpenHandle(this); in ToInt32()
3668 auto obj = Utils::OpenHandle(this); in ToUint32()
3681 Utils::ApiCheck(isolate != nullptr && !isolate->IsDead(), in CheckInitializedImpl()
3688 Utils::ApiCheck(that->IsExternal(), "v8::External::Cast", in CheckCast()
3694 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
3695 Utils::ApiCheck(obj->IsJSReceiver(), "v8::Object::Cast", in CheckCast()
3701 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
3702 Utils::ApiCheck(obj->IsCallable(), "v8::Function::Cast", in CheckCast()
3708 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
3709 Utils::ApiCheck(obj->IsBoolean(), "v8::Boolean::Cast", in CheckCast()
3715 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
3716 Utils::ApiCheck(obj->IsName(), "v8::Name::Cast", "Could not convert to name"); in CheckCast()
3721 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
3722 Utils::ApiCheck(obj->IsString(), "v8::String::Cast", in CheckCast()
3728 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
3729 Utils::ApiCheck(obj->IsSymbol(), "v8::Symbol::Cast", in CheckCast()
3735 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
3736 Utils::ApiCheck(obj->IsSymbol() && in CheckCast()
3744 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
3745 Utils::ApiCheck(obj->IsNumber(), in CheckCast()
3752 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
3753 Utils::ApiCheck(obj->IsNumber(), "v8::Integer::Cast", in CheckCast()
3759 Utils::ApiCheck(that->IsInt32(), "v8::Int32::Cast", in CheckCast()
3765 Utils::ApiCheck(that->IsUint32(), "v8::Uint32::Cast", in CheckCast()
3770 Utils::ApiCheck(that->IsBigInt(), "v8::BigInt::Cast", in CheckCast()
3775 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
3776 Utils::ApiCheck(obj->IsJSArray(), "v8::Array::Cast", in CheckCast()
3782 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
3783 Utils::ApiCheck(obj->IsJSMap(), "v8::Map::Cast", "Could not convert to Map"); in CheckCast()
3788 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
3789 Utils::ApiCheck(obj->IsJSSet(), "v8_Set_Cast", "Could not convert to Set"); in CheckCast()
3794 Utils::ApiCheck(that->IsPromise(), "v8::Promise::Cast", in CheckCast()
3800 Utils::ApiCheck(that->IsPromise(), "v8::Promise::Resolver::Cast", in CheckCast()
3806 Utils::ApiCheck(that->IsProxy(), "v8::Proxy::Cast", in CheckCast()
3811 Utils::ApiCheck(that->IsWebAssemblyCompiledModule(), in CheckCast()
3817 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
3818 Utils::ApiCheck( in CheckCast()
3825 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
3826 Utils::ApiCheck(obj->IsJSArrayBufferView(), in CheckCast()
3833 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
3834 Utils::ApiCheck(obj->IsJSTypedArray(), in CheckCast()
3841 i::Handle<i::Object> obj = Utils::OpenHandle(that); \
3842 Utils::ApiCheck( \
3854 i::Handle<i::Object> obj = Utils::OpenHandle(that); in TYPED_ARRAYS()
3855 Utils::ApiCheck(obj->IsJSDataView(), in TYPED_ARRAYS()
3862 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
3863 Utils::ApiCheck( in CheckCast()
3871 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
3872 Utils::ApiCheck(obj->IsJSDate(), "v8::Date::Cast()", in CheckCast()
3878 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
3879 Utils::ApiCheck(obj->IsStringWrapper(), "v8::StringObject::Cast()", in CheckCast()
3885 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
3886 Utils::ApiCheck(obj->IsSymbolWrapper(), "v8::SymbolObject::Cast()", in CheckCast()
3892 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
3893 Utils::ApiCheck(obj->IsNumberWrapper(), "v8::NumberObject::Cast()", in CheckCast()
3898 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
3899 Utils::ApiCheck(obj->IsBigIntWrapper(), "v8::BigIntObject::Cast()", in CheckCast()
3904 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
3905 Utils::ApiCheck(obj->IsBooleanWrapper(), "v8::BooleanObject::Cast()", in CheckCast()
3911 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
3912 Utils::ApiCheck(obj->IsJSRegExp(), in CheckCast()
3920 return Just(Utils::OpenHandle(this)->BooleanValue(isolate)); in BooleanValue()
3924 auto obj = Utils::OpenHandle(this); in BooleanValue()
3933 auto obj = Utils::OpenHandle(this); in NumberValue()
3945 auto obj = Utils::OpenHandle(this); in NumberValue()
3952 auto obj = Utils::OpenHandle(this); in IntegerValue()
3966 auto obj = Utils::OpenHandle(this); in IntegerValue()
3978 auto obj = Utils::OpenHandle(this); in Int32Value()
3991 auto obj = Utils::OpenHandle(this); in Int32Value()
3997 auto obj = Utils::OpenHandle(this); in Uint32Value()
4010 auto obj = Utils::OpenHandle(this); in Uint32Value()
4016 auto self = Utils::OpenHandle(this); in ToArrayIndex()
4018 if (i::Smi::ToInt(*self) >= 0) return Utils::Uint32ToLocal(self); in ToArrayIndex()
4035 RETURN_ESCAPED(Utils::Uint32ToLocal(value)); in ToArrayIndex()
4042 i::Isolate* isolate = Utils::OpenHandle(*context)->GetIsolate(); in Equals()
4043 auto self = Utils::OpenHandle(this); in Equals()
4044 auto other = Utils::OpenHandle(*that); in Equals()
4049 auto self = Utils::OpenHandle(this); in Equals()
4050 auto other = Utils::OpenHandle(*that); in Equals()
4063 auto self = Utils::OpenHandle(this); in StrictEquals()
4064 auto other = Utils::OpenHandle(*that); in StrictEquals()
4070 auto self = Utils::OpenHandle(this); in SameValue()
4071 auto other = Utils::OpenHandle(*that); in SameValue()
4079 return Utils::ToLocal(i::Object::TypeOf(isolate, Utils::OpenHandle(this))); in TypeOf()
4087 auto left = Utils::OpenHandle(this); in InstanceOf()
4088 auto right = Utils::OpenHandle(*object); in InstanceOf()
4100 auto self = Utils::OpenHandle(this); in Set()
4101 auto key_obj = Utils::OpenHandle(*key); in Set()
4102 auto value_obj = Utils::OpenHandle(*value); in Set()
4113 auto context = ContextFromNeverReadOnlySpaceObject(Utils::OpenHandle(this)); in Set()
4122 auto self = Utils::OpenHandle(this); in Set()
4123 auto value_obj = Utils::OpenHandle(*value); in Set()
4133 auto context = ContextFromNeverReadOnlySpaceObject(Utils::OpenHandle(this)); in Set()
4144 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this); in CreateDataProperty()
4145 i::Handle<i::Name> key_obj = Utils::OpenHandle(*key); in CreateDataProperty()
4146 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value); in CreateDataProperty()
4162 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this); in CreateDataProperty()
4163 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value); in CreateDataProperty()
4183 private_->desc.set_value(Utils::OpenHandle(*value, true)); in PropertyDescriptor()
4190 private_->desc.set_value(Utils::OpenHandle(*value, true)); in PropertyDescriptor()
4200 private_->desc.set_get(Utils::OpenHandle(*get, true)); in PropertyDescriptor()
4201 private_->desc.set_set(Utils::OpenHandle(*set, true)); in PropertyDescriptor()
4208 return Utils::ToLocal(private_->desc.value()); in value()
4213 return Utils::ToLocal(private_->desc.get()); in get()
4218 return Utils::ToLocal(private_->desc.set()); in set()
4271 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this); in DefineOwnProperty()
4272 i::Handle<i::Name> key_obj = Utils::OpenHandle(*key); in DefineOwnProperty()
4273 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value); in DefineOwnProperty()
4307 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this); in DefineProperty()
4308 i::Handle<i::Name> key_obj = Utils::OpenHandle(*key); in DefineProperty()
4321 auto self = Utils::OpenHandle(this); in SetPrivate()
4322 auto key_obj = Utils::OpenHandle(reinterpret_cast<Name*>(*key)); in SetPrivate()
4323 auto value_obj = Utils::OpenHandle(*value); in SetPrivate()
4347 auto self = Utils::OpenHandle(this); in Get()
4348 auto key_obj = Utils::OpenHandle(*key); in Get()
4353 RETURN_ESCAPED(Utils::ToLocal(result)); in Get()
4358 auto context = ContextFromNeverReadOnlySpaceObject(Utils::OpenHandle(this)); in Get()
4365 auto self = Utils::OpenHandle(this); in Get()
4370 RETURN_ESCAPED(Utils::ToLocal(result)); in Get()
4375 auto context = ContextFromNeverReadOnlySpaceObject(Utils::OpenHandle(this)); in Get()
4391 auto self = Utils::OpenHandle(this); in GetPropertyAttributes()
4392 auto key_obj = Utils::OpenHandle(*key); in GetPropertyAttributes()
4412 i::Handle<i::JSReceiver> obj = Utils::OpenHandle(this); in GetOwnPropertyDescriptor()
4413 i::Handle<i::Name> key_name = Utils::OpenHandle(*key); in GetOwnPropertyDescriptor()
4423 RETURN_ESCAPED(Utils::ToLocal(desc.ToObject(isolate))); in GetOwnPropertyDescriptor()
4428 auto isolate = Utils::OpenHandle(this)->GetIsolate(); in GetPrototype()
4429 auto self = Utils::OpenHandle(this); in GetPrototype()
4431 return Utils::ToLocal(i::PrototypeIterator::GetCurrent(iter)); in GetPrototype()
4440 auto self = Utils::OpenHandle(this); in SetPrototype()
4441 auto value_obj = Utils::OpenHandle(*value); in SetPrototype()
4455 auto self = Utils::OpenHandle(this); in FindInstanceInPrototypeChain()
4458 auto tmpl_info = *Utils::OpenHandle(*tmpl); in FindInstanceInPrototypeChain()
4465 return Utils::ToLocal(i::handle(iter.GetCurrent<i::JSObject>(), isolate)); in FindInstanceInPrototypeChain()
4480 auto self = Utils::OpenHandle(this); in GetPropertyNames()
4494 RETURN_ESCAPED(Utils::ToLocal(result)); in GetPropertyNames()
4499 auto context = ContextFromNeverReadOnlySpaceObject(Utils::OpenHandle(this)); in GetPropertyNames()
4509 auto context = ContextFromNeverReadOnlySpaceObject(Utils::OpenHandle(this)); in GetOwnPropertyNames()
4522 auto self = Utils::OpenHandle(this); in ObjectProtoToString()
4534 auto self = Utils::OpenHandle(this); in GetConstructorName()
4536 return Utils::ToLocal(name); in GetConstructorName()
4544 auto self = Utils::OpenHandle(this); in SetIntegrityLevel()
4556 auto self = Utils::OpenHandle(this); in Delete()
4557 auto key_obj = Utils::OpenHandle(*key); in Delete()
4579 auto context = ContextFromNeverReadOnlySpaceObject(Utils::OpenHandle(this)); in Delete()
4590 auto self = Utils::OpenHandle(this); in DeletePrivate()
4591 auto key_obj = Utils::OpenHandle(*key); in DeletePrivate()
4602 auto self = Utils::OpenHandle(this); in Has()
4603 auto key_obj = Utils::OpenHandle(*key); in Has()
4623 auto context = ContextFromNeverReadOnlySpaceObject(Utils::OpenHandle(this)); in Has()
4636 auto self = Utils::OpenHandle(this); in Delete()
4647 auto self = Utils::OpenHandle(this); in Has()
4664 if (!Utils::OpenHandle(self)->IsJSObject()) return Just(false); in ObjectSetAccessor()
4666 i::Handle<i::JSObject>::cast(Utils::OpenHandle(self)); in ObjectSetAccessor()
4709 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); in SetAccessorProperty()
4712 auto self = Utils::OpenHandle(this); in SetAccessorProperty()
4714 i::Handle<i::Object> getter_i = v8::Utils::OpenHandle(*getter); in SetAccessorProperty()
4715 i::Handle<i::Object> setter_i = v8::Utils::OpenHandle(*setter, true); in SetAccessorProperty()
4718 v8::Utils::OpenHandle(*name), getter_i, setter_i, in SetAccessorProperty()
4746 auto self = Utils::OpenHandle(this); in HasOwnProperty()
4747 auto key_val = Utils::OpenHandle(*key); in HasOwnProperty()
4758 auto self = Utils::OpenHandle(this); in HasOwnProperty()
4770 auto self = Utils::OpenHandle(this); in HasRealNamedProperty()
4772 auto key_val = Utils::OpenHandle(*key); in HasRealNamedProperty()
4782 auto context = ContextFromNeverReadOnlySpaceObject(Utils::OpenHandle(this)); in HasRealNamedProperty()
4792 auto self = Utils::OpenHandle(this); in HasRealIndexedProperty()
4803 auto context = ContextFromNeverReadOnlySpaceObject(Utils::OpenHandle(this)); in HasRealIndexedProperty()
4813 auto self = Utils::OpenHandle(this); in HasRealNamedCallbackProperty()
4815 auto key_val = Utils::OpenHandle(*key); in HasRealNamedCallbackProperty()
4825 auto context = ContextFromNeverReadOnlySpaceObject(Utils::OpenHandle(this)); in HasRealNamedCallbackProperty()
4831 auto self = Utils::OpenHandle(this); in HasNamedLookupInterceptor()
4838 auto self = Utils::OpenHandle(this); in HasIndexedLookupInterceptor()
4848 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this); in GetRealNamedPropertyInPrototypeChain()
4850 i::Handle<i::Name> key_obj = Utils::OpenHandle(*key); in GetRealNamedPropertyInPrototypeChain()
4873 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this); in GetRealNamedPropertyAttributesInPrototypeChain()
4875 i::Handle<i::Name> key_obj = Utils::OpenHandle(*key); in GetRealNamedPropertyAttributesInPrototypeChain()
4895 auto self = Utils::OpenHandle(this); in GetRealNamedProperty()
4896 auto key_obj = Utils::OpenHandle(*key); in GetRealNamedProperty()
4913 auto self = Utils::OpenHandle(this); in GetRealNamedPropertyAttributes()
4914 auto key_obj = Utils::OpenHandle(*key); in GetRealNamedPropertyAttributes()
4930 auto self = i::Handle<i::JSObject>::cast(Utils::OpenHandle(this)); in Clone()
4935 return Utils::ToLocal(result); in Clone()
4940 auto self = Utils::OpenHandle(this); in CreationContext()
4941 return Utils::ToLocal(self->GetCreationContext()); in CreationContext()
4947 auto isolate = Utils::OpenHandle(this)->GetIsolate(); in GetIdentityHash()
4949 auto self = Utils::OpenHandle(this); in GetIdentityHash()
4955 auto self = Utils::OpenHandle(this); in IsCallable()
4960 auto self = Utils::OpenHandle(this); in IsConstructor()
4972 auto self = Utils::OpenHandle(this); in CallAsFunction()
4973 auto recv_obj = Utils::OpenHandle(*recv); in CallAsFunction()
4991 auto self = Utils::OpenHandle(this); in CallAsConstructor()
5005 i::Isolate* isolate = Utils::OpenHandle(*context)->GetIsolate(); in New()
5037 auto self = Utils::OpenHandle(this); in NewInstanceWithSideEffectType()
5085 auto self = Utils::OpenHandle(this); in Call()
5086 Utils::ApiCheck(!self.is_null(), "v8::Function::Call", in Call()
5088 i::Handle<i::Object> recv_obj = Utils::OpenHandle(*recv); in Call()
5101 auto context = ContextFromNeverReadOnlySpaceObject(Utils::OpenHandle(this)); in Call()
5107 auto self = Utils::OpenHandle(this); in SetName()
5110 func->shared()->SetName(*Utils::OpenHandle(*name)); in SetName()
5115 auto self = Utils::OpenHandle(this); in GetName()
5123 return Utils::ToLocal(name); in GetName()
5127 return Utils::ToLocal(handle(func->shared()->Name(), isolate)); in GetName()
5134 auto self = Utils::OpenHandle(this); in GetInferredName()
5140 return Utils::ToLocal(i::Handle<i::Object>(func->shared()->inferred_name(), in GetInferredName()
5146 auto self = Utils::OpenHandle(this); in GetDebugName()
5153 return Utils::ToLocal(i::Handle<i::Object>(*name, self->GetIsolate())); in GetDebugName()
5158 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); in GetDisplayName()
5160 auto self = Utils::OpenHandle(this); in GetDisplayName()
5171 if (name->length() > 0) return Utils::ToLocal(name); in GetDisplayName()
5178 auto self = Utils::OpenHandle(this); in GetScriptOrigin()
5196 auto self = Utils::OpenHandle(this); in GetScriptLineNumber()
5211 auto self = Utils::OpenHandle(this); in GetScriptColumnNumber()
5226 auto self = Utils::OpenHandle(this); in ScriptId()
5241 auto self = Utils::OpenHandle(this); in GetBoundFunction()
5246 return Utils::CallableToLocal(bound_target_function); in GetBoundFunction()
5252 auto self = Utils::OpenHandle(this); in GetIdentityHash()
5258 i::Handle<i::String> str = Utils::OpenHandle(this); in Length()
5264 i::Handle<i::String> str = Utils::OpenHandle(this); in IsOneByte()
5379 i::Handle<i::String> str = Utils::OpenHandle(this); in ContainsOnlyOneByte()
5386 i::Isolate* isolate = UnsafeIsolateFromHeapObject(Utils::OpenHandle(this)); in Utf8Length()
5391 i::Handle<i::String> str = Utils::OpenHandle(this); in Utf8Length()
5615 i::Handle<i::String> str = Utils::OpenHandle(this); in WriteUtf8()
5660 i::Handle<i::String> str = Utils::OpenHandle(this); in WriteUtf8()
5673 i::Handle<i::String> str = Utils::OpenHandle(string); in WriteHelper()
5689 i::Isolate* isolate = UnsafeIsolateFromHeapObject(Utils::OpenHandle(this)); in WriteOneByte()
5700 i::Isolate* isolate = UnsafeIsolateFromHeapObject(Utils::OpenHandle(this)); in Write()
5712 i::Handle<i::String> str = Utils::OpenHandle(this); in IsExternal()
5718 i::Handle<i::String> str = Utils::OpenHandle(this); in IsExternalOneByte()
5726 i::String* str = *Utils::OpenHandle(this); in VerifyExternalStringResource()
5745 i::String* str = *Utils::OpenHandle(this); in VerifyExternalStringResourceBase()
5774 i::String* str = *Utils::OpenHandle(this); in GetExternalStringResourceSlow()
5792 i::String* str = *Utils::OpenHandle(this); in GetExternalStringResourceBaseSlow()
5811 i::String* str = *Utils::OpenHandle(this); in GetExternalOneByteStringResourceSlow()
5827 i::String* str = *Utils::OpenHandle(this); in GetExternalOneByteStringResource()
5838 i::Handle<i::Symbol> sym = Utils::OpenHandle(this); in Name()
5848 return Utils::ToLocal(ro_name); in Name()
5853 return Utils::ToLocal(name); in Name()
5863 i::Handle<i::Object> obj = Utils::OpenHandle(this); in Value()
5869 i::Handle<i::Object> obj = Utils::OpenHandle(this); in Value()
5875 i::Handle<i::Object> obj = Utils::OpenHandle(this); in Value()
5885 i::Handle<i::Object> obj = Utils::OpenHandle(this); in Value()
5895 i::Handle<i::Object> obj = Utils::OpenHandle(this); in Value()
5904 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this); in InternalFieldCount()
5911 return Utils::ApiCheck( in InternalFieldOK()
5918 i::Handle<i::JSReceiver> obj = Utils::OpenHandle(this); in SlowGetInternalField()
5924 return Utils::ToLocal(value); in SlowGetInternalField()
5928 i::Handle<i::JSReceiver> obj = Utils::OpenHandle(this); in SetInternalField()
5931 i::Handle<i::Object> val = Utils::OpenHandle(*value); in SetInternalField()
5936 i::Handle<i::JSReceiver> obj = Utils::OpenHandle(this); in SlowGetAlignedPointerFromInternalField()
5944 i::Handle<i::JSReceiver> obj = Utils::OpenHandle(this); in SetAlignedPointerInInternalField()
5954 i::Handle<i::JSReceiver> obj = Utils::OpenHandle(this); in SetAlignedPointerInInternalFields()
5961 if (!Utils::ApiCheck(index < nof_embedder_fields, location, in SetAlignedPointerInInternalFields()
6158 *Utils::OpenHandle(*global_template)); in CreateEnvironment()
6198 Utils::OpenHandle(*maybe_global_proxy.ToLocalChecked())); in CreateEnvironment()
6246 return Utils::ToLocal(scope.CloseAndEscape(env)); in NewContext()
6281 Utils::ApiCheck(global_constructor->needs_access_check(), in NewRemoteContext()
6287 Utils::ApiCheck(access_check_info->named_interceptor() != nullptr, in NewRemoteContext()
6298 return Utils::ToLocal( in NewRemoteContext()
6303 i::Handle<i::Context> env = Utils::OpenHandle(this); in SetSecurityToken()
6304 i::Handle<i::Object> token_handle = Utils::OpenHandle(*token); in SetSecurityToken()
6310 i::Handle<i::Context> env = Utils::OpenHandle(this); in UseDefaultSecurityToken()
6316 i::Handle<i::Context> env = Utils::OpenHandle(this); in GetSecurityToken()
6320 return Utils::ToLocal(token_handle); in GetSecurityToken()
6325 i::Handle<i::Context> env = Utils::OpenHandle(this); in GetIsolate()
6330 i::Handle<i::Context> context = Utils::OpenHandle(this); in Global()
6339 return Utils::ToLocal(i::Handle<i::JSObject>::cast(global)); in Global()
6344 i::Handle<i::Context> context = Utils::OpenHandle(this); in DetachGlobal()
6352 i::Handle<i::Context> context = Utils::OpenHandle(this); in GetExtrasBindingObject()
6355 return Utils::ToLocal(binding); in GetExtrasBindingObject()
6360 i::Handle<i::Context> context = Utils::OpenHandle(this); in AllowCodeGenerationFromStrings()
6370 i::Handle<i::Context> context = Utils::OpenHandle(this); in IsCodeGenerationFromStringsAllowed()
6377 i::Handle<i::Context> context = Utils::OpenHandle(this); in SetErrorMessageForCodeGenerationFromStrings()
6378 i::Handle<i::String> error_handle = Utils::OpenHandle(*error); in SetErrorMessageForCodeGenerationFromStrings()
6404 auto context = Utils::OpenHandle(this); in GetDataFromSnapshotOnce()
6412 auto self = Utils::OpenHandle(this); in NewInstance()
6422 auto context = ContextFromNeverReadOnlySpaceObject(Utils::OpenHandle(this)); in NewInstance()
6427 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
6428 Utils::ApiCheck(obj->IsObjectTemplateInfo(), "v8::ObjectTemplate::Cast", in CheckCast()
6433 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
6434 Utils::ApiCheck(obj->IsFunctionTemplateInfo(), "v8::FunctionTemplate::Cast", in CheckCast()
6439 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
6440 Utils::ApiCheck(obj->IsFunctionTemplateInfo(), "v8::Signature::Cast", in CheckCast()
6445 i::Handle<i::Object> obj = Utils::OpenHandle(that); in CheckCast()
6446 Utils::ApiCheck(obj->IsFunctionTemplateInfo(), "v8::AccessorSignature::Cast", in CheckCast()
6452 auto self = Utils::OpenHandle(this); in GetFunction()
6462 auto context = ContextFromNeverReadOnlySpaceObject(Utils::OpenHandle(this)); in GetFunction()
6467 auto self = Utils::OpenHandle(this); in NewRemoteInstance()
6473 Utils::ApiCheck(constructor->needs_access_check(), in NewRemoteInstance()
6478 Utils::ApiCheck(access_check_info->named_interceptor() != nullptr, in NewRemoteInstance()
6483 Utils::OpenHandle(*InstanceTemplate())) in NewRemoteInstance()
6490 return Utils::ToLocal(scope.CloseAndEscape(object)); in NewRemoteInstance()
6494 auto self = Utils::OpenHandle(this); in HasInstance()
6495 auto obj = Utils::OpenHandle(*value); in HasInstance()
6519 return Utils::ExternalToLocal(external); in New()
6524 return ExternalValue(*Utils::OpenHandle(this)); in Value()
6600 result = Utils::ToLocal(handle_result); \
6647 i::Handle<i::String> left_string = Utils::OpenHandle(*left); in Concat()
6650 i::Handle<i::String> right_string = Utils::OpenHandle(*right); in Concat()
6658 return Utils::ToLocal(result); in Concat()
6662 i::Handle<i::String> left_string = Utils::OpenHandle(*left); in Concat()
6681 return Utils::ToLocal(string); in NewExternalTwoByte()
6685 return Utils::ToLocal(i_isolate->factory()->empty_string()); in NewExternalTwoByte()
6704 return Utils::ToLocal(string); in NewExternalOneByte()
6708 return Utils::ToLocal(i_isolate->factory()->empty_string()); in NewExternalOneByte()
6722 i::String* obj = *Utils::OpenHandle(this); in MakeExternal()
6751 i::String* obj = *Utils::OpenHandle(this); in MakeExternal()
6778 i::String* obj = *Utils::OpenHandle(this); in CanMakeExternal()
6793 auto self = Utils::OpenHandle(this); in StringEquals()
6794 auto other = Utils::OpenHandle(*that); in StringEquals()
6799 i::Isolate* i_isolate = Utils::OpenHandle(this)->GetIsolate(); in GetIsolate()
6810 return Utils::ToLocal(obj); in New()
6821 return Utils::ToLocal(obj); in New()
6826 i::Handle<i::Object> obj = Utils::OpenHandle(this); in ValueOf()
6841 return Utils::ToLocal(obj); in New()
6845 i::Handle<i::Object> obj = Utils::OpenHandle(this); in ValueOf()
6849 return Utils::ToLocal( in ValueOf()
6863 return Utils::ToLocal(obj); in New()
6868 i::Handle<i::Object> obj = Utils::OpenHandle(this); in ValueOf()
6876 i::Handle<i::String> string = Utils::OpenHandle(*value); in New()
6883 i::Handle<i::String> string = Utils::OpenHandle(*value); in New()
6889 return Utils::ToLocal(obj); in New()
6894 i::Handle<i::Object> obj = Utils::OpenHandle(this); in ValueOf()
6898 return Utils::ToLocal( in ValueOf()
6908 i_isolate, Utils::OpenHandle(*value)).ToHandleChecked(); in New()
6909 return Utils::ToLocal(obj); in New()
6914 i::Handle<i::Object> obj = Utils::OpenHandle(this); in ValueOf()
6918 return Utils::ToLocal( in ValueOf()
6945 i::Handle<i::Object> obj = Utils::OpenHandle(this); in ValueOf()
6977 !ToLocal<RegExp>(i::JSRegExp::New(isolate, Utils::OpenHandle(*pattern), in New()
6986 i::Handle<i::JSRegExp> obj = Utils::OpenHandle(this); in GetSource()
6987 return Utils::ToLocal( in GetSource()
7005 i::Handle<i::JSRegExp> obj = Utils::OpenHandle(this); in GetFlags()
7019 return Utils::ToLocal(obj); in New()
7024 i::Handle<i::JSArray> obj = Utils::OpenHandle(this); in Length()
7039 return Utils::ToLocal(obj); in New()
7044 i::Handle<i::JSMap> obj = Utils::OpenHandle(this); in Size()
7050 auto self = Utils::OpenHandle(this); in Clear()
7060 auto self = Utils::OpenHandle(this); in Get()
7062 i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key)}; in Get()
7075 auto self = Utils::OpenHandle(this); in Set()
7077 i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key), in Set()
7078 Utils::OpenHandle(*value)}; in Set()
7083 RETURN_ESCAPED(Local<Map>::Cast(Utils::ToLocal(result))); in Set()
7090 auto self = Utils::OpenHandle(this); in Has()
7092 i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key)}; in Has()
7104 auto self = Utils::OpenHandle(this); in Delete()
7106 i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key)}; in Delete()
7156 i::Handle<i::JSMap> obj = Utils::OpenHandle(this); in AsArray()
7160 return Utils::ToLocal( in AsArray()
7170 return Utils::ToLocal(obj); in New()
7175 i::Handle<i::JSSet> obj = Utils::OpenHandle(this); in Size()
7181 auto self = Utils::OpenHandle(this); in Clear()
7191 auto self = Utils::OpenHandle(this); in Add()
7193 i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key)}; in Add()
7198 RETURN_ESCAPED(Local<Set>::Cast(Utils::ToLocal(result))); in Add()
7205 auto self = Utils::OpenHandle(this); in Has()
7207 i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key)}; in Has()
7219 auto self = Utils::OpenHandle(this); in Delete()
7221 i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key)}; in Delete()
7257 i::Handle<i::JSSet> obj = Utils::OpenHandle(this); in AsArray()
7261 return Utils::ToLocal(SetAsArray(isolate, obj->table(), 0)); in AsArray()
7276 i::Handle<i::JSReceiver> promise = Utils::OpenHandle(this); in GetPromise()
7277 return Local<Promise>::Cast(Utils::ToLocal(promise)); in GetPromise()
7286 auto self = Utils::OpenHandle(this); in Resolve()
7294 i::JSPromise::Resolve(promise, Utils::OpenHandle(*value)).is_null(); in Resolve()
7305 auto self = Utils::OpenHandle(this); in Reject()
7313 i::JSPromise::Reject(promise, Utils::OpenHandle(*value)).is_null(); in Reject()
7322 auto self = Utils::OpenHandle(this); in Catch()
7323 i::Handle<i::Object> argv[] = { Utils::OpenHandle(*handler) }; in Catch()
7329 RETURN_ESCAPED(Local<Promise>::Cast(Utils::ToLocal(result))); in Catch()
7336 auto self = Utils::OpenHandle(this); in Then()
7337 i::Handle<i::Object> argv[] = { Utils::OpenHandle(*handler) }; in Then()
7343 RETURN_ESCAPED(Local<Promise>::Cast(Utils::ToLocal(result))); in Then()
7348 i::Handle<i::JSReceiver> promise = Utils::OpenHandle(this); in HasHandler()
7360 i::Handle<i::JSReceiver> promise = Utils::OpenHandle(this); in Result()
7364 Utils::ApiCheck(js_promise->status() != kPending, "v8_Promise_Result", in Result()
7367 return Utils::ToLocal(result); in Result()
7371 i::Handle<i::JSReceiver> promise = Utils::OpenHandle(this); in State()
7379 i::Handle<i::JSProxy> self = Utils::OpenHandle(this); in GetTarget()
7381 return Utils::ToLocal(target); in GetTarget()
7386 i::Handle<i::JSProxy> self = Utils::OpenHandle(this); in GetHandler()
7388 return Utils::ToLocal(handler); in GetHandler()
7393 i::Handle<i::JSProxy> self = Utils::OpenHandle(this); in IsRevoked()
7399 i::Handle<i::JSProxy> self = Utils::OpenHandle(this); in Revoke()
7407 i::Handle<i::JSReceiver> target = Utils::OpenHandle(*local_target); in New()
7408 i::Handle<i::JSReceiver> handler = Utils::OpenHandle(*local_handler); in New()
7418 i::Handle<i::WasmModuleObject>::cast(Utils::OpenHandle(this)); in GetWasmWireBytesRef()
7435 i::Handle<i::WasmModuleObject>::cast(Utils::OpenHandle(this)); in GetTransferrableModule()
7457 Utils::ToLocal(i::Handle<i::JSObject>::cast(module_object))); in FromTransferrableModule()
7466 i::Handle<i::WasmModuleObject>::cast(Utils::OpenHandle(this)); in Serialize()
7489 Utils::ToLocal(i::Handle<i::JSObject>::cast(module_object))); in Deserialize()
7518 Utils::ToLocal(maybe_compiled.ToHandleChecked())); in Compile()
7529 *Utils::OpenHandle(*promise))) {} in AsyncCompilationResolver()
7579 return Utils::OpenHandle(this)->is_external(); in IsExternal()
7584 return Utils::OpenHandle(this)->is_neuterable(); in IsNeuterable()
7589 i::Handle<i::JSArrayBuffer> self = Utils::OpenHandle(this); in Externalize()
7591 Utils::ApiCheck(!self->is_external(), "v8_ArrayBuffer_Externalize", in Externalize()
7631 i::Handle<i::JSArrayBuffer> self = Utils::OpenHandle(this); in GetContents()
7647 i::Handle<i::JSArrayBuffer> obj = Utils::OpenHandle(this); in Neuter()
7649 Utils::ApiCheck(obj->is_external(), in Neuter()
7652 Utils::ApiCheck(obj->is_neuterable(), "v8::ArrayBuffer::Neuter", in Neuter()
7661 i::Handle<i::JSArrayBuffer> obj = Utils::OpenHandle(this); in ByteLength()
7677 return Utils::ToLocal(obj); in New()
7694 return Utils::ToLocal(obj); in New()
7699 i::Handle<i::JSArrayBufferView> obj = Utils::OpenHandle(this); in Buffer()
7711 return Utils::ToLocal(buffer); in Buffer()
7716 i::Handle<i::JSArrayBufferView> self = Utils::OpenHandle(this); in CopyContents()
7741 i::Handle<i::JSArrayBufferView> self = Utils::OpenHandle(this); in HasBuffer()
7749 i::Handle<i::JSArrayBufferView> obj = Utils::OpenHandle(this); in ByteOffset()
7755 i::Handle<i::JSArrayBufferView> obj = Utils::OpenHandle(this); in ByteLength()
7761 i::Handle<i::JSTypedArray> obj = Utils::OpenHandle(this); in Length()
7771 i::Isolate* isolate = Utils::OpenHandle(*array_buffer)->GetIsolate(); \
7774 if (!Utils::ApiCheck(length <= kMaxLength, \
7780 i::Handle<i::JSArrayBuffer> buffer = Utils::OpenHandle(*array_buffer); \
7783 return Utils::ToLocal##Type##Array(obj); \
7790 Utils::OpenHandle(*shared_array_buffer)->GetIsolate(); \
7793 if (!Utils::ApiCheck( \
7801 Utils::OpenHandle(*shared_array_buffer); \
7804 return Utils::ToLocal##Type##Array(obj); \
7812 i::Handle<i::JSArrayBuffer> buffer = Utils::OpenHandle(*array_buffer); in TYPED_ARRAYS()
7818 return Utils::ToLocal(obj); in TYPED_ARRAYS()
7825 i::Handle<i::JSArrayBuffer> buffer = Utils::OpenHandle(*shared_array_buffer); in New()
7831 return Utils::ToLocal(obj); in New()
7836 return Utils::OpenHandle(this)->is_external(); in IsExternal()
7840 i::Handle<i::JSArrayBuffer> self = Utils::OpenHandle(this); in Externalize()
7842 Utils::ApiCheck(!self->is_external(), "v8_SharedArrayBuffer_Externalize", in Externalize()
7869 i::Handle<i::JSArrayBuffer> self = Utils::OpenHandle(this); in GetContents()
7887 i::Handle<i::JSArrayBuffer> obj = Utils::OpenHandle(this); in ByteLength()
7905 return Utils::ToLocalShared(obj); in New()
7925 return Utils::ToLocalShared(obj); in New()
7934 if (!name.IsEmpty()) result->set_name(*Utils::OpenHandle(*name)); in New()
7935 return Utils::ToLocal(result); in New()
7941 i::Handle<i::String> i_name = Utils::OpenHandle(*name); in For()
7942 return Utils::ToLocal(i_isolate->SymbolFor( in For()
7949 i::Handle<i::String> i_name = Utils::OpenHandle(*name); in ForApi()
7950 return Utils::ToLocal( in ForApi()
7969 return Utils::ToLocal(i_isolate->factory()->name##_symbol()); \
7982 if (!name.IsEmpty()) symbol->set_name(*Utils::OpenHandle(*name)); in WELL_KNOWN_SYMBOLS()
7983 Local<Symbol> result = Utils::ToLocal(symbol); in WELL_KNOWN_SYMBOLS()
7990 i::Handle<i::String> i_name = Utils::OpenHandle(*name); in ForApi()
7991 Local<Symbol> result = Utils::ToLocal(i_isolate->SymbolFor( in ForApi()
8005 return Utils::NumberToLocal(result); in New()
8012 return Utils::IntegerToLocal(i::Handle<i::Object>(i::Smi::FromInt(value), in New()
8017 return Utils::IntegerToLocal(result); in New()
8029 return Utils::IntegerToLocal(result); in NewFromUnsigned()
8037 return Utils::ToLocal(result); in New()
8045 return Utils::ToLocal(result); in NewFromUnsigned()
8059 RETURN_ESCAPED(Utils::ToLocal(result.ToHandleChecked())); in NewFromWords()
8063 i::Handle<i::BigInt> handle = Utils::OpenHandle(this); in Uint64Value()
8068 i::Handle<i::BigInt> handle = Utils::OpenHandle(this); in Int64Value()
8073 i::Handle<i::BigInt> handle = Utils::OpenHandle(this); in WordCount()
8079 i::Handle<i::BigInt> handle = Utils::OpenHandle(this); in ToWordsArray()
8118 return Utils::ToLocal(i::Handle<i::Context>(native_context, isolate)); in GetCurrentContext()
8127 return Utils::ToLocal(i::Handle<i::Context>::cast(last)); in GetEnteredContext()
8140 return Utils::ToLocal(i::Handle<i::Context>::cast(last)); in GetEnteredOrMicrotaskContext()
8146 return Utils::ToLocal(context); in GetIncumbentContext()
8157 isolate->ScheduleThrow(*Utils::OpenHandle(*value)); in ThrowException()
8287 Utils::ApiCheck( in Initialize()
8347 if (!Utils::ApiCheck(!isolate->IsInUse(), in Dispose()
8648 Utils::OpenHandle(*function), isolate->native_context()); in EnqueueMicrotask()
8891 : *Utils::OpenHandle(*data)); in AddMessageListenerWithErrorLevel()
9062 i::Handle<i::String> message = Utils::OpenHandle(*raw_message); \
9067 return Utils::ToLocal(result); \
9081 i::Handle<i::Object> obj = Utils::OpenHandle(*exception); in DEFINE_ERROR()
9085 return Utils::MessageToLocal( in DEFINE_ERROR()
9091 i::Handle<i::Object> obj = Utils::OpenHandle(*exception); in GetStackTrace()
9096 return Utils::StackTraceToLocal(isolate->GetDetailedStackTrace(js_obj)); in GetStackTrace()
9103 Utils::OpenHandle(*context)->set_debug_context_id(i::Smi::FromInt(id)); in SetContextId()
9107 i::Object* value = Utils::OpenHandle(*context)->debug_context_id(); in GetContextId()
9135 i::Handle<i::Object> val = Utils::OpenHandle(*value); in GetInternalProperties()
9139 return Utils::ToLocal(result); in GetInternalProperties()
9186 return reinterpret_cast<v8::Isolate*>(Utils::OpenHandle(this)->GetIsolate()); in GetIsolate()
9190 return Utils::OpenHandle(this)->origin_options(); in OriginOptions()
9194 return Utils::OpenHandle(this)->compilation_state() == in WasCompiled()
9199 i::Handle<i::Script> script = Utils::OpenHandle(this); in IsEmbedded()
9204 int debug::Script::Id() const { return Utils::OpenHandle(this)->id(); } in Id()
9207 return Utils::OpenHandle(this)->line_offset(); in LineOffset()
9211 return Utils::OpenHandle(this)->column_offset(); in ColumnOffset()
9215 i::Handle<i::Script> script = Utils::OpenHandle(this); in LineEnds()
9232 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); in Name()
9234 i::Handle<i::Script> script = Utils::OpenHandle(this); in Name()
9237 return Utils::ToLocal( in Name()
9242 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); in SourceURL()
9244 i::Handle<i::Script> script = Utils::OpenHandle(this); in SourceURL()
9247 return Utils::ToLocal( in SourceURL()
9252 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); in SourceMappingURL()
9254 i::Handle<i::Script> script = Utils::OpenHandle(this); in SourceMappingURL()
9257 return Utils::ToLocal( in SourceMappingURL()
9262 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); in ContextId()
9264 i::Handle<i::Script> script = Utils::OpenHandle(this); in ContextId()
9271 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); in Source()
9273 i::Handle<i::Script> script = Utils::OpenHandle(this); in Source()
9276 return Utils::ToLocal( in Source()
9281 return Utils::OpenHandle(this)->type() == i::Script::TYPE_WASM; in IsWasm()
9285 return Utils::OpenHandle(this)->origin_options().IsModule(); in IsModule()
9304 i::Handle<i::Script> script = Utils::OpenHandle(this); in GetPossibleBreakpoints()
9354 i::Handle<i::Script> script = Utils::OpenHandle(this); in GetSourceOffset()
9381 i::Handle<i::Script> script = Utils::OpenHandle(this); in GetSourceLocation()
9390 i::Handle<i::Script> script = Utils::OpenHandle(this); in SetScriptSource()
9393 script, Utils::OpenHandle(*newSource), preview, result); in SetScriptSource()
9399 i::Handle<i::Script> script = Utils::OpenHandle(this); in SetBreakpoint()
9403 script, Utils::OpenHandle(*condition), &offset, id)) { in SetBreakpoint()
9427 i::Handle<i::Script> script = Utils::OpenHandle(this); in NumFunctions()
9438 i::Handle<i::Script> script = Utils::OpenHandle(this); in NumImportedFunctions()
9450 i::Handle<i::Script> script = Utils::OpenHandle(this); in GetFunctionRange()
9466 i::Handle<i::Script> script = Utils::OpenHandle(this); in GetFunctionHash()
9485 i::Handle<i::Script> script = Utils::OpenHandle(this); in DisassembleFunction()
9537 i::Handle<i::String> str = Utils::OpenHandle(*source); in CompileInspectorScript()
9572 *Utils::OpenHandle(*script)); in ResetBlackboxedStateCache()
9583 i::Handle<i::Object> object = Utils::OpenHandle(*value); in EstimatedValueSize()
9599 i::Handle<i::JSReceiver> object = Utils::OpenHandle(this); in PreviewEntries()
9605 return Utils::ToLocal(i::JSWeakCollection::GetEntries( in PreviewEntries()
9615 return Utils::ToLocal(MapAsArray(isolate, iterator->table(), in PreviewEntries()
9622 return Utils::ToLocal( in PreviewEntries()
9659 return Utils::ToLocal(handle_scope.CloseAndEscape(fun)); in GetBuiltin()
9679 return Utils::OpenHandle(*frame)->id(); in GetStackFrameId()
9685 i::Handle<i::JSReceiver> error = Utils::OpenHandle(*v8_error); in GetDetailedStackTrace()
9691 return Utils::StackTraceToLocal(stack_trace); in GetDetailedStackTrace()
9695 i::Handle<i::JSGeneratorObject> obj = Utils::OpenHandle(this); in Script()
9703 i::Handle<i::JSGeneratorObject> obj = Utils::OpenHandle(this); in Function()
9704 return Utils::ToLocal(handle(obj->function(), obj->GetIsolate())); in Function()
9708 i::Handle<i::JSGeneratorObject> obj = Utils::OpenHandle(this); in SuspendedLocation()
9720 return Utils::OpenHandle(this)->is_suspended(); in IsSuspended()
9726 return ToApiHandle<debug::GeneratorObject>(Utils::OpenHandle(*value)); in Cast()
9736 i::DebugEvaluate::Global(internal_isolate, Utils::OpenHandle(*source), in EvaluateGlobal()
9748 isolate->heap_profiler()->QueryObjects(Utils::OpenHandle(*v8_context), in QueryObjects()
9755 i::Handle<i::Context> context = Utils::OpenHandle(*v8_context); in GlobalLexicalScopeNames()
9769 names->Append(Utils::ToLocal(handle(name, isolate))); in GlobalLexicalScopeNames()
9777 isolate->debug()->set_return_value(*Utils::OpenHandle(*value)); in SetReturnValue()
9783 i::Handle<i::JSReceiver> object = Utils::OpenHandle(*v8_object); in GetNativeAccessorDescriptor()
9784 i::Handle<i::Name> name = Utils::OpenHandle(*v8_name); in GetNativeAccessorDescriptor()
9822 i::Handle<i::JSReceiver> callable = v8::Utils::OpenHandle(*function); in GetDebuggingId()
9833 i::Handle<i::JSReceiver> callable = Utils::OpenHandle(*function); in SetFunctionBreakpoint()
9840 : Utils::OpenHandle(*condition); in SetFunctionBreakpoint()
10136 *Utils::OpenHandle(*title), record_samples, kLeafNodeLineNumbers); in StartProfiling()
10142 *Utils::OpenHandle(*title), record_samples, mode); in StartProfiling()
10148 *Utils::OpenHandle(*title))); in StopProfiling()
10355 Utils::ApiCheck(format == kJSON, in Serialize()
10358 Utils::ApiCheck(stream->GetChunkSize() > 0, in Serialize()
10383 i::Handle<i::Object> obj = Utils::OpenHandle(*value); in GetObjectId()
10392 return Utils::ToLocal(obj); in FindObjectById()