Lines Matching refs:Handle
201 Local<Context> ContextFromHeapObject(i::Handle<i::Object> obj) {
233 i::Handle<i::Context> env = Utils::OpenHandle(*context);
274 i::Handle<i::Script> script) {
275 i::Handle<i::Object> scriptName(script->GetNameOrSourceURL(), isolate);
276 i::Handle<i::Object> source_map_url(script->source_mapping_url(), isolate);
582 i::Handle<i::FixedArray> templates =
592 i::Handle<i::FixedArray> global_proxy_sizes =
595 i::Handle<i::Context> context =
619 i::Handle<i::Context> context =
880 i::Handle<i::Object> result = isolate->global_handles()->Create(*obj);
891 i::Handle<i::Object> result = i::GlobalHandles::CopyGlobal(obj);
1082 i::Handle<i::Context> env = Utils::OpenHandle(this);
1093 i::Handle<i::Context> env = Utils::OpenHandle(this);
1120 static i::Handle<i::FixedArray> EmbedderDataFor(Context* context,
1124 i::Handle<i::Context> env = Utils::OpenHandle(context);
1131 if (!ok) return i::Handle<i::FixedArray>();
1132 i::Handle<i::FixedArray> data(env->embedder_data());
1135 return i::Handle<i::FixedArray>();
1147 i::Handle<i::FixedArray> data = EmbedderDataFor(this, index, false, location);
1149 i::Handle<i::Object> result(data->get(index), data->GetIsolate());
1156 i::Handle<i::FixedArray> data = EmbedderDataFor(this, index, true, location);
1158 i::Handle<i::Object> val = Utils::OpenHandle(*value);
1167 i::Handle<i::FixedArray> data = EmbedderDataFor(this, index, false, location);
1175 i::Handle<i::FixedArray> data = EmbedderDataFor(this, index, true, location);
1184 static void InitializeTemplate(i::Handle<i::TemplateInfo> that, int type) {
1201 i::Handle<i::FunctionTemplateInfo>::cast(templ)->set_do_not_cache(true);
1238 i::Handle<i::FunctionTemplateInfo> info) {
1250 i::Handle<i::Object> result(Utils::OpenHandle(this)->prototype_template(),
1265 i::Handle<i::Object> result = Utils::OpenHandle(*prototype_provider);
1272 static void EnsureNotInstantiated(i::Handle<i::FunctionTemplateInfo> info,
1293 i::Handle<i::Struct> struct_obj =
1295 i::Handle<i::FunctionTemplateInfo> obj =
1296 i::Handle<i::FunctionTemplateInfo>::cast(struct_obj);
1345 return Utils::ToLocal(i::Handle<i::FunctionTemplateInfo>(
1386 i::Handle<i::Object> foreign = FromCData(obj->GetIsolate(), cdata); \
1399 i::Handle<i::Struct> struct_obj =
1401 i::Handle<i::CallHandlerInfo> obj =
1402 i::Handle<i::CallHandlerInfo>::cast(struct_obj);
1417 static i::Handle<i::AccessorInfo> SetAccessorInfoProperties(
1418 i::Handle<i::AccessorInfo> obj, v8::Local<Name> name,
1434 i::Handle<i::AccessorInfo> MakeAccessorInfo(
1440 i::Handle<i::AccessorInfo> obj = isolate->factory()->NewAccessorInfo();
1462 i::Handle<i::FunctionTemplateInfo> handle = Utils::OpenHandle(this, true);
1463 if (!Utils::ApiCheck(!handle.is_null(),
1465 "Reading from empty handle")) {
1468 i::Isolate* isolate = handle->GetIsolate();
1470 if (handle->instance_template()->IsUndefined(isolate)) {
1472 ObjectTemplate::New(isolate, ToApiHandle<FunctionTemplate>(handle));
1473 handle->set_instance_template(*Utils::OpenHandle(*templ));
1475 i::Handle<i::ObjectTemplateInfo> result(
1476 i::ObjectTemplateInfo::cast(handle->instance_template()));
1553 i::Handle<i::Struct> struct_obj =
1555 i::Handle<i::ObjectTemplateInfo> obj =
1556 i::Handle<i::ObjectTemplateInfo>::cast(struct_obj);
1583 i::Handle<i::ObjectTemplateInfo>(i::ObjectTemplateInfo::cast(info)));
1591 static i::Handle<i::FunctionTemplateInfo> EnsureConstructor(
1597 return i::Handle<i::FunctionTemplateInfo>(info, isolate);
1601 i::Handle<i::FunctionTemplateInfo> constructor = Utils::OpenHandle(*templ);
1695 static i::Handle<i::InterceptorInfo> CreateInterceptorInfo(
1704 auto obj = i::Handle<i::InterceptorInfo>::cast(
1782 i::Handle<i::Struct> struct_info =
1784 i::Handle<i::AccessCheckInfo> info =
1785 i::Handle<i::AccessCheckInfo>::cast(struct_info);
1812 i::Handle<i::Struct> struct_info =
1814 i::Handle<i::AccessCheckInfo> info =
1815 i::Handle<i::AccessCheckInfo>::cast(struct_info);
1861 i::Handle<i::Struct> struct_obj =
1863 i::Handle<i::CallHandlerInfo> obj =
1864 i::Handle<i::CallHandlerInfo>::cast(struct_obj);
1948 i::Handle<i::HeapObject> obj =
1949 i::Handle<i::HeapObject>::cast(Utils::OpenHandle(this));
1951 i::Handle<i::SharedFunctionInfo> function_info(
1953 i::Handle<i::JSFunction> function =
1961 i::Handle<i::HeapObject> obj =
1962 i::Handle<i::HeapObject>::cast(Utils::OpenHandle(this));
1966 i::Handle<i::SharedFunctionInfo> function_info(
1968 i::Handle<i::Script> script(i::Script::cast(function_info->script()));
1974 i::Handle<i::SharedFunctionInfo> obj =
1975 i::Handle<i::SharedFunctionInfo>::cast(Utils::OpenHandle(this));
1979 i::Handle<i::Script> script(i::Script::cast(obj->script()));
1988 i::Handle<i::SharedFunctionInfo> obj =
1989 i::Handle<i::SharedFunctionInfo>::cast(Utils::OpenHandle(this));
1994 return Utils::ToLocal(i::Handle<i::Object>(name, isolate));
2002 i::Handle<i::SharedFunctionInfo> obj =
2003 i::Handle<i::SharedFunctionInfo>::cast(Utils::OpenHandle(this));
2008 return Utils::ToLocal(i::Handle<i::Object>(url, isolate));
2016 i::Handle<i::SharedFunctionInfo> obj =
2017 i::Handle<i::SharedFunctionInfo>::cast(Utils::OpenHandle(this));
2022 return Utils::ToLocal(i::Handle<i::Object>(url, isolate));
2036 auto fun = i::Handle<i::JSFunction>::cast(Utils::OpenHandle(this));
2038 i::Handle<i::Object> receiver = isolate->global_proxy();
2059 i::Handle<i::Object> obj = Utils::OpenHandle(this);
2061 i::Handle<i::SharedFunctionInfo>(i::JSFunction::cast(*obj)->shared()));
2065 i::Handle<i::Module> self = Utils::OpenHandle(this);
2071 i::Handle<i::Module> self = Utils::OpenHandle(this);
2073 i::Handle<i::FixedArray> module_requests(self->info()->module_requests(),
2076 return ToApiHandle<String>(i::handle(module_requests->get(i), isolate));
2098 i::Handle<i::Module> self = Utils::OpenHandle(this);
2129 i::Handle<i::String> str = Utils::OpenHandle(*(source->source_string));
2130 i::Handle<i::SharedFunctionInfo> result;
2134 i::Handle<i::Object> name_obj;
2135 i::Handle<i::Object> source_map_url;
2237 i::Handle<i::SharedFunctionInfo> shared = Utils::OpenHandle(*unbound);
2288 i::Handle<i::String> source_string;
2314 i::Handle<i::String> brackets;
2346 i::Handle<i::Context> context = Utils::OpenHandle(*v8_context);
2347 i::Handle<i::SharedFunctionInfo> outer_info(context->closure()->shared(),
2350 i::Handle<i::JSReceiver> extension =
2353 i::Handle<i::JSFunction> closure(context->closure(), isolate);
2358 ? i::Handle<i::ScopeInfo>::null()
2359 : i::Handle<i::ScopeInfo>(context->scope_info())),
2363 i::Handle<i::Object> name_obj;
2377 i::Handle<i::JSFunction> fun;
2390 i::Handle<i::Object> result;
2397 Utils::CallableToLocal(i::Handle<i::JSFunction>::cast(result)));
2430 i::Handle<i::String> str = Utils::OpenHandle(*(full_source_string));
2431 i::Handle<i::Script> script = isolate->factory()->NewScript(str);
2464 i::Handle<i::SharedFunctionInfo> result;
2629 return v8::Utils::ToLocal(i::Handle<i::Object>(exception, isolate_));
2641 i::Handle<i::JSObject> obj(i::JSObject::cast(raw_obj), isolate_);
2642 i::Handle<i::String> name = isolate->factory()->stack_string();
2665 return v8::Utils::MessageToLocal(i::Handle<i::Object>(message, isolate_));
2707 i::Handle<i::Object> obj = Utils::OpenHandle(this);
2708 i::Handle<i::String> raw_result = i::MessageHandler::GetMessage(isolate, obj);
2716 auto message = i::Handle<i::JSMessageObject>::cast(Utils::OpenHandle(this));
2717 auto script_wraper = i::Handle<i::Object>(message->script(), isolate);
2718 auto script_value = i::Handle<i::JSValue>::cast(script_wraper);
2719 i::Handle<i::Script> script(i::Script::cast(script_value->value()));
2733 auto message = i::Handle<i::JSMessageObject>::cast(Utils::OpenHandle(this));
2734 i::Handle<i::Object> stackFramesObj(message->stack_frames(), isolate);
2736 auto stackTrace = i::Handle<i::JSArray>::cast(stackFramesObj);
2746 auto msg = i::Handle<i::JSMessageObject>::cast(self);
2778 auto msg = i::Handle<i::JSMessageObject>::cast(self);
2795 auto msg = i::Handle<i::JSMessageObject>::cast(self);
2815 auto script = i::Handle<i::JSValue>::cast(
2816 i::Handle<i::Object>(self->script(), isolate));
2826 auto script = i::Handle<i::JSValue>::cast(
2827 i::Handle<i::Object>(self->script(), isolate));
2837 auto msg = i::Handle<i::JSMessageObject>::cast(self);
2863 auto jsobj = i::Handle<i::JSObject>::cast(obj);
2887 i::Handle<i::JSArray> stackTrace =
2900 i::Handle<i::JSObject> self = Utils::OpenHandle(f);
2901 i::Handle<i::Object> obj =
2927 i::Handle<i::JSObject> self = Utils::OpenHandle(f);
2928 i::Handle<i::Object> obj =
2955 i::Handle<i::JSObject> self = Utils::OpenHandle(f);
2956 i::Handle<i::Object> obj =
2974 i::Handle<i::JSWeakMap> weakmap = isolate->factory()->NewJSWeakMap();
2981 i::Handle<i::JSWeakMap> weak_collection = Utils::OpenHandle(this);
2985 i::Handle<i::Object> key = Utils::OpenHandle(*v8_key);
2986 i::Handle<i::Object> value = Utils::OpenHandle(*v8_value);
2991 i::Handle<i::ObjectHashTable> table(
3003 i::Handle<i::JSWeakMap> weak_collection = Utils::OpenHandle(this);
3006 i::Handle<i::Object> key = Utils::OpenHandle(*v8_key);
3011 i::Handle<i::ObjectHashTable> table(
3017 i::Handle<i::Object> lookup(table->Lookup(key), isolate);
3025 i::Handle<i::JSWeakMap> weak_collection = Utils::OpenHandle(this);
3029 i::Handle<i::Object> key = Utils::OpenHandle(*v8_key);
3034 i::Handle<i::ObjectHashTable> table(
3040 i::Handle<i::Object> lookup(table->Lookup(key), isolate);
3046 i::Handle<i::JSWeakMap> weak_collection = Utils::OpenHandle(this);
3050 i::Handle<i::Object> key = Utils::OpenHandle(*v8_key);
3055 i::Handle<i::ObjectHashTable> table(
3071 i::Handle
3072 i::Handle<i::String> source = i::String::Flatten(string);
3073 i::Handle<i::Object> undefined = isolate->factory()->undefined_value();
3086 i::Handle<i::String> string = Utils::OpenHandle(*json_string);
3087 i::Handle<i::String> source = i::String::Flatten(string);
3088 i::Handle<i::Object> undefined = isolate->factory()->undefined_value();
3106 i::Handle<i::Object> object = Utils::OpenHandle(*json_object);
3107 i::Handle<i::Object> replacer = isolate->factory()->undefined_value();
3108 i::Handle<i::String> gap_string = gap.IsEmpty()
3111 i::Handle<i::Object> maybe;
3179 i::Handle<i::Object> object = Utils::OpenHandle(*value);
3348 i::Handle<i::Object> object = Utils::OpenHandle(this);
3359 i::Handle<i::Object> object = Utils::OpenHandle(this);
3370 i::Handle<i::Object> object = Utils::OpenHandle(this);
3377 i::Handle<i::Object> object = Utils::OpenHandle(this);
3409 i::Handle<i::Object> obj = Utils::OpenHandle(this);
3426 i::Handle<i::Object> obj = Utils::OpenHandle(this); \
3443 i::Handle<i::Object> obj = Utils::OpenHandle(this);
3459 i::Handle<i::Object> obj = Utils::OpenHandle(this);
3461 i::Handle<i::JSObject> js_obj = i::Handle<i::JSObject>::cast(obj);
3468 i::Handle<i::Object> obj = Utils::OpenHandle(this); \
3499 i::Handle<i::Object> obj = Utils::OpenHandle(this);
3509 i::Handle<i::Object> obj = Utils::OpenHandle(this);
3528 i::Handle<i::Object> obj = Utils::OpenHandle(this);
3533 i::Handle<i::Object> obj = Utils::OpenHandle(this);
3535 i::Handle<i::JSFunction> func = i::Handle<i::JSFunction>::cast(obj);
3540 i::Handle<i::Object> obj = Utils::OpenHandle(this);
3542 i::Handle<i::JSFunction> func = i::Handle<i::JSFunction>::cast(obj);
3581 i::Handle<i::Object> obj = Utils::OpenHandle(this);
3710 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3717 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3724 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3731 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3737 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3744 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3751 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3759 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3778 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3785 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3791 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3820 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3828 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3836 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3845 i::Handle<i::Object> obj = Utils::OpenHandle(that); \
3859 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3867 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3876 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3887 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3898 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3909 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3920 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3931 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3952 i::Handle<i::Object> num;
3973 i::Handle<i::Object> num;
3997 i::Handle<i::Object> num;
4016 i::Handle<i::Object> num;
4038 i::Handle<i::Object> string_obj;
4042 i::Handle<i::String> str = i::Handle<i::String>::cast(string_obj);
4045 i::Handle<i::Object> value;
4047 value = i::Handle<i::Object>(i::Smi::FromInt(index), isolate);
4152 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this);
4153 i::Handle<i::Name> key_obj = Utils::OpenHandle(*key);
4154 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value);
4170 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this);
4171 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value);
4279 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this);
4280 i::Handle<i::Name> key_obj = Utils::OpenHandle(*key);
4281 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value);
4299 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this);
4300 i::Handle<i::Name> key_obj = Utils::OpenHandle(*key);
4311 i::Handle<i::JSObject> js_object, i::Handle<i::Object> key,
4312 i::Handle<i::Object> value, i::PropertyAttributes attrs) {
4328 auto self = i::Handle<i::JSObject>::cast(Utils::OpenHandle(this));
4345 i::Handle<i::JSObject> self =
4346 i::Handle<i::JSObject>::cast(Utils::OpenHandle(this));
4347 i::Handle<i::Object> key_obj = Utils::OpenHandle(*key);
4348 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value);
4371 isolate, i::Handle<i::JSProxy>::cast(self),
4372 i::Handle<i::Symbol>::cast(key_obj), &desc, i::Object::DONT_THROW);
4374 auto js_object = i::Handle<i::JSObject>::cast(self);
4389 i::Handle<i::Object> result;
4406 i::Handle<i::Object> result;
4437 auto key_name = i::Handle<i::Name>::cast(key_obj);
4458 i::Handle<i::JSReceiver> obj = Utils::OpenHandle(this);
4459 i::Handle<i::String> key_name = Utils::OpenHandle(*key);
4520 return Utils::ToLocal(i::handle(iter.GetCurrent<i::JSObject>(), isolate));
4536 i::Handle<i::FixedArray> value;
4594 i::Handle<i::String> name = i::JSReceiver::GetConstructorName(self);
4646 i::Handle<i::Name> name;
4708 i::Handle<i::JSObject> obj =
4709 i::Handle<i::JSObject>::cast(Utils::OpenHandle(self));
4716 i::Handle<i::Object> result;
4768 i::Handle<i::Object> getter_i = v8::Utils::OpenHandle(*getter);
4769 i::Handle<i::Object> setter_i = v8::Utils::OpenHandle(*setter, true);
4771 i::JSObject::DefineAccessor(i::Handle<i::JSObject>::cast(self),
4810 i::Handle<i::JSObject>::cast(self), key_val);
4830 i::Handle<i::JSObject>::cast(self), index);
4851 i::Handle<i::JSObject>::cast(self), key_val);
4867 i::Handle<i::JSObject>::cast(self)->HasNamedInterceptor();
4874 i::Handle<i::JSObject>::cast(self)->HasIndexedInterceptor();
4882 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this);
4884 i::Handle<i::Name> key_obj = Utils::OpenHandle(*key);
4887 i::Handle<i::JSReceiver> proto =
4914 i::Handle
4916 i::Handle<i::Name> key_obj = Utils::OpenHandle(*key);
4919 i::Handle<i::JSReceiver> proto =
4990 auto self = i::Handle<i::JSObject>::cast(Utils::OpenHandle(this));
5033 i::Handle<i::Object>* args = reinterpret_cast<i::Handle<i::Object>*>(argv);
5059 i::Handle<i::Object>* args = reinterpret_cast<i::Handle<i::Object>*>(argv);
5110 i::Handle<i::Object>* args = reinterpret_cast<i::Handle<i::Object>*>(argv);
5134 i::Handle<i::Object> recv_obj = Utils::OpenHandle(*recv);
5136 i::Handle<i::Object>* args = reinterpret_cast<i::Handle<i::Object>*>(argv);
5155 auto func = i::Handle<i::JSFunction>::cast(self);
5164 auto func = i::Handle<i::JSBoundFunction>::cast(self);
5165 i::Handle<i::Object> name;
5172 auto func = i::Handle<i::JSFunction>::cast(self);
5173 return Utils::ToLocal(handle(func->shared()->name(), isolate));
5185 auto func = i::Handle<i::JSFunction>::cast(self);
5186 return Utils::ToLocal(i::Handle<i::Object>(func->shared()->inferred_name(),
5197 auto func = i::Handle<i::JSFunction>::cast(self);
5198 i::Handle<i::String> name = i::JSFunction::GetDebugName(func);
5199 return Utils::ToLocal(i::Handle<i::Object>(*name, name->GetIsolate()));
5210 auto func = i::Handle<i::JSFunction>::cast(self);
5211 i::Handle<i::String> property_name =
5213 i::Handle<i::Object> value =
5216 i::Handle<i::String> name = i::Handle<i::String>::cast(value);
5228 auto func = i::Handle<i::JSFunction>::cast(self);
5230 i::Handle<i::Script> script(i::Script::cast(func->shared()->script()));
5245 auto func = i::Handle<i::JSFunction>::cast(self);
5247 i::Handle<i::Script> script(i::Script::cast(func->shared()->script()));
5259 auto func = i::Handle<i::JSFunction>::cast(self);
5261 i::Handle<i::Script> script(i::Script::cast(func->shared()->script()));
5273 auto func = i::Handle<i::JSFunction>::cast(self);
5283 auto func = i::Handle<i::JSFunction>::cast(self);
5287 i::Handle<i::Script> script(i::Script::cast(func->shared()->script()));
5295 auto bound_function = i::Handle<i::JSBoundFunction>::cast(self);
5296 auto bound_target_function = i::handle(
5311 i::Handle<i::String> str = Utils::OpenHandle(this);
5317 i::Handle<i::String> str = Utils::OpenHandle(this);
5432 i::Handle<i::String> str = Utils::OpenHandle(this);
5632 i::Handle<i::String> str = Utils::OpenHandle(this);
5842 i::Handle<i::String> str = Utils::OpenHandle(this);
5899 i::Handle<i::String> str = Utils::OpenHandle(string);
5935 i::Handle<i::String> str = Utils::OpenHandle(this);
5941 i::Handle<i::String> str = Utils::OpenHandle(this);
5948 i::Handle<i::String> str = Utils::OpenHandle(this);
5952 i::Handle<i::ExternalTwoByteString>::cast(str)->resource();
5962 i::Handle<i::String> str = Utils::OpenHandle(this);
5967 i::Handle<i::ExternalOneByteString>::cast(str)->resource();
5972 i::Handle<i::ExternalTwoByteString>::cast(str)->resource();
5986 i::Handle<i::String> str = Utils::OpenHandle(this);
5989 i::Handle<i::ExternalOneByteString>::cast(str)->resource();
5998 i::Handle<i::Symbol> sym = Utils::OpenHandle(this);
5999 i::Handle<i::Object> name(sym->name(), sym->GetIsolate());
6010 i::Handle<i::Object> obj = Utils::OpenHandle(this);
6016 i::Handle<i::Object> obj = Utils::OpenHandle(this);
6022 i::Handle<i::Object> obj = Utils::OpenHandle(this);
6032 i::Handle<i::Object> obj = Utils::OpenHandle(this);
6042 i::Handle<i::Object> obj = Utils::OpenHandle(this);
6052 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this);
6054 return i::Handle<i::JSObject>::cast(self)->GetInternalFieldCount();
6058 static bool InternalFieldOK(i::Handle<i::JSReceiver> obj, int index,
6062 (index < i::Handle<i::JSObject>::cast(obj)->GetInternalFieldCount()),
6068 i::Handle<i::JSReceiver> obj = Utils::OpenHandle(this);
6071 i::Handle<i::Object> value(
6072 i::Handle<i::JSObject>::cast(obj)->GetInternalField(index),
6079 i::Handle<i::JSReceiver> obj = Utils::OpenHandle(this);
6082 i::Handle<i::Object> val = Utils::OpenHandle(*value);
6083 i::Handle<i::JSObject>::cast(obj)->SetInternalField(index, *val);
6088 i::Handle<i::JSReceiver> obj = Utils::OpenHandle(this);
6092 i::Handle<i::JSObject>::cast(obj)->GetInternalField(index), location);
6096 i::Handle<i::JSReceiver> obj = Utils::OpenHandle(this);
6099 i::Handle<i::JSObject>::cast(obj)
6106 i::Handle<i::JSReceiver> obj = Utils::OpenHandle(this);
6231 i::Handle<i::Context> Invoke(
6244 i::Handle<i::JSGlobalProxy> Invoke(
6257 static i::Handle<ObjectType> CreateEnvironment(
6262 i::Handle<ObjectType> result;
6267 i::Handle<i::FunctionTemplateInfo> proxy_constructor;
6268 i::Handle<i::FunctionTemplateInfo> global_constructor;
6269 i::Handle<i::Object> named_interceptor(
6271 i::Handle<i::Object> indexed_interceptor(
6312 handle(global_constructor->named_property_handler(), isolate);
6319 handle(global_constructor->indexed_property_handler(), isolate);
6327 maybe_proxy = i::Handle<i::JSGlobalProxy>::cast(
6364 i::Handle<i::Context> env = CreateEnvironment<i::Context>(
6405 i::Handle<i::FunctionTemplateInfo> global_constructor =
6410 i::Handle<i::AccessCheckInfo> access_check_info = i::handle(
6416 i::Handle<i::JSGlobalProxy> global_proxy =
6427 scope.CloseAndEscape(i::Handle<i::JSObject>::cast(global_proxy)));
6431 i::Handle<i::Context> env = Utils::OpenHandle(this);
6432 i::Handle<i::Object> token_handle = Utils::OpenHandle(*token);
6438 i::Handle<i::Context> env = Utils::OpenHandle(this);
6444 i::Handle<i::Context> env = Utils::OpenHandle(this);
6447 i::Handle<i::Object> token_handle(security_token, isolate);
6453 i::Handle<i::Context> env = Utils::OpenHandle(this);
6458 i::Handle<i::Context> context = Utils::OpenHandle(this);
6460 i::Handle<i::Object> global(context->global_proxy(), isolate);
6463 if (i::Handle<i::JSGlobalProxy>::cast(
6465 global = i::Handle<i::Object>(context->global_object(), isolate);
6467 return Utils::ToLocal(i::Handle<i::JSObject>::cast(global));
6472 i::Handle<i::Context> context = Utils::OpenHandle(this);
6480 i::Handle<i::Context> context = Utils::OpenHandle(this);
6482 i::Handle<i::JSObject> binding(context->extras_binding_object(), isolate);
6488 i::Handle<i::Context> context = Utils::OpenHandle(this);
6497 i::Handle<i::Context> context = Utils::OpenHandle(this);
6504 i::Handle<i::Context> context = Utils::OpenHandle(this);
6505 i::Handle<i::String> error_handle = Utils::OpenHandle(*error);
6554 i::Handle<i::FunctionTemplateInfo> constructor =
6559 i::Handle<i::AccessCheckInfo> access_check_info = i::handle(
6564 i::Handle<i::JSObject> object;
6600 i::Handle<i::JSObject> external = i_isolate->factory()->NewExternal(value);
6681 i::Handle<i::String> handle_result = \
6741 i::Handle<i::String> left_string = Utils::OpenHandle(*left);
6745 i::Handle<i::String> right_string = Utils::OpenHandle(*right);
6747 // thrown, and return the null handle instead.
6751 i::Handle<i::String> result = isolate->factory()->NewConsString(
6768 i::Handle<i::String> string = i_isolate->factory()
6798 i::Handle<i::String> string = i_isolate->factory()
6818 i::Handle<i::String> obj = Utils::OpenHandle(this);
6842 i::Handle<i::String> obj = Utils::OpenHandle(this);
6865 i::Handle<i::String> obj = Utils::OpenHandle(this);
6884 i::Handle<i::JSObject> obj =
6894 i::Handle<i::Object> number = i_isolate->factory()->NewNumber(value);
6895 i::Handle<i::Object> obj =
6902 i::Handle<i::Object> obj = Utils::OpenHandle(this);
6903 i::Handle<i::JSValue> jsvalue = i::Handle<i::JSValue>::cast(obj);
6914 i::Handle<i::Object> boolean(value ? i_isolate->heap()->true_value()
6917 i::Handle<i::Object> obj =
6929 i::Handle<i::Object> obj = Utils::OpenHandle(this);
6930 i::Handle<i::JSValue> jsvalue = i::Handle<i::JSValue>::cast(obj);
6938 i::Handle<i::String> string = Utils::OpenHandle(*value);
6942 i::Handle<i::Object> obj =
6949 i::Handle<i::Object> obj = Utils::OpenHandle(this);
6950 i::Handle<i::JSValue> jsvalue = i::Handle<i::JSValue>::cast(obj);
6954 i::Handle<i::String>(i::String::cast(jsvalue->value())));
6962 i::Handle<i::Object> obj = i::Object::ToObject(
6969 i::Handle<i::Object> obj = Utils::OpenHandle(this);
6970 i::Handle<i::JSValue> jsvalue = i::Handle<i::JSValue>::cast(obj);
6974 i::Handle<i::Symbol>(i::Symbol::cast(jsvalue->value())));
7000 i::Handle<i::Object> obj = Utils::OpenHandle(this);
7001 i::Handle<i::JSDate> jsdate = i::Handle<i::JSDate>::cast(obj);
7017 i::Handle<i::FixedArray> date_cache_version =
7018 i::Handle<i::FixedArray>::cast(i_isolate->eternal_handles()->GetSingleton(
7050 i::Handle<i::JSRegExp> obj = Utils::OpenHandle(this);
7051 return Utils::ToLocal(i::Handle<i::String>(obj->Pattern()));
7068 i::Handle<i::JSRegExp> obj = Utils::OpenHandle(this);
7078 i::Handle<i::JSArray> obj = i_isolate->factory()->NewJSArray(real_length);
7079 i::Handle<i::Object> length_obj =
7087 i::Handle<i::JSArray> obj = Utils::OpenHandle(this);
7105 i::Handle<i::JSObject> paragon_handle(i::JSObject::cast(paragon));
7122 i::Handle<i::JSMap> obj = i_isolate->factory()->NewJSMap();
7128 i::Handle<i::JSMap> obj = Utils::OpenHandle(this);
7146 i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key)};
7160 i::Handle<i::Object> result;
7161 i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key),
7174 i::Handle<i::Object> result;
7175 i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key)};
7187 i::Handle<i::Object> result;
7188 i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key)};
7197 i::Handle<i::JSArray> MapAsArray(i::Isolate* isolate, i::Object* table_obj,
7200 i::Handle<i::OrderedHashMap> table(i::OrderedHashMap::cast(table_obj));
7204 i::Handle<i::FixedArray> result = factory->NewFixedArray(length);
7231 i::Handle<i::JSMap> obj = Utils::OpenHandle(this);
7244 i::Handle<i::JSSet> obj = i_isolate->factory()->NewJSSet();
7250 i::Handle<i::JSSet> obj = Utils::OpenHandle(this);
7267 i::Handle<i::Object> result;
7268 i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key)};
7280 i::Handle<i::Object> result;
7281 i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key)};
7293 i::Handle<i::Object> result;
7294 i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key)};
7303 i::Handle<i::JSArray> SetAsArray(i::Isolate* isolate, i::Object* table_obj,
7306 i::Handle<i::OrderedHashSet> table(i::OrderedHashSet::cast(table_obj));
7309 i::Handle<i::FixedArray> result = factory->NewFixedArray(length);
7329 i::Handle<i::JSSet> obj = Utils::OpenHandle(this);
7339 i::Handle<i::Object> result;
7356 i::Handle<i::JSReceiver> promise = Utils::OpenHandle(this);
7365 i::Handle<i::Object> argv[] = {self, Utils::OpenHandle(*value)};
7388 i::Handle<i::Object> argv[] = {self, Utils::OpenHandle(*value),
7410 i::Handle<i::Object> argv[] = { Utils::OpenHandle(*handler) };
7411 i::Handle<i::Object> result;
7430 i::Handle<i::Object> argv[] = { Utils::OpenHandle(*handler) };
7431 i::Handle<i::Object> result;
7447 i::Handle<i::JSReceiver> promise = Utils::OpenHandle(this);
7452 i::Handle<i::JSPromise> js_promise = i::Handle<i::JSPromise>::cast(promise);
7459 i::Handle<i::JSReceiver> promise = Utils::OpenHandle(this);
7462 i::Handle<i::JSPromise> js_promise = i::Handle<i::JSPromise>::cast(promise);
7465 i::Handle<i::Object> result(js_promise->result(), isolate);
7470 i::Handle<i::JSReceiver> promise = Utils::OpenHandle(this);
7473 i::Handle<i::JSPromise> js_promise = i::Handle<i::JSPromise>::cast(promise);
7478 i::Handle<i::JSProxy> self = Utils::OpenHandle(this);
7479 i::Handle<i::JSReceiver> target(self->target());
7485 i::Handle<i::JSProxy> self = Utils::OpenHandle(this);
7486 i::Handle<i::Object> handler(self->handler(), self->GetIsolate());
7492 i::Handle<i::JSProxy> self = Utils::OpenHandle(this);
7498 i::Handle<i::JSProxy> self = Utils::OpenHandle(this);
7506 i::Handle<i::JSReceiver> target = Utils::OpenHandle(*local_target);
7507 i::Handle<i::JSReceiver> handler = Utils::OpenHandle(*local_handler);
7516 i::Handle<i::JSObject> obj =
7517 i::Handle<i::JSObject>::cast(Utils::OpenHandle(this));
7518 i::Handle<i::WasmCompiledModule> compiled_part =
7519 i::handle(i::WasmCompiledModule::cast(obj->GetInternalField(0)));
7520 i::Handle<i::String> wire_bytes(compiled_part->module_bytes());
7525 i::Handle<i::JSObject> obj =
7526 i::Handle<i::JSObject>::cast(Utils::OpenHandle(this));
7527 i::Handle<i::WasmCompiledModule> compiled_part =
7528 i::handle(i::WasmCompiledModule::cast(obj->GetInternalField(0)));
7550 i::Handle<i::FixedArray> compiled_part;
7554 i::Handle<i::WasmCompiledModule> compiled_module =
7555 handle(i::WasmCompiledModule::cast(*compiled_part));
7557 Utils::ToLocal(i::Handle<i::JSObject>::cast(
7601 i::Handle<i::JSArrayBuffer> self = Utils::OpenHandle(this);
7613 i::Handle<i::JSArrayBuffer> self = Utils::OpenHandle(this);
7623 i::Handle<i::JSArrayBuffer> obj = Utils::OpenHandle(this);
7637 i::Handle<i::JSArrayBuffer> obj = Utils::OpenHandle(this);
7646 i::Handle<i::JSArrayBuffer> obj =
7665 i::Handle<i::JSArrayBuffer> obj =
7675 i::Handle<i::JSArrayBufferView> obj = Utils::OpenHandle(this);
7676 i::Handle<i::JSArrayBuffer> buffer;
7678 i::Handle<i::JSDataView> data_view(i::JSDataView::cast(*obj));
7680 buffer = i::handle(i::JSArrayBuffer::cast(data_view->buffer()));
7690 i::Handle<i::JSArrayBufferView> self = Utils::OpenHandle(this);
7696 i::Handle<i::JSArrayBuffer> buffer(i::JSArrayBuffer::cast(self->buffer()));
7700 i::Handle<i::JSTypedArray> typed_array(i::JSTypedArray::cast(*self));
7701 i::Handle<i::FixedTypedArrayBase> fixed_array(
7712 i::Handle<i::JSArrayBufferView> self = Utils::OpenHandle(this);
7713 i::Handle<i::JSArrayBuffer> buffer(i::JSArrayBuffer::cast(self->buffer()));
7719 i::Handle<i::JSArrayBufferView> obj = Utils::OpenHandle(this);
7725 i::Handle<i::JSArrayBufferView> obj = Utils::OpenHandle(this);
7731 i::Handle<i::JSTypedArray> obj = Utils::OpenHandle(this);
7747 i::Handle<i::JSArrayBuffer> buffer = Utils::OpenHandle(*array_buffer); \
7748 i::Handle<i::JSTypedArray> obj = isolate->factory()->NewJSTypedArray( \
7767 i::Handle<i::JSArrayBuffer> buffer = \
7769 i::Handle<i::JSTypedArray> obj = isolate->factory()->NewJSTypedArray( \
7779 i::Handle<i::JSArrayBuffer> buffer = Utils::OpenHandle(*array_buffer);
7783 i::Handle<i::JSDataView> obj =
7792 i::Handle<i::JSArrayBuffer> buffer = Utils::OpenHandle(*shared_array_buffer);
7796 i::Handle<i::JSDataView> obj =
7808 i::Handle<i::JSArrayBuffer> self = Utils::OpenHandle(this);
7819 i::Handle<i::JSArrayBuffer> self = Utils::OpenHandle(this);
7829 i::Handle<i::JSArrayBuffer> obj = Utils::OpenHandle(this);
7840 i::Handle<i::JSArrayBuffer> obj =
7861 i::Handle<i::JSArrayBuffer> obj =
7874 i::Handle<i::Symbol> result = i_isolate->factory()->NewSymbol();
7882 i::Handle<i::String> i_name = Utils::OpenHandle(*name);
7890 i::Handle<i::String> i_name = Utils::OpenHandle(*name);
7928 i::Handle<i::Symbol> symbol = i_isolate->factory()->NewPrivateSymbol();
7937 i::Handle<i::String> i_name = Utils::OpenHandle(*name);
7951 i::Handle<i::Object> result = internal_isolate->factory()->NewNumber(value);
7959 return Utils::IntegerToLocal(i::Handle<i::Object>(i::Smi::FromInt(value),
7963 i::Handle<i::Object> result = internal_isolate->factory()->NewNumber(value);
7975 i::Handle<i::Object> result = internal_isolate->factory()->NewNumber(value);
8013 Handle<i::Context>(native_context));
8019 i::Handle<i::Object> calling = isolate->GetCallingNativeContext();
8021 return Utils::ToLocal(i::Handle<i::Context>::cast(calling));
8027 i::Handle<i::Object> last =
8030 return Utils::ToLocal(i::Handle<i::Context>::cast(last));
8035 i::Handle<i::Object> last;
8043 return Utils::ToLocal(i::Handle<i::Context>::cast(last));
8049 // If we're passed an empty handle, we throw an undefined exception
8063 i::Handle<i::Object>(object).location(), id);
8070 id, i::Handle<i::Object>(object).location());
8077 i::Object** parent_location = i::Handle<i::Object>(parent).location();
8080 i::Handle<i::Object>(child).location());
8494 i::Handle<i::CallHandlerInfo> callback_info =
8495 i::Handle<i::CallHandlerInfo>::cast(
8720 i::Handle<i::TemplateList> list = isolate->factory()->message_listeners();
8721 i::Handle<i::FixedArray> listener = isolate->factory()->NewFixedArray(3);
8722 i::Handle<i::Foreign> foreign =
8787 Value* value = ToApi<Value>(i::Handle<i::Object>(p));
8882 i::Handle<i::String> i_str = Utils::OpenHandle(*str);
8922 i::Handle<i::String> message = Utils::OpenHandle(*raw_message); \
8923 i::Handle<i::JSFunction> constructor = isolate->name##_function(); \
8926 i::Handle<i::Object> result(error, isolate); \
8941 i::Handle<i::Object> obj = Utils::OpenHandle(*exception);
8951 i::Handle<i::Object> obj = Utils::OpenHandle(*exception);
8959 i::Handle<i::Object> obj = Utils::OpenHandle(*exception);
8961 i::Handle<i::JSObject> js_obj = i::Handle<i::JSObject>::cast(obj);
8978 i::Handle<i::Object> i_data = i_isolate->factory()->undefined_value();
9013 i::Handle<i::Object> data_obj;
9039 i::Handle<i::Object> calling = i_isolate->GetCallingNativeContext();
9041 return Utils::ToLocal(i::Handle<i::Context>::cast(calling));
9063 i::Handle<i::Object> val = Utils::OpenHandle(*value);
9064 i::Handle<i::JSArray> result;
9165 i::Handle<i::Script> script = Utils::OpenHandle(this);
9171 i::Handle<i::FixedArray> line_ends(i::FixedArray::cast(script->line_ends()));
9183 i::Handle<i::Script> script = Utils::OpenHandle(this);
9184 i::Handle<i::Object> value(script->name(), isolate);
9187 handle_scope.CloseAndEscape(i::Handle<i::String>::cast(value)));
9193 i::Handle<i::Script> script = Utils::OpenHandle(this);
9194 i::Handle<i::Object> value(script->source_url(), isolate);
9197 handle_scope.CloseAndEscape(i::Handle<i::String>::cast(value)));
9203 i::Handle<i::Script> script = Utils::OpenHandle(this);
9204 i::Handle<i::Object> value(script->source_mapping_url(), isolate);
9207 handle_scope.CloseAndEscape(i::Handle<i::String>::cast(value)));
9213 i::Handle<i::Script> script = Utils::OpenHandle(this);
9214 i::Handle<i::Object> value(script->context_data(), isolate);
9221 i::Handle<i::Script> script = Utils::OpenHandle(this);
9222 i::Handle<i::Object> value(script->source(), isolate);
9225 handle_scope.CloseAndEscape(i::Handle<i::String>::cast(value)));
9237 int GetSmiValue(i::Handle<i::FixedArray> array, int index) {
9246 i::Handle<i::Script> script = Utils::OpenHandle(this);
9248 i::Handle<i::WasmCompiledModule> compiled_module(
9256 i::Handle<i::FixedArray> line_ends =
9257 i::Handle<i::FixedArray>::cast(i::handle(script->line_ends(), isolate));
9296 i::Handle<i::Script> script = Utils::OpenHandle(this);
9310 i::Handle<i::FixedArray> line_ends = i::Handle<i::FixedArray>::cast(
9311 i::handle(script->line_ends(), script->GetIsolate()));
9328 i::Handle<i::Script> script = Utils::OpenHandle(this);
9338 i::Handle<i::Script> script = Utils::OpenHandle(this);
9349 i::Handle<i::Script> script = Utils::OpenHandle(this);
9366 i::Handle<i::Script> script = Utils::OpenHandle(this);
9412 i::Handle<i::Script> script_handle(script, isolate);
9424 i::Handle<i::String> str = Utils::OpenHandle(*source);
9425 i::Handle<i::SharedFunctionInfo> result;
9429 str, i::Handle<i::Object>(), 0, 0, origin_options,
9430 i::Handle<i::Object>(), isolate->native_context(), NULL, &script_data,
9459 i::Handle<i::Object> object = Utils::OpenHandle(*value);
9462 return i::Handle<i::HeapObject>::cast(object)->Size();
9479 i::Handle<i::Object> object = Utils::OpenHandle(*value);
9483 i::Handle<i::JSWeakCollection>::cast(object), 0));
9486 i::Handle<i::JSMapIterator> iterator =
9487 i::Handle<i::JSMapIterator>::cast(object);
9496 i::Handle<i::JSSetIterator> it = i::Handle<i::JSSetIterator>::cast(object);
9506 i::Handle<i::JSGeneratorObject> obj = Utils::OpenHandle(this);
9509 i::Handle<i::Script> script(i::Script::cast(maybe_script), obj->GetIsolate());
9514 i::Handle<i::JSGeneratorObject> obj = Utils::OpenHandle(this);
9515 return Utils::ToLocal(handle(obj->function()));
9519 i::Handle<i::JSGeneratorObject> obj = Utils::OpenHandle(this);
9523 i::Handle<i::Script> script(i::Script::cast(maybe_script), obj->GetIsolate());
9544 i::Handle<i::String> name =
9550 i::Handle<i::String> cons = isolate->factory()->NewConsString(
9560 i::Handle<i::Script> i_script = v8::Utils::OpenHandle(*script);
9945 i::Handle<i::Object> obj = Utils::OpenHandle(*value);
9951 i::Handle<i::Object> obj =