Home | History | Annotate | Download | only in src

Lines Matching refs:Handle

144 Local<Context> ContextFromHeapObject(i::Handle<i::Object> obj) {
196 i::Handle<i::Script> script) {
197 i::Handle<i::Object> scriptName(i::Script::GetNameOrSourceURL(script));
198 i::Handle<i::Object> source_map_url(script->source_mapping_url(), isolate);
570 i::Handle<i::Object> result = isolate->global_handles()->Create(*obj);
581 i::Handle<i::Object> result = i::GlobalHandles::CopyGlobal(obj);
758 i::Handle<i::Context> env = Utils::OpenHandle(this);
769 i::Handle<i::Context> env = Utils::OpenHandle(this);
796 static i::Handle<i::FixedArray> EmbedderDataFor(Context* context,
800 i::Handle<i::Context> env = Utils::OpenHandle(context);
807 if (!ok) return i::Handle<i::FixedArray>();
808 i::Handle<i::FixedArray> data(env->embedder_data());
811 return i::Handle<i::FixedArray>();
823 i::Handle<i::FixedArray> data = EmbedderDataFor(this, index, false, location);
825 i::Handle<i::Object> result(data->get(index), data->GetIsolate());
832 i::Handle<i::FixedArray> data = EmbedderDataFor(this, index, true, location);
834 i::Handle<i::Object> val = Utils::OpenHandle(*value);
843 i::Handle<i::FixedArray> data = EmbedderDataFor(this, index, false, location);
851 i::Handle<i::FixedArray> data = EmbedderDataFor(this, index, true, location);
868 i::Handle<i::FixedArray> elements = isolate->factory()->NewFixedArray(size);
900 void NeanderArray::add(i::Isolate* isolate, i::Handle<i::Object> value) {
905 i::Handle<i::FixedArray> new_elms = factory->NewFixedArray(2 * size);
924 static void InitializeTemplate(i::Handle<i::TemplateInfo> that, int type) {
966 i::Handle<i::FunctionTemplateInfo> info) {
975 i::Handle<i::Object> result(Utils::OpenHandle(this)->prototype_template(),
986 static void EnsureNotInstantiated(i::Handle<i::FunctionTemplateInfo> info,
1006 i::Handle<i::Struct> struct_obj =
1008 i::Handle<i::FunctionTemplateInfo> obj =
1009 i::Handle<i::FunctionTemplateInfo>::cast(struct_obj);
1076 i::Handle<i::Object> foreign = FromCData(obj->GetIsolate(), cdata); \
1089 i::Handle<i::Struct> struct_obj =
1091 i::Handle<i::CallHandlerInfo> obj =
1092 i::Handle<i::CallHandlerInfo>::cast(struct_obj);
1107 static i::Handle<i::AccessorInfo> SetAccessorInfoProperties(
1108 i::Handle<i::AccessorInfo> obj, v8::Local<Name> name,
1123 static i::Handle<i::AccessorInfo> MakeAccessorInfo(
1128 i::Handle<i::ExecutableAccessorInfo> obj =
1141 i::Handle<i::FunctionTemplateInfo> handle = Utils::OpenHandle(this, true);
1142 if (!Utils::ApiCheck(!handle.is_null(),
1144 "Reading from empty handle")) {
1147 i::Isolate* isolate = handle->GetIsolate();
1149 if (handle->instance_template()->IsUndefined()) {
1151 ObjectTemplate::New(isolate, ToApiHandle<FunctionTemplate>(handle));
1152 handle->set_instance_template(*Utils::OpenHandle(*templ));
1154 i::Handle<i::ObjectTemplateInfo> result(
1155 i::ObjectTemplateInfo::cast(handle->instance_template()));
1235 i::Handle<i::Struct> struct_obj =
1237 i::Handle<i::ObjectTemplateInfo> obj =
1238 i::Handle<i::ObjectTemplateInfo>::cast(struct_obj);
1249 static i::Handle<i::FunctionTemplateInfo> EnsureConstructor(
1255 return i::Handle<i::FunctionTemplateInfo>(info, isolate);
1259 i::Handle<i::FunctionTemplateInfo> constructor = Utils::OpenHandle(*templ);
1266 static inline i::Handle<i::TemplateInfo> GetTemplateInfo(
1274 static inline i::Handle<i::TemplateInfo> GetTemplateInfo(
1375 auto obj = i::Handle<i::InterceptorInfo>::cast(
1436 i::Handle<i::Struct> struct_info =
1438 i::Handle<i::AccessCheckInfo> info =
1439 i::Handle<i::AccessCheckInfo>::cast(struct_info);
1464 i::Handle<i::Struct> struct_info =
1466 i::Handle<i::AccessCheckInfo> info =
1467 i::Handle<i::AccessCheckInfo>::cast(struct_info);
1490 auto obj = i::Handle<i::InterceptorInfo>::cast(
1520 i::Handle<i::Struct> struct_obj =
1522 i::Handle<i::CallHandlerInfo> obj =
1523 i::Handle<i::CallHandlerInfo>::cast(struct_obj);
1598 i::Handle<i::HeapObject> obj =
1599 i::Handle<i::HeapObject>::cast(Utils::OpenHandle(this));
1600 i::Handle<i::SharedFunctionInfo>
1605 i::Handle<i::JSReceiver> global(isolate->native_context()->global_object());
1607 i::Handle<i::String> name_string(scope_info->StrongModeFreeVariableName(i));
1609 i::Handle<i::ScriptContextTable> script_context_table(
1613 i::Handle<i::Name> name(scope_info->StrongModeFreeVariableName(i));
1622 i::Handle<i::Script> script(i::Script::cast(function_info->script()));
1630 i::Handle<i::JSFunction> function =
1638 i::Handle<i::HeapObject> obj =
1639 i::Handle<i::HeapObject>::cast(Utils::OpenHandle(this));
1643 i::Handle<i::SharedFunctionInfo> function_info(
1645 i::Handle<i::Script> script(i::Script::cast(function_info->script()));
1651 i::Handle<i::SharedFunctionInfo> obj =
1652 i::Handle<i::SharedFunctionInfo>::cast(Utils::OpenHandle(this));
1656 i::Handle<i::Script> script(i::Script::cast(obj->script()));
1665 i::Handle<i::SharedFunctionInfo> obj =
1666 i::Handle<i::SharedFunctionInfo>::cast(Utils::OpenHandle(this));
1671 return Utils::ToLocal(i::Handle<i::Object>(name, isolate));
1679 i::Handle<i::SharedFunctionInfo> obj =
1680 i::Handle<i::SharedFunctionInfo>::cast(Utils::OpenHandle(this));
1685 return Utils::ToLocal(i::Handle<i::Object>(url, isolate));
1693 i::Handle<i::SharedFunctionInfo> obj =
1694 i::Handle<i::SharedFunctionInfo>::cast(Utils::OpenHandle(this));
1699 return Utils::ToLocal(i::Handle<i::Object>(url, isolate));
1710 auto fun = i::Handle<i::JSFunction>::cast(Utils::OpenHandle(this));
1711 i::Handle<i::Object> receiver(isolate->global_proxy(), isolate);
1732 i::Handle<i::Object> obj = Utils::OpenHandle(this);
1734 i::Handle<i::SharedFunctionInfo>(i::JSFunction::cast(*obj)->shared()));
1759 i::Handle<i::String> str = Utils::OpenHandle(*(source->source_string));
1760 i::Handle<i::SharedFunctionInfo> result;
1763 i::Handle<i::Object> name_obj;
1764 i::Handle<i::Object> source_map_url;
1904 i::Handle<i::String> source_string;
1945 i::Handle<i::Context> context = Utils::OpenHandle(*v8_context);
1946 i::Handle<i::SharedFunctionInfo> outer_info(context->closure()->shared(),
1949 i::Handle<i::JSReceiver> extension =
1952 i::Handle<i::JSFunction> closure(context->closure(), isolate);
1956 i::Handle<i::Object> name_obj;
1968 i::Handle<i::JSFunction> fun;
1979 i::Handle<i::Object> result;
1986 Utils::CallableToLocal(i::Handle<i::JSFunction>::cast(result)));
2015 i::Handle<i::String> str = Utils::OpenHandle(*(full_source_string));
2016 i::Handle<i::Script> script = isolate->factory()->NewScript(str);
2038 // also handle parse errors.
2043 i::Handle<i::SharedFunctionInfo> result;
2201 return v8::Utils::ToLocal(i::Handle<i::Object>(exception, isolate_));
2213 i::Handle<i::JSObject> obj(i::JSObject::cast(raw_obj), isolate_);
2214 i::Handle<i::String> name = isolate->factory()->stack_string();
2237 return v8::Utils::MessageToLocal(i::Handle<i::Object>(message, isolate_));
2279 i::Handle<i::Object> obj = Utils::OpenHandle(this);
2280 i::Handle<i::String> raw_result = i::MessageHandler::GetMessage(isolate, obj);
2288 auto message = i::Handle<i::JSMessageObject>::cast(Utils::OpenHandle(this));
2289 auto script_wraper = i::Handle<i::Object>(message->script(), isolate);
2290 auto script_value = i::Handle<i::JSValue>::cast(script_wraper);
2291 i::Handle<i::Script> script(i::Script::cast(script_value->value()));
2305 auto message = i::Handle<i::JSMessageObject>::cast(Utils::OpenHandle(this));
2306 i::Handle<i::Object> stackFramesObj(message->stack_frames(), isolate);
2308 auto stackTrace = i::Handle<i::JSArray>::cast(stackFramesObj);
2315 i::Handle<i::JSFunction> fun = isolate->message_get_line_number();
2316 i::Handle<i::Object> undefined = isolate->factory()->undefined_value();
2317 i::Handle<i::Object> args[] = {Utils::OpenHandle(this)};
2318 i::Handle<i::Object> result;
2348 i::Handle<i::JSFunction> fun = isolate->message_get_column_number();
2349 i::Handle<i::Object> undefined = isolate->factory()->undefined_value();
2350 i::Handle<i::Object> args[] = {Utils::OpenHandle(this)};
2351 i::Handle<i::Object> result;
2370 i::Handle<i::JSFunction> fun = isolate->message_get_column_number();
2371 i::Handle<i::Object> undefined = isolate->factory()->undefined_value();
2372 i::Handle<i::Object> args[] = {self};
2373 i::Handle<i::Object> result;
2395 auto script = i::Handle<i::JSValue>::cast(
2396 i::Handle<i::Object>(self->script(), isolate));
2406 auto script = i::Handle<i::JSValue>::cast(
2407 i::Handle<i::Object>(self->script(), isolate));
2414 i::Handle<i::JSFunction> fun = isolate->message_get_source_line();
2415 i::Handle<i::Object> undefined = isolate->factory()->undefined_value();
2416 i::Handle<i::Object> args[] = {Utils::OpenHandle(this)};
2417 i::Handle<i::Object> result;
2424 str = Utils::ToLocal(i::Handle<i::String>::cast(result));
2451 auto jsobj = i::Handle<i::JSObject>::cast(obj);
2475 i::Handle<i::JSArray> stackTrace =
2488 i::Handle<i::JSObject> self = Utils::OpenHandle(f);
2489 i::Handle<i::Object> obj =
2515 i::Handle<i::JSObject> self = Utils::OpenHandle(f);
2516 i::Handle<i::Object> obj =
2543 i::Handle<i::JSObject> self = Utils::OpenHandle(f);
2544 i::Handle<i::Object> obj =
2562 i::Handle<i::JSWeakMap> weakmap = isolate->factory()->NewJSWeakMap();
2569 i::Handle<i::JSWeakMap> weak_collection = Utils::OpenHandle(this);
2573 i::Handle<i::Object> key = Utils::OpenHandle(*v8_key);
2574 i::Handle<i::Object> value = Utils::OpenHandle(*v8_value);
2579 i::Handle<i::ObjectHashTable> table(
2591 i::Handle<i::JSWeakMap> weak_collection = Utils::OpenHandle(this);
2594 i::Handle<i::Object> key = Utils::OpenHandle(*v8_key);
2599 i::Handle<i::ObjectHashTable> table(
2605 i::Handle<i::Object> lookup(table->Lookup(key), isolate);
2613 i::Handle<i::JSWeakMap> weak_collection = Utils::OpenHandle(this);
2617 i::Handle<i::Object> key = Utils::OpenHandle(*v8_key);
2622 i::Handle<i::ObjectHashTable> table(
2628 i::Handle<i::Object> lookup(table->Lookup(key), isolate);
2634 i::Handle<i::JSWeakMap> weak_collection = Utils::OpenHandle(this);
2638 i::Handle<i::Object> key = Utils::OpenHandle(*v8_key);
2643 i::Handle<i::ObjectHashTable> table(
2659 i::Handle<i::String> string = Utils::OpenHandle(*json_string);
2660 i::Handle<i::String> source = i::String::Flatten(string);
2730 i::Handle<i::Object> obj = Utils::OpenHandle(this);
2747 i::Handle<i::Object> obj = Utils::OpenHandle(this); \
2764 i::Handle<i::Object> obj = Utils::OpenHandle(this);
2782 i::Handle<i::Object> obj = Utils::OpenHandle(this); \
2813 i::Handle<i::Object> obj = Utils::OpenHandle(this);
2823 i::Handle<i::Object> obj = Utils::OpenHandle(this);
2837 i::Handle<i::Object> obj = Utils::OpenHandle(this);
2839 i::Handle<i::JSObject> js_obj = i::Handle<i::JSObject>::cast(obj);
2841 i::Handle<i::Object> constructor(js_obj->map()->GetConstructor(), isolate);
2843 i::Handle<i::JSFunction> function =
2844 i::Handle<i::JSFunction>::cast(constructor);
2857 i::Handle<i::Object> obj = Utils::OpenHandle(this);
2863 i::Handle<i::Object> obj = Utils::OpenHandle(this);
2865 i::Handle<i::JSFunction> func = i::Handle<i::JSFunction>::cast(obj);
2909 i::Handle<i::Object> obj = Utils::OpenHandle(this);
2913 i::Handle<i::Object> args[] = {obj};
3045 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3052 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3059 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3067 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3075 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3083 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3091 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3099 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3119 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3127 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3134 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3161 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3169 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3177 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3186 i::Handle<i::Object> obj = Utils::OpenHandle(that); \
3200 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3208 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3217 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3228 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3239 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3250 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3261 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3272 i::Handle<i::Object> obj = Utils::OpenHandle(that);
3293 i::Handle<i::Object> num;
3310 i::Handle<i::Object> num;
3340 i::Handle<i::Object> num;
3359 i::Handle<i::Object> num;
3381 i::Handle<i::Object> string_obj;
3385 i::Handle<i::String> str = i::Handle<i::String>::cast(string_obj);
3388 i::Handle<i::Object> value;
3390 value = i::Handle<i::Object>(i::Smi::FromInt(index), isolate);
3490 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this);
3491 i::Handle<i::Name> key_obj = Utils::OpenHandle(*key);
3492 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value);
3509 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this);
3510 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value);
3527 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this);
3528 i::Handle<i::Name> key_obj = Utils::OpenHandle(*key);
3529 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value);
3532 !isolate->MayAccess(handle(isolate->context()),
3533 i::Handle<i::JSObject>::cast(self))) {
3534 isolate->ReportFailedAccessCheck(i::Handle<i::JSObject>::cast(self));
3553 i::Handle<i::JSObject> js_object, i::Handle<i::Object> key,
3554 i::Handle<i::Object> value, i::PropertyAttributes attrs) {
3569 auto self = i::Handle<i::JSObject>::cast(Utils::OpenHandle(this));
3587 i::Handle<i::JSObject> self =
3588 i::Handle<i::JSObject>::cast(Utils::OpenHandle(this));
3589 i::Handle<i::Object> key_obj = Utils::OpenHandle(*key);
3590 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value);
3612 i::Handle<i::Object> result;
3629 i::Handle<i::Object> result;
3660 auto key_name = i::Handle<i::Name>::cast(key_obj);
3682 i::Handle<i::JSReceiver> obj = Utils::OpenHandle(this);
3683 i::Handle<i::String> key_name = Utils::OpenHandle(*key);
3746 return Utils::ToLocal(i::handle(iter.GetCurrent<i::JSObject>(), isolate));
3753 i::Handle<i::FixedArray> value;
3777 i::Handle<i::FixedArray> value;
3816 i::Handle<i::String> name = i::JSReceiver::GetConstructorName(self);
3856 i::Handle<i::Name> name;
3919 i::Handle<i::JSObject> obj =
3920 i::Handle<i::JSObject>::cast(Utils::OpenHandle(self));
3926 i::Handle<i::Object> result;
3978 i::Handle<i::Object> getter_i = v8::Utils::OpenHandle(*getter);
3979 i::Handle<i::Object> setter_i = v8::Utils::OpenHandle(*setter, true);
3981 i::JSObject::DefineAccessor(i::Handle<i::JSObject>::cast(self),
4014 i::Handle<i::JSObject>::cast(self), key_val);
4034 i::Handle<i::JSObject>::cast(self), index);
4055 i::Handle<i::JSObject>::cast(self), key_val);
4071 i::Handle<i::JSObject>::cast(self)->HasNamedInterceptor();
4078 i::Handle<i::JSObject>::cast(self)->HasIndexedInterceptor();
4086 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this);
4088 i::Handle<i::Name> key_obj = Utils::OpenHandle(*key);
4091 i::Handle<i::JSReceiver> proto =
4118 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this);
4120 i::Handle<i::Name> key_obj = Utils::OpenHandle(*key);
4123 i::Handle<i::JSReceiver> proto =
4195 auto self = i::Handle<i::JSObject>::cast(Utils::OpenHandle(this));
4206 auto context = handle(self->GetCreationContext());
4224 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this);
4226 i::Handle<i::String> key_obj = Utils::OpenHandle(*key);
4227 i::Handle<i::String> key_string =
4230 i::JSObject::DeleteHiddenProperty(i::Handle<i::JSObject>::cast(self),
4234 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value);
4235 i::Handle<i::Object> result = i::JSObject::SetHiddenProperty(
4236 i::Handle<i::JSObject>::cast(self), key_string, value_obj);
4244 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this);
4246 i::Handle<i::String> key_obj = Utils::OpenHandle(*key);
4247 i::Handle<i::String> key_string =
4249 i::Handle<i::Object> result(
4250 i::Handle<i::JSObject>::cast(self)->GetHiddenProperty(key_string),
4261 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this);
4263 i::Handle<i::String> key_obj = Utils::OpenHandle(*key);
4264 i::Handle<i::String> key_string =
4266 i::JSObject::DeleteHiddenProperty(i::Handle<i::JSObject>::cast(self),
4287 i::Handle<i::Object>* args = reinterpret_cast<i::Handle<i::Object>*>(argv);
4312 i::Handle<i::Object>* args = reinterpret_cast<i::Handle<i::Object>*>(argv);
4361 i::Handle<i::Object>* args = reinterpret_cast<i::Handle<i::Object>*>(argv);
4383 i::Handle<i::Object> recv_obj = Utils::OpenHandle(*recv);
4385 i::Handle<i::Object>* args = reinterpret_cast<i::Handle<i::Object>*>(argv);
4404 auto func = i::Handle<i::JSFunction>::cast(self);
4412 auto func = i::Handle<i::JSBoundFunction>::cast(self);
4413 return Utils::ToLocal(handle(func->name(), func->GetIsolate()));
4416 auto func = i::Handle<i::JSFunction>::cast(self);
4417 return Utils::ToLocal(handle(func->shared()->name(), func->GetIsolate()));
4430 auto func = i::Handle<i::JSFunction>::cast(self);
4431 return Utils::ToLocal(i::Handle<i::Object>(func->shared()->inferred_name(),
4442 auto func = i::Handle<i::JSFunction>::cast(self);
4443 i::Handle<i::String> name = i::JSFunction::GetDebugName(func);
4444 return Utils::ToLocal(i::Handle<i::Object>(*name, name->GetIsolate()));
4455 auto func = i::Handle<i::JSFunction>::cast(self);
4456 i::Handle<i::String> property_name =
4458 i::Handle<i::Object> value =
4461 i::Handle<i::String> name = i::Handle<i::String>::cast(value);
4473 auto func = i::Handle<i::JSFunction>::cast(self);
4475 i::Handle<i::Script> script(i::Script::cast(func->shared()->script()));
4490 auto func = i::Handle<i::JSFunction>::cast(self);
4492 i::Handle<i::Script> script(i::Script::cast(func->shared()->script()));
4504 auto func = i::Handle<i::JSFunction>::cast(self);
4506 i::Handle<i::Script> script(i::Script::cast(func->shared()->script()));
4518 auto func = i::Handle<i::JSFunction>::cast(self);
4528 auto func = i::Handle<i::JSFunction>::cast(self);
4532 i::Handle<i::Script> script(i::Script::cast(func->shared()->script()));
4540 auto bound_function = i::Handle<i::JSBoundFunction>::cast(self);
4541 auto bound_target_function = i::handle(
4556 i::Handle<i::String> str = Utils::OpenHandle(this);
4562 i::Handle<i::String> str = Utils::OpenHandle(this);
4677 i::Handle<i::String> str = Utils::OpenHandle(this);
4877 i::Handle<i::String> str = Utils::OpenHandle(this);
5090 i::Handle<i::String> str = Utils::OpenHandle(this);
5144 i::Handle<i::String> str = Utils::OpenHandle(string);
5180 i::Handle<i::String> str = Utils::OpenHandle(this);
5186 i::Handle<i::String> str = Utils::OpenHandle(this);
5193 i::Handle<i::String> str = Utils::OpenHandle(this);
5197 i::Handle<i::ExternalTwoByteString>::cast(str)->resource();
5207 i::Handle<i::String> str = Utils::OpenHandle(this);
5212 i::Handle<i::ExternalOneByteString>::cast(str)->resource();
5217 i::Handle<i::ExternalTwoByteString>::cast(str)->resource();
5231 i::Handle<i::String> str = Utils::OpenHandle(this);
5234 i::Handle<i::ExternalOneByteString>::cast(str)->resource();
5243 i::Handle<i::Symbol> sym = Utils::OpenHandle(this);
5244 i::Handle<i::Object> name(sym->name(), sym->GetIsolate());
5255 i::Handle<i::Object> obj = Utils::OpenHandle(this);
5261 i::Handle<i::Object> obj = Utils::OpenHandle(this);
5267 i::Handle<i::Object> obj = Utils::OpenHandle(this);
5277 i::Handle<i::Object> obj = Utils::OpenHandle(this);
5287 i::Handle<i::Object> obj = Utils::OpenHandle(this);
5297 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this);
5299 return i::Handle<i::JSObject>::cast(self)->GetInternalFieldCount();
5303 static bool InternalFieldOK(i::Handle<i::JSReceiver> obj, int index,
5307 (index < i::Handle<i::JSObject>::cast(obj)->GetInternalFieldCount()),
5313 i::Handle<i::JSReceiver> obj = Utils::OpenHandle(this);
5316 i::Handle<i::Object> value(
5317 i::Handle<i::JSObject>::cast(obj)->GetInternalField(index),
5324 i::Handle<i::JSReceiver> obj = Utils::OpenHandle(this);
5327 i::Handle<i::Object> val = Utils::OpenHandle(*value);
5328 i::Handle<i::JSObject>::cast(obj)->SetInternalField(index, *val);
5333 i::Handle<i::JSReceiver> obj = Utils::OpenHandle(this);
5337 i::Handle<i::JSObject>::cast(obj)->GetInternalField(index), location);
5342 i::Handle<i::JSReceiver> obj = Utils::OpenHandle(this);
5345 i::Handle<i::JSObject>::cast(obj)
5443 static i::Handle<i::Context> CreateEnvironment(
5447 i::Handle<i::Context> env;
5453 i::Handle<i::FunctionTemplateInfo> proxy_constructor;
5454 i::Handle<i::FunctionTemplateInfo> global_constructor;
5484 i::Handle<i::Object> proxy = Utils::OpenHandle(*maybe_global_proxy, true);
5487 maybe_proxy = i::Handle<i::JSGlobalProxy>::cast(proxy);
5517 i::Handle<i::Context> env =
5530 i::Handle<i::Context> env = Utils::OpenHandle(this);
5531 i::Handle<i::Object> token_handle = Utils::OpenHandle(*token);
5537 i::Handle<i::Context> env = Utils::OpenHandle(this);
5543 i::Handle<i::Context> env = Utils::OpenHandle(this);
5546 i::Handle<i::Object> token_handle(security_token, isolate);
5552 i::Handle<i::Context> env = Utils::OpenHandle(this);
5558 i::Handle<i::Context> context = Utils::OpenHandle(this);
5560 i::Handle<i::Object> global(context->global_proxy(), isolate);
5563 if (i::Handle<i::JSGlobalProxy>::cast(
5565 global = i::Handle<i::Object>(context->global_object(), isolate);
5567 return Utils::ToLocal(i::Handle<i::JSObject>::cast(global));
5572 Handle<i::Context> context = Utils::OpenHandle(this);
5580 i::Handle<i::Context> context = Utils::OpenHandle(this);
5582 i::Handle<i::JSObject> binding(context->extras_binding_object(), isolate);
5588 i::Handle<i::Context> context = Utils::OpenHandle(this);
5597 i::Handle<i::Context> context = Utils::OpenHandle(this);
5603 i::Handle<i::Context> context = Utils::OpenHandle(this);
5604 i::Handle<i::String> error_handle = Utils::OpenHandle(*error);
5662 i::Handle<i::JSObject> external = i_isolate->factory()->NewExternal(value);
5740 i::Handle<i::String> result =
5807 i::Handle<i::String> left_string = Utils::OpenHandle(*left);
5811 i::Handle<i::String> right_string = Utils::OpenHandle(*right);
5813 // thrown, and return the null handle instead.
5817 i::Handle<i::String> result = isolate->factory()->NewConsString(
5833 i::Handle<i::String> string = i_isolate->factory()
5857 i::Handle<i::String> string = i_isolate->factory()
5872 i::Handle<i::String> obj = Utils::OpenHandle(this);
5896 i::Handle<i::String> obj = Utils::OpenHandle(this);
5919 i::Handle<i::String> obj = Utils::OpenHandle(this);
5941 i::Handle<i::JSObject> obj =
5951 i::Handle<i::Object> number = i_isolate->factory()->NewNumber(value);
5952 i::Handle<i::Object> obj =
5959 i::Handle<i::Object> obj = Utils::OpenHandle(this);
5960 i::Handle<i::JSValue> jsvalue = i::Handle<i::JSValue>::cast(obj);
5971 i::Handle<i::Object> boolean(value ? i_isolate->heap()->true_value()
5974 i::Handle<i::Object> obj =
5986 i::Handle<i::Object> obj = Utils::OpenHandle(this);
5987 i::Handle<i::JSValue> jsvalue = i::Handle<i::JSValue>::cast(obj);
5995 i::Handle<i::String> string = Utils::OpenHandle(*value);
5999 i::Handle<i::Object> obj =
6006 i::Handle<i::Object> obj = Utils::OpenHandle(this);
6007 i::Handle<i::JSValue> jsvalue = i::Handle<i::JSValue>::cast(obj);
6011 i::Handle<i::String>(i::String::cast(jsvalue->value())));
6019 i::Handle<i::Object> obj = i::Object::ToObject(
6026 i::Handle<i::Object> obj = Utils::OpenHandle(this);
6027 i::Handle<i::JSValue> jsvalue = i::Handle<i::JSValue>::cast(obj);
6031 i::Handle<i::Symbol>(i::Symbol::cast(jsvalue->value())));
6057 i::Handle<i::Object> obj = Utils::OpenHandle(this);
6058 i::Handle<i::JSDate> jsdate = i::Handle<i::JSDate>::cast(obj);
6074 i::Handle<i::FixedArray> date_cache_version =
6075 i::Handle<i::FixedArray>::cast(i_isolate->eternal_handles()->GetSingleton(
6107 i::Handle<i::JSRegExp> obj = Utils::OpenHandle(this);
6108 return Utils::ToLocal(i::Handle<i::String>(obj->Pattern()));
6125 i::Handle<i::JSRegExp> obj = Utils::OpenHandle(this);
6135 i::Handle<i::JSArray> obj = i_isolate->factory()->NewJSArray(real_length);
6136 i::Handle<i::Object> length_obj =
6144 i::Handle<i::JSArray> obj = Utils::OpenHandle(this);
6162 i::Handle<i::JSObject> paragon_handle(i::JSObject::cast(paragon));
6179 i::Handle<i::JSMap> obj = i_isolate->factory()->NewJSMap();
6185 i::Handle<i::JSMap> obj = Utils::OpenHandle(this);
6203 i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key)};
6217 i::Handle<i::Object> result;
6218 i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key),
6231 i::Handle<i::Object> result;
6232 i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key)};
6244 i::Handle<i::Object> result;
6245 i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key)};
6255 i::Handle<i::JSMap> obj = Utils::OpenHandle(this);
6260 i::Handle<i::OrderedHashMap> table(i::OrderedHashMap::cast(obj->table()));
6263 i::Handle<i::FixedArray> result = factory->NewFixedArray(length);
6269 i::Handle<i::JSArray> result_array =
6279 i::Handle<i::JSSet> obj = i_isolate->factory()->NewJSSet();
6285 i::Handle<i::JSSet> obj = Utils::OpenHandle(this);
6302 i::Handle<i::Object> result;
6303 i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key)};
6315 i::Handle<i::Object> result;
6316 i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key)};
6328 i::Handle<i::Object> result;
6329 i::Handle<i::Object> argv[] = {Utils::OpenHandle(*key)};
6339 i::Handle<i::JSSet> obj = Utils::OpenHandle(this);
6344 i::Handle<i::OrderedHashSet> table(i::OrderedHashSet::cast(obj->table()));
6346 i::Handle<i::FixedArray> result = factory->NewFixedArray(length);
6353 i::Handle<i::JSArray> result_array =
6361 i::Handle<i::Object> result;
6378 i::Handle<i::JSReceiver> promise = Utils::OpenHandle(this);
6387 i::Handle<i::Object> argv[] = {self, Utils::OpenHandle(*value)};
6408 i::Handle<i::Object> argv[] = {self, Utils::OpenHandle(*value)};
6431 i::Handle<i::Object> argv[] = {Utils::OpenHandle(*handler)};
6432 i::Handle<i::Object> result;
6459 i::Handle<i::Object> argv[] = { Utils::OpenHandle(*handler) };
6460 i::Handle<i::Object> result;
6479 i::Handle<i::Object> argv[] = { Utils::OpenHandle(*handler) };
6480 i::Handle<i::Object> result;
6496 i::Handle<i::JSReceiver> promise = Utils::OpenHandle(this);
6500 i::Handle<i::Symbol> key = isolate->factory()->promise_has_handler_symbol();
6506 i::Handle<i::JSProxy> self = Utils::OpenHandle(this);
6507 i::Handle<i::JSReceiver> target(self->target());
6513 i::Handle<i::JSProxy> self = Utils::OpenHandle(this);
6514 i::Handle<i::Object> handler(self->handler(), self->GetIsolate());
6520 i::Handle<i::JSProxy> self = Utils::OpenHandle(this);
6526 i::Handle<i::JSProxy> self = Utils::OpenHandle(this);
6534 i::Handle<i::JSReceiver> target = Utils::OpenHandle(*local_target);
6535 i::Handle<i::JSReceiver> handler = Utils::OpenHandle(*local_handler);
6554 i::Handle<i::JSArrayBuffer> self = Utils::OpenHandle(this);
6566 i::Handle<i::JSArrayBuffer> self = Utils::OpenHandle(this);
6576 i::Handle<i::JSArrayBuffer> obj = Utils::OpenHandle(this);
6590 i::Handle<i::JSArrayBuffer> obj = Utils::OpenHandle(this);
6599 i::Handle<i::JSArrayBuffer> obj =
6614 i::Handle<i::JSArrayBuffer> obj =
6624 i::Handle<i::JSArrayBufferView> obj = Utils::OpenHandle(this);
6625 i::Handle<i::JSArrayBuffer> buffer;
6627 i::Handle<i::JSDataView> data_view(i::JSDataView::cast(*obj));
6629 buffer = i::handle(i::JSArrayBuffer::cast(data_view->buffer()));
6639 i::Handle<i::JSArrayBufferView> self = Utils::OpenHandle(this);
6646 i::Handle<i::JSArrayBuffer> buffer(i::JSArrayBuffer::cast(self->buffer()));
6650 i::Handle<i::JSTypedArray> typed_array(i::JSTypedArray::cast(*self));
6651 i::Handle<i::FixedTypedArrayBase> fixed_array(
6662 i::Handle<i::JSArrayBufferView> self = Utils::OpenHandle(this);
6663 i::Handle<i::JSArrayBuffer> buffer(i::JSArrayBuffer::cast(self->buffer()));
6669 i::Handle<i::JSArrayBufferView> obj = Utils::OpenHandle(this);
6675 i::Handle<i::JSArrayBufferView> obj = Utils::OpenHandle(this);
6681 i::Handle<i::JSTypedArray> obj = Utils::OpenHandle(this);
6699 i::Handle<i::JSArrayBuffer> buffer = Utils::OpenHandle(*array_buffer); \
6700 i::Handle<i::JSTypedArray> obj = isolate->factory()->NewJSTypedArray( \
6720 i::Handle<i::JSArrayBuffer> buffer = \
6722 i::Handle<i::JSTypedArray> obj = isolate->factory()->NewJSTypedArray( \
6733 i::Handle<i::JSArrayBuffer> buffer = Utils::OpenHandle(*array_buffer);
6737 i::Handle<i::JSDataView> obj =
6746 i::Handle<i::JSArrayBuffer> buffer = Utils::OpenHandle(*shared_array_buffer);
6751 i::Handle<i::JSDataView> obj =
6763 i::Handle<i::JSArrayBuffer> self = Utils::OpenHandle(this);
6774 i::Handle<i::JSArrayBuffer> self = Utils::OpenHandle(this);
6784 i::Handle<i::JSArrayBuffer> obj = Utils::OpenHandle(this);
6795 i::Handle<i::JSArrayBuffer> obj =
6812 i::Handle<i::JSArrayBuffer> obj =
6825 i::Handle<i::Symbol> result = i_isolate->factory()->NewSymbol();
6831 static i::Handle<i::Symbol> SymbolFor(i::Isolate* isolate,
6832 i::Handle<i::String> name,
6833 i::Handle<i::String> part,
6835 i::Handle<i::JSObject> registry = isolate->GetSymbolRegistry();
6836 i::Handle<i::JSObject> symbols =
6837 i::Handle<i::JSObject>::cast(
6839 i::Handle<i::Object> symbol =
6847 i::Handle<i::Symbol>::cast(symbol)->set_name(*name);
6850 return i::Handle<i::Symbol>::cast(symbol);
6856 i::Handle<i::String> i_name = Utils::OpenHandle(*name);
6857 i::Handle<i::String> part = i_isolate->factory()->for_string();
6864 i::Handle<i::String> i_name = Utils::OpenHandle(*name);
6865 i::Handle<i::String> part = i_isolate->factory()->for_api_string();
6898 i::Handle<i::Symbol> symbol = i_isolate->factory()->NewPrivateSymbol();
6907 i::Handle<i::String> i_name = Utils::OpenHandle(*name);
6908 i::Handle<i::String> part = i_isolate->factory()->private_api_string();
6922 i::Handle<i::Object> result = internal_isolate->factory()->NewNumber(value);
6930 return Utils::IntegerToLocal(i::Handle<i::Object>(i::Smi::FromInt(value),
6934 i::Handle<i::Object> result = internal_isolate->factory()->NewNumber(value);
6946 i::Handle<i::Object> result = internal_isolate->factory()->NewNumber(value);
6985 return Utils::ToLocal(i::Handle<i::Context>(native_context));
6991 i::Handle<i::Object> calling = isolate->GetCallingNativeContext();
6993 return Utils::ToLocal(i::Handle<i::Context>::cast(calling));
6999 i::Handle<i::Object> last =
7002 return Utils::ToLocal(i::Handle<i::Context>::cast(last));
7009 // If we're passed an empty handle, we throw an undefined exception
7023 v8::internal::Handle<v8::internal::Object>(object).location(),
7032 v8::internal::Handle<v8::internal::Object>(object).location());
7040 v8::internal::Handle<v8::internal::Object>(parent).location();
7043 v8::internal::Handle<v8::internal::Object>(child).location());
7408 i::Handle<i::CallHandlerInfo> callback_info =
7409 i::Handle<i::CallHandlerInfo>::cast(
7572 i::Handle<i::Foreign> callback_obj(i::Foreign::cast(listener.get(0)));
7609 Value* value = ToApi<Value>(i::Handle<i::Object>(p));
7657 i::Handle<i::String> i_str = Utils::OpenHandle(*str);
7698 i::Handle<i::String> message = Utils::OpenHandle(*raw_message); \
7699 i::Handle<i::JSFunction> constructor = isolate->name##_function(); \
7702 i::Handle<i::Object> result(error, isolate); \
7717 i::Handle<i::Object> obj = Utils::OpenHandle(*exception);
7727 i::Handle<i::Object> obj = Utils::OpenHandle(*exception);
7735 i::Handle<i::Object> obj = Utils::OpenHandle(*exception);
7737 i::Handle<i::JSObject> js_obj = i::Handle<i::JSObject>::cast(obj);
7751 i::Handle<i::Object> foreign = i_isolate->factory()->undefined_value();
7810 i::Handle<i::Object> data_obj;
7838 i::Handle<i::JSObject> debug(isolate_debug->debug_context()->global_object());
7841 auto v8_fun = Utils::CallableToLocal(i::Handle<i::JSFunction>::cast(fun_obj));
7890 i::Handle<i::Object> val = Utils::OpenHandle(*value);
7891 i::Handle<i::JSArray> result;
7902 i::Handle<i::String> name =
7908 i::Handle<i::String> cons = isolate->factory()->NewConsString(
8237 i::Handle<i::Object> obj = Utils::OpenHandle(*value);
8243 i::Handle<i::Object> obj =