Lines Matching defs:isolate
21 #include "src/execution/isolate-inl.h"
81 Factory::CodeBuilder::CodeBuilder(Isolate* isolate, const CodeDesc& desc,
83 : isolate_(isolate),
390 Heap* heap = isolate()->heap();
394 return Handle<HeapObject>(result, isolate());
405 return handle(result, isolate());
415 return handle(result, isolate());
424 return handle(result, isolate());
431 isolate());
432 Oddball::Initialize(isolate(), oddball, to_string, to_number, type_of, kind);
438 handle(Smi::FromInt(-1), isolate()), "undefined",
445 handle(Smi::FromInt(-1), isolate()), "undefined",
459 return handle(array, isolate());
468 Heap* heap = isolate()->heap();
481 return handle(array, isolate());
507 vector.set_maybe_optimized_code(HeapObjectReference::ClearedValue(isolate()),
517 return handle(vector, isolate());
534 return handle(array, isolate());
564 Handle<T> table(T::cast(result), isolate());
565 table->Initialize(isolate(), capacity);
591 return OrderedHashSet::Allocate(isolate(), OrderedHashSet::kInitialCapacity,
597 return OrderedHashMap::Allocate(isolate(), OrderedHashMap::kInitialCapacity,
603 return OrderedNameDictionary::Allocate(isolate(), capacity,
609 return NameDictionary::New(isolate(), at_least_space_for);
621 return handle(object, isolate());
627 DCHECK_EQ(kNullAddress, ReadOnlyRoots(isolate()).at(
630 ReadOnlyRoots roots(isolate());
641 result.Initialize(isolate(), *empty_meta_table, 0);
642 return handle(result, isolate());
667 SeqSubStringKey<SeqString> key(isolate(), string, from, length,
686 ASSIGN_RETURN_ON_EXCEPTION(isolate(), result,
709 isolate(), result,
720 isolate(), result,
758 isolate(), result,
772 isolate(), result,
791 ASSIGN_RETURN_ON_EXCEPTION(isolate(), result,
798 ASSIGN_RETURN_ON_EXCEPTION(isolate(), result,
865 return handle(result, isolate());
907 external_string.AllocateExternalPointerEntries(isolate());
911 external_string.SetResource(isolate(), nullptr);
912 isolate()->heap()->RegisterExternalString(external_string);
913 return handle(external_string, isolate());
952 return handle(String::cast(value), isolate());
972 isolate()->factory()->NewRawTwoByteString(2).ToHandleChecked();
983 if (FLAG_verify_heap) str->StringVerify(isolate());
987 str = String::Flatten(isolate(), str);
1025 str = Handle<String>(slice->parent(), isolate());
1030 str = handle(thin->actual(), isolate());
1043 return handle(slice, isolate());
1050 THROW_NEW_ERROR(isolate(), NewInvalidStringLengthError(), String);
1060 external_string.AllocateExternalPointerEntries(isolate());
1063 external_string.SetResource(isolate(), resource);
1065 isolate()->heap()->RegisterExternalString(external_string);
1067 return Handle<String>(external_string, isolate());
1074 THROW_NEW_ERROR(isolate(), NewInvalidStringLengthError(), String);
1083 string.AllocateExternalPointerEntries(isolate());
1086 string.SetResource(isolate(), resource);
1088 isolate()->heap()->RegisterExternalString(string);
1090 return Handle<ExternalTwoByteString>(string, isolate());
1094 Handle<Map> map(isolate()->native_context()->initial_string_iterator_map(),
1095 isolate());
1096 Handle<String> flat_string = String::Flatten(isolate(), string);
1116 int hash = isolate()->GenerateIdentityHash(Name::HashBits::kMax);
1127 return handle(NewSymbolInternal(allocation), isolate());
1135 return handle(symbol, isolate());
1143 return handle(symbol, isolate());
1179 context.AllocateExternalPointerEntries(isolate());
1186 context.set_microtask_queue(isolate(), nullptr);
1187 context.set_osr_code_cache(*OSROptimizedCodeCache::Empty(isolate()));
1189 return handle(context, isolate());
1197 NewContextInternal(handle(outer->script_context_map(), isolate()),
1204 return handle(context, isolate());
1211 Handle<NameToIndexHashTable> names = NameToIndexHashTable::New(isolate(), 16);
1223 isolate()->module_context_map(), Context::SizeFor(variadic_part_length),
1230 return handle(context, isolate());
1238 map = isolate()->eval_context_map();
1241 map = isolate()->function_context_map();
1253 return handle(context, isolate());
1264 isolate()->catch_context_map(), Context::SizeFor(variadic_part_length),
1271 return handle(context, isolate());
1285 NewContextInternal(isolate()->debug_evaluate_context_map(),
1296 return handle(context, isolate());
1306 isolate()->with_context_map(), Context::SizeFor(variadic_part_length),
1313 return handle(context, isolate());
1322 isolate()->block_context_map(), Context::SizeFor(variadic_part_length),
1328 return handle(context, isolate());
1335 isolate()->function_context_map(), Context::SizeFor(variadic_part_length),
1342 return handle(context, isolate());
1350 return handle(entry, isolate());
1366 return handle(info, isolate());
1379 return handle(error_stack_data, isolate());
1384 scripts = WeakArrayList::Append(isolate(), scripts,
1386 isolate()->heap()->set_script_list(*scripts);
1390 Heap* heap = isolate()->heap();
1391 int script_id = isolate()->GetNextScriptId();
1393 Handle<ArrayList> list = ArrayList::New(isolate(), 0);
1422 scripts = WeakArrayList::AddToEnd(isolate(), scripts,
1425 LOG(isolate(), ScriptEvent(Logger::ScriptEventType::kCreate, script_id));
1437 return handle(microtask, isolate());
1447 return handle(microtask, isolate());
1461 return handle(microtask, isolate());
1471 foreign.AllocateExternalPointerEntries(isolate());
1472 foreign.set_foreign_address(isolate(), addr);
1473 return handle(foreign, isolate());
1497 handle(opt_parent->wasm_type_info().supertypes(), isolate());
1514 result.AllocateExternalPointerEntries(isolate());
1515 result.set_foreign_address(isolate(), type_address);
1517 result.set_subtypes(ReadOnlyRoots(isolate()).empty_array_list());
1520 return handle(result, isolate());
1529 result.set_isolate_root(isolate()->isolate_root());
1530 result.set_native_context(*isolate()->native_context());
1541 return handle(result, isolate());
1550 result.AllocateExternalPointerEntries(isolate());
1551 result.set_foreign_address(isolate(), opt_call_target);
1554 result.set_code(*BUILTIN_CODE(isolate(), Abort));
1556 return handle(result, isolate());
1576 return handle(result, isolate());
1587 return handle(result, isolate());
1613 *BUILTIN_CODE(isolate(), Illegal),
1617 return handle(result, isolate());
1637 return handle(result, isolate());
1664 return handle(result, isolate());
1685 return handle(result, isolate());
1706 return handle(result, isolate());
1739 return handle(result, isolate());
1750 return handle(result, isolate());
1761 return handle(result, isolate());
1772 return handle(result, isolate());
1785 DependentCode::empty_dependent_code(ReadOnlyRoots(isolate())),
1793 return handle(cell, isolate());
1799 handle(Smi::FromInt(Protectors::kProtectorValid), isolate()));
1811 Heap* heap = isolate()->heap();
1827 AllocationSite::cast(New(map, AllocationType::kOld)), isolate());
1832 site->set_weak_next(isolate()->heap()->allocation_sites_list());
1833 isolate()->heap()->set_allocation_sites_list(*site);
1852 ? isolate()->heap()
1853 : isolate()->shared_isolate()->heap();
1858 isolate());
1896 map.SetInstanceDescriptors(isolate(), ro_roots.empty_descriptor_array(), 0);
1902 isolate()->counters()->maps_created()->Increment();
1903 if (FLAG_log_maps) LOG(isolate(), MapCreate(map));
1913 Handle<Map> map(source->map(), isolate());
1948 Handle<JSObject> clone(JSObject::cast(raw_clone), isolate());
1955 isolate()->heap()->WriteBarrierForRange(raw_clone, start, end);
1972 handle(FixedDoubleArray::cast(elements), isolate()));
1974 elem = *CopyFixedArray(handle(FixedArray::cast(elements), isolate()));
1985 handle(properties, isolate()), handle(properties.map(), isolate()));
1992 isolate(), handle(source->property_dictionary_swiss(), isolate()));
1995 CopyFixedArray(handle(source->property_dictionary(), isolate()));
2031 result.CopyElements(isolate(), 0, *src, 0, len, mode);
2032 return handle(result, isolate());
2049 result.CopyElements(isolate(), 0, *src, 0, old_len, mode);
2052 return handle(result, isolate());
2077 return handle(result, isolate());
2108 raw.CopyElements(isolate(), 0, *src, 0, old_len, mode);
2156 result.CopyElements(isolate(), 0, *array, 0, new_len, mode);
2157 return handle(result, isolate());
2162 return CopyArrayWithMap(array, handle(array->map(), isolate()));
2188 HandleScope scope(isolate());
2195 isolate(), constructor, template_index, arg0, arg1, arg2, SKIP_NONE));
2204 return ErrorUtils::Construct(isolate(), constructor, constructor, message,
2215 if (Protectors::IsStringLengthOverflowLookupChainIntact(isolate())) {
2216 Protectors::InvalidateStringLengthOverflowLookupChain(isolate());
2225 return NewError(isolate()->name##_function(), template_index, arg0, arg1, \
2243 Handle<NativeContext> native_context(function->native_context(), isolate());
2247 isolate());
2252 handle(native_context->generator_object_prototype_map(), isolate());
2257 isolate());
2259 new_map = handle(object_function->initial_map(), isolate());
2266 JSObject::AddProperty(isolate(), prototype, constructor_string(), function,
2276 external->AllocateExternalPointerEntries(isolate());
2277 external->set_value(isolate(), value);
2289 CHECK_NOT_NULL(isolate()->embedded_blob_code());
2290 CHECK_NE(0, isolate()->embedded_blob_code_size());
2296 isolate(), off_heap_entry,
2346 code_data_container.UpdateCodeEntryPoint(isolate(), raw_result);
2361 Heap* heap = isolate()->heap();
2374 new_code = handle(Code::cast(result), isolate());
2390 data_container->SetCodeAndEntryPoint(isolate(), *new_code);
2394 if (FLAG_verify_heap) new_code->ObjectVerify(isolate());
2421 return handle(copy, isolate());
2427 Handle<Map> map(constructor->initial_map(), isolate());
2433 NewSlowJSObjectFromMap(isolate()->slow_object_with_null_prototype_map());
2438 Handle<Map> map(isolate()->object_function()->initial_map(), isolate());
2440 Map::TransitionToPrototype(isolate(), map, null_value());
2447 Handle<Map> map(constructor->initial_map(), isolate());
2468 GlobalDictionary::New(isolate(), at_least_space_for);
2472 Handle<DescriptorArray> descs(map->instance_descriptors(isolate()),
2473 isolate());
2480 Handle<Name> name(descs->GetKey(i), isolate());
2481 Handle<Object> value(descs->GetStrongValue(i), isolate());
2484 USE(GlobalDictionary::Add(isolate(), dictionary, name, cell, d));
2489 JSGlobalObject::cast(New(map, AllocationType::kOld)), isolate());
2493 Handle<Map> new_map = Map::CopyDropDescriptors(isolate(), map);
2497 LOG(isolate(), MapDetails(raw_map));
2539 ReadOnlyRoots(isolate()).one_pointer_filler_map_word(),
2542 map.FindRootMap(isolate()).InobjectSlackTrackingStep(isolate());
2566 return handle(js_obj, isolate());
2577 object_properties = NameDictionary::New(isolate(), capacity);
2593 Handle<Map> object_map = isolate()->slow_object_with_object_prototype_map();
2595 object_map = Map::TransitionToPrototype(isolate(), object_map, prototype);
2605 JSObject::MigrateToMap(isolate(), object, object_map);
2621 HandleScope inner_scope(isolate());
2642 NativeContext native_context = isolate()->raw_native_context();
2649 NewJSObjectFromMap(handle(map, isolate()), allocation));
2669 HandleScope inner_scope(isolate());
2702 NativeContext native_context = isolate()->raw_native_context();
2703 Handle<Map> map(native_context.js_weak_map_fun().initial_map(), isolate());
2705 isolate());
2708 HandleScope scope(isolate());
2709 JSWeakCollection::Initialize(weakmap, isolate());
2715 Handle<Map> map = isolate()->js_module_namespace_map();
2730 isolate());
2736 isolate()->factory()->NewJSObjectFromMap(map));
2750 Handle<Map> map(function->initial_map(), isolate());
2761 sfi->scope_info().ModuleDescriptorInfo(), isolate());
2763 ObjectHashTable::New(isolate(), module_info->RegularExportCount());
2773 ReadOnlyRoots roots(isolate());
2781 module.set_hash(isolate()->GenerateIdentityHash(Smi::kMaxValue));
2797 return handle(module, isolate());
2803 ReadOnlyRoots roots(isolate());
2806 ObjectHashTable::New(isolate(), static_cast<int>(export_names->length()));
2813 module.set_hash(isolate()->GenerateIdentityHash(Smi::kMaxValue));
2822 return handle(module, isolate());
2827 Handle<Map> map(isolate()->native_context()->array_buffer_fun().initial_map(),
2828 isolate());
2842 backing_store = BackingStore::Allocate(isolate(), byte_length,
2846 Handle<Map> map(isolate()->native_context()->array_buffer_fun().initial_map(),
2847 isolate());
2859 isolate()->native_context()->shared_array_buffer_fun().initial_map(),
2860 isolate());
2872 Handle<Map> map(isolate()->native_context()->iterator_result_map(),
2873 isolate());
2885 Handle<Map> map(isolate()->native_context()->async_from_sync_iterator_map(),
2886 isolate());
2898 Handle<Map> map(isolate()->native_context()->js_map_map(), isolate());
2900 JSMap::Initialize(js_map, isolate());
2905 Handle<Map> map(isolate()->native_context()->js_set_map(), isolate());
2907 JSSet::Initialize(js_set, isolate());
2988 handle(isolate()->native_context()->type##_array_fun().initial_map(), \
2989 isolate()); \
3004 raw.SetOffHeapDataPtr(isolate(), buffer->backing_store(), byte_offset);
3013 Handle<Map> map(isolate()->native_context()->data_view_fun().initial_map(),
3014 isolate());
3018 isolate(), static_cast<uint8_t*>(buffer->backing_store()) + byte_offset);
3031 THROW_NEW_ERROR(isolate(),
3039 isolate(), prototype,
3040 JSReceiver::GetPrototype(isolate(), target_function), JSBoundFunction);
3043 isolate(), *target_function->GetCreationContext().ToHandleChecked());
3058 ? isolate()->bound_function_with_constructor_map()
3059 : isolate()->bound_function_without_constructor_map();
3061 map = Map::TransitionToPrototype(isolate(), map, prototype);
3083 map = Handle<Map>(isolate()->proxy_constructor_map());
3085 map = Handle<Map>(isolate()->proxy_callable_map());
3088 map = Handle<Map>(isolate()->proxy_map());
3090 DCHECK(map->prototype().IsNull(isolate()));
3093 result.initialize_properties(isolate());
3096 return handle(result, isolate());
3109 LOG(isolate(), MapDetails(raw));
3115 proxy->GetOrCreateIdentityHash(isolate());
3122 Handle<Map> map(constructor->initial_map(), isolate());
3123 Handle<Map> old_map(object->map(), isolate());
3127 isolate());
3130 map = Map::Copy(isolate(), map, "CopyAsPrototypeForJSGlobalProxy");
3133 JSObject::NotifyMapChange(old_map, map, isolate());
3134 old_map->NotifyLeafMapLayoutChange(isolate());
3189 return handle(message_obj, isolate());
3239 if (!number_string_cache()->get(hash * 2).IsUndefined(isolate()) &&
3241 int full_size = isolate()->heap()->MaxNumberToStringCacheSize();
3245 isolate()->heap()->set_number_string_cache(*new_cache);
3261 return Handle<String>(String::cast(cache.get(hash * 2 + 1)), isolate());
3292 if (!cached->IsUndefined(isolate())) return Handle<String>::cast(cached);
3316 if (!cached->IsUndefined(isolate())) return Handle<String>::cast(cached);
3329 NumberToStringCacheSet(handle(number, isolate()), hash, result);
3410 return handle(debug_info, isolate());
3419 return handle(new_break_point_info, isolate());
3428 return handle(new_break_point, isolate());
3444 return handle(info, isolate());
3460 return handle(info, isolate());
3470 return handle(promise_on_stack, isolate());
3477 Handle<Map> map = strict_mode_callee ? isolate()->strict_arguments_map()
3478 : isolate()->sloppy_arguments_map();
3479 AllocationSiteUsageContext context(isolate(), Handle<AllocationSite>(),
3481 DCHECK(!isolate()->has_pending_exception());
3483 Handle<Smi> value(Smi::FromInt(length), isolate());
3484 Object::SetProperty(isolate(), result, length_string(), value,
3489 Object::SetProperty(isolate(), result, callee_string(), callee,
3501 return handle(context->slow_object_with_object_prototype_map(), isolate());
3505 isolate());
3513 return handle(map, isolate());
3517 Handle<Map> map = Map::Create(isolate(), number_of_properties);
3530 return handle(handler, isolate());
3549 return handle(LoadHandler::cast(New(map, allocation)), isolate());
3570 return handle(StoreHandler::cast(New(map, AllocationType::kOld)), isolate());
3658 if (Name::Equals(isolate(), name, undefined_string())) {
3661 if (Name::Equals(isolate(), name, NaN_string())) return nan_value();
3662 if (Name::Equals(isolate(), name, Infinity_string())) return infinity_value();
3699 Map::SetPrototype(isolate(), map, empty_function);
3705 Map::EnsureDescriptorSlack(isolate(), map, descriptors_count);
3720 map->AppendDescriptor(isolate(), &d);
3727 Handle<Name> name = isolate()->factory()->name_string();
3728 Descriptor d = Descriptor::DataField(isolate(), name, field_index++,
3730 map->AppendDescriptor(isolate(), &d);
3736 map->AppendDescriptor(isolate(), &d);
3741 map->AppendDescriptor(isolate(), &d);
3746 map->AppendDescriptor(isolate(), &d);
3755 map->AppendDescriptor(isolate(), &d);
3759 map->instance_descriptors(isolate()).number_of_slack_descriptors());
3760 LOG(isolate(), MapDetails(*map));
3789 Map::SetPrototype(isolate(), map, empty_function);
3794 Map::EnsureDescriptorSlack(isolate(), map, descriptors_count);
3808 map->AppendDescriptor(isolate(), &d);
3814 Handle<Name> name = isolate()->factory()->name_string();
3815 Descriptor d = Descriptor::DataField(isolate(), name, field_index++,
3817 map->AppendDescriptor(isolate(), &d);
3823 map->AppendDescriptor(isolate(), &d);
3833 map->AppendDescriptor(isolate(), &d);
3837 map->instance_descriptors(isolate()).number_of_slack_descriptors());
3838 LOG(isolate(), MapDetails(*map));
3853 Map::SetPrototype(isolate(), map, empty_function);
3858 Map::EnsureDescriptorSlack(isolate(), map, 2);
3869 map->AppendDescriptor(isolate(), &d);
3876 map->AppendDescriptor(isolate(), &d);
3878 LOG(isolate(), MapDetails(*map));
3884 Handle<JSPromise>::cast(NewJSObject(isolate()->promise_function()));
3897 isolate()->RunAllPromiseHooks(PromiseHookType::kInit, promise,
3912 return handle(info, isolate());
3920 return isolate()->roots_table()[RootIndex::kempty_string] != kNullAddress;
3924 return isolate()
3933 return JSFunctionBuilder{isolate(), info, isolate()->native_context()}
3937 Factory::JSFunctionBuilder::JSFunctionBuilder(Isolate* isolate,
3940 : isolate_(isolate), sfi_(sfi), context_(context) {}
3959 Isolate* isolate = isolate_;
3975 function.initialize_properties(isolate);
3983 ReadOnlyRoots(isolate).the_hole_value(), kReleaseStore,