Lines Matching refs:isolate_
261 : isolate_(isolate),
434 HeapObject::cast(*object).map(isolate_).instance_type();
457 : handle(JSArrayBuffer::cast(view->buffer()), isolate_));
466 return WriteSharedObject(String::Share(isolate_, string));
516 string = String::Flatten(isolate_, string);
558 STACK_CHECK(isolate_, Nothing<bool>());
560 HandleScope scope(isolate_);
577 if (JSObject::GetEmbedderFieldCount(js_object->map(isolate_))) {
611 auto enabled_features = wasm::WasmFeatures::FromIsolate(isolate_);
628 object->HasFastProperties(isolate_) && object->elements().length() == 0;
631 Handle<Map> map(object->map(), isolate_);
639 Handle<Name> key(map->instance_descriptors(isolate_).GetKey(i), isolate_);
640 if (!key->IsString(isolate_)) continue;
641 PropertyDetails details = map->instance_descriptors(isolate_).GetDetails(i);
650 value = JSObject::FastPropertyAt(isolate_, object,
656 LookupIterator it(isolate_, object, key, LookupIterator::OWN);
689 PtrComprCageBase cage_base(isolate_);
732 Handle<Object> old_length(array->length(cage_base), isolate_);
740 FixedArray::cast(array->elements()).get(cage_base, i), isolate_);
755 LookupIterator it(isolate_, array, i, array, LookupIterator::OWN);
809 PtrComprCageBase cage_base(isolate_);
813 if (inner_value.IsTrue(isolate_)) {
815 } else if (inner_value.IsFalse(isolate_)) {
825 WriteString(handle(String::cast(inner_value), isolate_));
837 WriteString(handle(regexp->source(), isolate_));
843 Handle<OrderedHashMap> table(OrderedHashMap::cast(js_map->table()), isolate_);
845 Handle<FixedArray> entries = isolate_->factory()->NewFixedArray(length);
850 Oddball the_hole = ReadOnlyRoots(isolate_).the_hole_value();
864 if (!WriteObject(handle(entries->get(i), isolate_)).FromMaybe(false)) {
875 Handle<OrderedHashSet> table(OrderedHashSet::cast(js_set->table()), isolate_);
877 Handle<FixedArray> entries = isolate_->factory()->NewFixedArray(length);
882 Oddball the_hole = ReadOnlyRoots(isolate_).the_hole_value();
895 if (!WriteObject(handle(entries->get(i), isolate_)).FromMaybe(false)) {
912 v8::Isolate* v8_isolate = reinterpret_cast<v8::Isolate*>(isolate_);
915 RETURN_VALUE_IF_SCHEDULED_EXCEPTION(isolate_, Nothing<bool>());
946 return WriteHostObject(handle(view, isolate_));
977 isolate_, error, isolate_->factory()->message_string(), &message_desc);
981 isolate_, error, isolate_->factory()->cause_string(), &cause_desc);
986 if (!JSObject::GetProperty(isolate_, error, "name").ToHandle(&name_object)) {
990 if (!Object::ToString(isolate_, name_object).ToHandle(&name)) {
1014 if (!Object::ToString(isolate_, message_desc.value()).ToHandle(&message)) {
1030 if (!Object::GetProperty(isolate_, error, isolate_->factory()->stack_string())
1057 reinterpret_cast<v8::Isolate*>(isolate_),
1060 RETURN_VALUE_IF_SCHEDULED_EXCEPTION(isolate_, Nothing<bool>());
1080 return WriteJSReceiver(Handle<JSReceiver>(object->array_buffer(), isolate_));
1090 v8::Isolate* v8_isolate = reinterpret_cast<v8::Isolate*>(isolate_);
1093 RETURN_VALUE_IF_SCHEDULED_EXCEPTION(isolate_, Nothing<bool>());
1103 isolate_->Throw(*isolate_->factory()->NewError(
1104 isolate_->error_function(), MessageTemplate::kDataCloneError, object));
1107 v8::Isolate* v8_isolate = reinterpret_cast<v8::Isolate*>(isolate_);
1110 RETURN_VALUE_IF_SCHEDULED_EXCEPTION(isolate_, Nothing<bool>());
1122 Handle<Object> key(keys->get(i), isolate_);
1124 PropertyKey lookup_key(isolate_, key);
1125 LookupIterator it(isolate_, object, lookup_key, LookupIterator::OWN);
1153 isolate_->factory()->empty_string());
1158 Handle<String> message = MessageFormatter::Format(isolate_, index, arg0);
1162 isolate_->Throw(
1163 *isolate_->factory()->NewError(isolate_->error_function(), message));
1165 if (isolate_->has_scheduled_exception()) {
1166 isolate_->PromoteScheduledException();
1174 : isolate_(isolate),
1180 ReadOnlyRoots(isolate_).empty_fixed_array())) {}
1184 : isolate_(isolate),
1190 ReadOnlyRoots(isolate_).empty_fixed_array())) {}
1206 isolate_->Throw(*isolate_->factory()->NewError(
1376 array_buffer_transfer_map_ = isolate_->global_handles()->Create(
1377 *SimpleNumberDictionary::New(isolate_, 0));
1382 isolate_, dictionary, transfer_id, array_buffer);
1386 isolate_->global_handles()->Create(*new_dictionary);
1402 !isolate_->has_pending_exception()) {
1408 if (result.is_null() && !isolate_->has_pending_exception()) {
1409 isolate_->Throw(*isolate_->factory()->NewError(
1417 DisallowJavascriptExecution no_js(isolate_);
1419 STACK_CHECK(isolate_, MaybeHandle<Object>());
1434 !isolate_->has_pending_exception()) {
1435 isolate_->Throw(*isolate_->factory()->NewError(
1451 return isolate_->factory()->undefined_value();
1453 return isolate_->factory()->null_value();
1455 return isolate_->factory()->true_value();
1457 return isolate_->factory()->false_value();
1461 return isolate_->factory()->NewNumberFromInt(number.FromJust());
1466 return isolate_->factory()->NewNumberFromUint(number.FromJust());
1471 return isolate_->factory()->NewNumber(number.FromJust());
1548 if (!ReadObject().ToHandle(&object) || !object->IsString(isolate_)) {
1562 return BigInt::FromSerializedDigits(isolate_, bitfield, digits_storage);
1572 return isolate_->factory()->NewStringFromUtf8(
1583 return isolate_->factory()->NewStringFromOneByte(bytes, allocation);
1599 if (byte_length == 0) return isolate_->factory()->empty_string();
1601 if (!isolate_->factory()
1665 STACK_CHECK(isolate_, MaybeHandle<JSObject>());
1668 HandleScope scope(isolate_);
1670 isolate_->factory()->NewJSObject(isolate_->object_function());
1688 STACK_CHECK(isolate_, MaybeHandle<JSArray>());
1694 HandleScope scope(isolate_);
1696 isolate_->factory()->NewJSArray(0, TERMINAL_FAST_ELEMENTS_KIND);
1717 STACK_CHECK(isolate_, MaybeHandle<JSArray>());
1730 HandleScope scope(isolate_);
1731 Handle<JSArray> array = isolate_->factory()->NewJSArray(
1735 Handle<FixedArray> elements(FixedArray::cast(array->elements()), isolate_);
1750 if (version_ < 11 && element->IsUndefined(isolate_)) continue;
1778 if (!JSDate::New(isolate_->date_function(), isolate_->date_function(), value)
1793 isolate_->factory()->NewJSObject(isolate_->boolean_function()));
1794 value->set_value(ReadOnlyRoots(isolate_).true_value());
1798 isolate_->factory()->NewJSObject(isolate_->boolean_function()));
1799 value->set_value(ReadOnlyRoots(isolate_).false_value());
1805 isolate_->factory()->NewJSObject(isolate_->number_function()));
1806 Handle<Object> number_object = isolate_->factory()->NewNumber(number);
1815 isolate_->factory()->NewJSObject(isolate_->bigint_function()));
1824 isolate_->factory()->NewJSObject(isolate_->string_function()));
1852 !JSRegExp::New(isolate_, pattern, static_cast<JSRegExp::Flags>(raw_flags))
1863 STACK_CHECK(isolate_, MaybeHandle<JSMap>());
1865 HandleScope scope(isolate_);
1867 Handle<JSMap> map = isolate_->factory()->NewJSMap();
1870 Handle<JSFunction> map_set = isolate_->map_set();
1885 AllowJavascriptExecution allow_js(isolate_);
1886 if (Execution::Call(isolate_, map_set, map, arraysize(argv), argv)
1904 STACK_CHECK(isolate_, MaybeHandle<JSSet>());
1906 HandleScope scope(isolate_);
1908 Handle<JSSet> set = isolate_->factory()->NewJSSet();
1910 Handle<JSFunction> set_add = isolate_->set_add();
1923 AllowJavascriptExecution allow_js(isolate_);
1924 if (Execution::Call(isolate_, set_add, set, arraysize(argv), argv)
1949 reinterpret_cast<v8::Isolate*>(isolate_), clone_id)
1951 RETURN_EXCEPTION_IF_SCHEDULED_EXCEPTION(isolate_, JSArrayBuffer);
1965 isolate_->factory()->NewJSArrayBufferAndBackingStore(
1986 InternalIndex index = transfer_map->FindEntry(isolate_, transfer_id);
1991 JSArrayBuffer::cast(transfer_map->ValueAt(index)), isolate_);
2021 isolate_->factory()->NewJSDataView(buffer, byte_offset, byte_length);
2040 Handle<JSTypedArray> typed_array = isolate_->factory()->NewJSTypedArray(
2078 Handle<Object> message = isolate_->factory()->undefined_value();
2079 Handle<Object> options = isolate_->factory()->undefined_value();
2080 Handle<Object> stack = isolate_->factory()->undefined_value();
2082 auto constructor = isolate_->error_function();
2092 constructor = isolate_->eval_error_function();
2095 constructor = isolate_->range_error_function();
2098 constructor = isolate_->reference_error_function();
2101 constructor = isolate_->syntax_error_function();
2104 constructor = isolate_->type_error_function();
2107 constructor = isolate_->uri_error_function();
2122 options = isolate_->factory()->NewJSObject(isolate_->object_function());
2125 isolate_->factory()->cause_string(), cause, DONT_ENUM)
2148 if (!ErrorUtils::Construct(isolate_, constructor, constructor, message,
2155 ErrorUtils::SetFormattedStack(isolate_, error, stack);
2166 ->GetWasmModuleFromId(reinterpret_cast<v8::Isolate*>(isolate_),
2169 RETURN_EXCEPTION_IF_SCHEDULED_EXCEPTION(isolate_, JSObject);
2182 auto enabled_features = wasm::WasmFeatures::FromIsolate(isolate_);
2204 WasmMemoryObject::New(isolate_, buffer, maximum_pages).ToHandleChecked();
2212 STACK_CHECK(isolate_, MaybeHandle<HeapObject>());
2217 v8::Isolate* v8_isolate = reinterpret_cast<v8::Isolate*>(isolate_);
2223 RETURN_EXCEPTION_IF_SCHEDULED_EXCEPTION(isolate_, HeapObject);
2234 STACK_CHECK(isolate_, MaybeHandle<JSObject>());
2236 v8::Isolate* v8_isolate = reinterpret_cast<v8::Isolate*>(isolate_);
2239 RETURN_EXCEPTION_IF_SCHEDULED_EXCEPTION(isolate_, JSObject);
2279 Handle<Map> map(object->map(), isolate_);
2281 DCHECK_EQ(0, map->instance_descriptors(isolate_).number_of_descriptors());
2303 TransitionsAccessor transitions(isolate_, *map);
2312 if (!ReadObject().ToHandle(&key) || !IsValidObjectKey(*key, isolate_)) {
2315 if (key->IsString(isolate_)) {
2317 isolate_->factory()->InternalizeString(Handle<String>::cast(key));
2319 transitioning = TransitionsAccessor(isolate_, *map)
2337 target->instance_descriptors(isolate_).GetDetails(descriptor);
2341 !target->instance_descriptors(isolate_)
2345 value->OptimalType(isolate_, expected_representation);
2346 MapUpdater::GeneralizeField(isolate_, target, descriptor,
2350 DCHECK(target->instance_descriptors(isolate_)
2369 PropertyKey lookup_key(isolate_, key);
2370 LookupIterator it(isolate_, object, lookup_key, LookupIterator::OWN);
2396 if (!ReadObject().ToHandle(&key) || !IsValidObjectKey(*key, isolate_)) {
2403 PropertyKey lookup_key(isolate_, key);
2404 LookupIterator it(isolate_, object, lookup_key, LookupIterator::OWN);
2415 !id_map_->get(id).IsTheHole(isolate_);
2423 if (value.IsTheHole(isolate_)) return MaybeHandle<JSReceiver>();
2425 return Handle<JSReceiver>(JSReceiver::cast(value), isolate_);
2432 FixedArray::SetAndGrow(isolate_, id_map_, id, object);
2437 id_map_ = isolate_->global_handles()->Create(*new_array);
2477 HandleScope scope(isolate_);
2493 isolate_->Throw(*isolate_->factory()->NewError(
2501 isolate_->factory()->NewJSObject(isolate_->object_function());
2504 isolate_, js_object, &stack[begin_properties], num_properties)
2506 ThrowDeserializationExceptionIfNonePending(isolate_);
2523 isolate_->Throw(*isolate_->factory()->NewError(
2529 isolate_->factory()->NewJSArray(0, TERMINAL_FAST_ELEMENTS_KIND);
2535 isolate_, js_array, &stack[begin_properties], num_properties)
2537 ThrowDeserializationExceptionIfNonePending(isolate_);
2547 isolate_->Throw(*isolate_->factory()->NewError(
2567 isolate_->Throw(*isolate_->factory()->NewError(