Lines Matching defs:isolate
9 #include "src/execution/isolate-inl.h"
31 PropertyKey::PropertyKey(Isolate* isolate, Handle<Object> key, bool* success) {
36 *success = Object::ToName(isolate, key).ToHandle(&name_);
38 DCHECK(isolate->has_pending_exception());
48 LookupIterator::LookupIterator(Isolate* isolate, Handle<Object> receiver,
56 isolate_(isolate),
62 holder_ = GetRoot(isolate, lookup_start_object_);
142 Isolate* isolate, Handle<Object> lookup_start_object, size_t index) {
145 if (lookup_start_object->IsString(isolate) &&
150 Handle<JSFunction> constructor = isolate->string_function();
151 Handle<JSObject> result = isolate->factory()->NewJSObject(constructor);
156 lookup_start_object->GetPrototypeChainRootMap(isolate).prototype(isolate),
157 isolate);
158 if (root->IsNull(isolate)) {
159 isolate->PushStackTraceAndDie(
186 void LookupIterator::InternalUpdateProtector(Isolate* isolate,
189 if (isolate->bootstrapper()->IsActive()) return;
193 ReadOnlyRoots roots(isolate);
196 if (receiver->IsJSArray(isolate)) {
197 if (!Protectors::IsArraySpeciesLookupChainIntact(isolate)) return;
198 isolate->CountUsage(
200 Protectors::InvalidateArraySpeciesLookupChain(isolate);
202 } else if (receiver->IsJSPromise(isolate)) {
203 if (!Protectors::IsPromiseSpeciesLookupChainIntact(isolate)) return;
204 Protectors::InvalidatePromiseSpeciesLookupChain(isolate);
206 } else if (receiver->IsJSRegExp(isolate)) {
207 if (!Protectors::IsRegExpSpeciesLookupChainIntact(isolate)) return;
208 Protectors::InvalidateRegExpSpeciesLookupChain(isolate);
210 } else if (receiver->IsJSTypedArray(isolate)) {
211 if (!Protectors::IsTypedArraySpeciesLookupChainIntact(isolate)) return;
212 Protectors::InvalidateTypedArraySpeciesLookupChain(isolate);
215 if (receiver->map(isolate).is_prototype_map()) {
219 if (isolate->IsInAnyContext(*receiver,
221 if (!Protectors::IsArraySpeciesLookupChainIntact(isolate)) return;
222 isolate->CountUsage(
224 Protectors::InvalidateArraySpeciesLookupChain(isolate);
226 if (!Protectors::IsPromiseSpeciesLookupChainIntact(isolate)) return;
227 Protectors::InvalidatePromiseSpeciesLookupChain(isolate);
229 if (!Protectors::IsRegExpSpeciesLookupChainIntact(isolate)) return;
230 Protectors::InvalidateRegExpSpeciesLookupChain(isolate);
232 if (!Protectors::IsTypedArraySpeciesLookupChainIntact(isolate)) return;
233 Protectors::InvalidateTypedArraySpeciesLookupChain(isolate);
241 if (!Protectors::IsArrayIteratorLookupChainIntact(isolate)) return;
242 Protectors::InvalidateArrayIteratorLookupChain(isolate);
245 if (!Protectors::IsMapIteratorLookupChainIntact(isolate)) return;
246 Protectors::InvalidateMapIteratorLookupChain(isolate);
249 if (!Protectors::IsSetIteratorLookupChainIntact(isolate)) return;
250 Protectors::InvalidateSetIteratorLookupChain(isolate);
255 if (!Protectors::IsStringIteratorLookupChainIntact(isolate)) return;
256 Protectors::InvalidateStringIteratorLookupChain(isolate);
262 if (!Protectors::IsArraySpeciesLookupChainIntact(isolate)) return;
263 isolate->CountUsage(
265 Protectors::InvalidateArraySpeciesLookupChain(isolate);
267 if (!Protectors::IsPromiseSpeciesLookupChainIntact(isolate)) return;
268 Protectors::InvalidatePromiseSpeciesLookupChain(isolate);
270 if (!Protectors::IsRegExpSpeciesLookupChainIntact(isolate)) return;
271 Protectors::InvalidateRegExpSpeciesLookupChain(isolate);
273 if (!Protectors::IsTypedArraySpeciesLookupChainIntact(isolate)) return;
274 Protectors::InvalidateTypedArraySpeciesLookupChain(isolate);
277 if (!Protectors::IsIsConcatSpreadableLookupChainIntact(isolate)) return;
278 Protectors::InvalidateIsConcatSpreadableLookupChain(isolate);
280 if (receiver->IsJSArray(isolate)) {
281 if (!Protectors::IsArrayIteratorLookupChainIntact(isolate)) return;
282 Protectors::InvalidateArrayIteratorLookupChain(isolate);
283 } else if (receiver->IsJSSet(isolate) || receiver->IsJSSetIterator() ||
286 if (Protectors::IsSetIteratorLookupChainIntact(isolate)) {
287 Protectors::InvalidateSetIteratorLookupChain(isolate);
291 if (Protectors::IsMapIteratorLookupChainIntact(isolate)) {
292 Protectors::InvalidateMapIteratorLookupChain(isolate);
295 if (Protectors::IsMapIteratorLookupChainIntact(isolate)) {
296 Protectors::InvalidateMapIteratorLookupChain(isolate);
298 if (Protectors::IsSetIteratorLookupChainIntact(isolate)) {
299 Protectors::InvalidateSetIteratorLookupChain(isolate);
301 } else if (isolate->IsInAnyContext(
307 if (!Protectors::IsStringIteratorLookupChainIntact(isolate)) return;
308 Protectors::InvalidateStringIteratorLookupChain(isolate);
311 if (!Protectors::IsPromiseResolveLookupChainIntact(isolate)) return;
315 Protectors::InvalidatePromiseResolveLookupChain(isolate);
318 if (!Protectors::IsPromiseThenLookupChainIntact(isolate)) return;
326 if (receiver->IsJSPromise(isolate) || receiver->IsJSObjectPrototype() ||
328 Protectors::InvalidatePromiseThenLookupChain(isolate);
368 isolate());
370 isolate());
373 isolate(), dictionary, dictionary_entry(), value, property_details_);
420 isolate(), new_map, descriptor_number(), new_constness, value);
480 Handle<FixedArrayBase> elements(holder_obj->elements(isolate_), isolate());
495 Map::PrepareForDataProperty(isolate(), new_map, descriptor_number(),
521 isolate());
524 isolate(), dictionary, dictionary_entry(), value, details);
532 holder_obj->property_dictionary_swiss(isolate_), isolate());
540 holder_obj->property_dictionary(isolate_), isolate());
557 holder->HeapObjectVerify(isolate());
661 Map::GetOrCreatePrototypeChainValidityCell(transition, isolate());
684 SwissNameDictionary::Add(isolate(), dictionary, name(),
693 NameDictionary::Add(isolate(), dictionary, name(),
790 pair = AccessorPair::Copy(isolate(), pair);
802 receiver->JSObjectVerify(isolate());
948 if (value.IsUninitialized(isolate())) {
975 if (current_value.IsUninitialized(isolate()) || current_value == value) {
992 if (value.IsUninitialized(isolate())) {
1008 if (current_value.IsUninitialized(isolate()) || current_value == value) {
1282 number_ = dict.FindEntry(isolate(), name_);
1363 number_ = dict.FindEntry(isolate(), *name_);
1368 number_ = dict.FindEntry(isolate(), name_);
1423 isolate(), accessor_pair->getter(isolate_));
1435 Isolate* isolate, FixedArray array_elements, ElementsKind elements_kind,
1439 CHECK_EQ(array_elements.map(), ReadOnlyRoots(isolate).fixed_cow_array_map());
1459 Object result = array_elements.get(isolate, static_cast<int>(index));
1472 if (result == ReadOnlyRoots(isolate).the_hole_value()) return {};
1480 Object* result_out, Isolate* isolate, LocalIsolate* local_isolate,
1508 Object result = elements_fixed_array.get(isolate, static_cast<int>(index));
1510 result == ReadOnlyRoots(isolate).the_hole_value()) {
1530 static_cast<String*>(result_out), isolate, local_isolate,
1544 String* result_out, Isolate* isolate, LocalIsolate* local_isolate,
1550 Map string_map = string.map(isolate, kAcquireLoad);
1563 charcode = string.Get(static_cast<int>(index), PtrComprCageBase(isolate),
1569 Object value = isolate->factory()->single_character_string_cache()->get(
1571 if (value == ReadOnlyRoots(isolate).undefined_value()) return kGaveUp;
1579 Isolate* isolate, LocalIsolate* local_isolate,
1589 dict.TryFindPropertyCellForConcurrentLookupIterator(isolate, name,
1599 isolate, AccessorPair::cast(maybe_accessor_pair)
1600 .getter(isolate, kAcquireLoad));
1604 isolate, handle(*maybe_cached_property_name, local_isolate),