Lines Matching defs:object

14 #include "src/objects/property-descriptor-object.h"
32 // TODO(v8:11167) remove |context| and |object| once OrderedNameDictionary
35 TNode<Object> object,
81 TNode<Context> context, TNode<JSObject> object,
92 TNode<String> lhs = StringConstant("[object ");
178 TNode<JSObject> object = CAST(receiver);
179 TNode<FixedArrayBase> elements = LoadElements(object);
180 // If the object has elements, we treat it as slow case.
185 context, object, &if_call_runtime_with_fast_path, &if_no_properties,
203 Return(CallRuntime(Runtime::kObjectEntries, context, object));
206 Return(CallRuntime(Runtime::kObjectValues, context, object));
225 TNode<Context> context, TNode<JSObject> object,
231 TNode<Map> map = LoadMap(object);
241 // In case, we found enum_cache in object,
243 // Object.(entries/values) result array object length.
259 // we can't detect accessor of object until loop through descriptors.
260 // So if object might have accessor,
284 CSA_DCHECK(this, TaggedEqual(map, LoadMap(object)));
310 LoadPropertyFromFastObject(object, map, descriptors,
360 auto object = Parameter<Object>(Descriptor::kReceiver);
370 Branch(TaggedIsSmi(object), &to_primitive, &if_objectisnotsmi);
373 TNode<HeapObject> heap_object = CAST(object);
407 // object can have a property with that name, so return |false|.
425 Return(CallRuntime(Runtime::kObjectHasOwnProperty, context, object, key));
428 // ES #sec-object.assign
461 // ES #sec-object.keys
463 auto object = Parameter<Object>(Descriptor::kObject);
471 // Check if the {object} has a usable enum cache.
472 GotoIf(TaggedIsSmi(object), &if_slow);
474 TNode<Map> object_map = LoadMap(CAST(object));
482 // Ensure that the {object} doesn't have any elements.
484 TNode<FixedArrayBase> object_elements = LoadElements(CAST(object));
498 // The {object} has a usable enum cache, use that.
523 // The {object} doesn't have any enumerable keys.
533 CAST(CallRuntime(Runtime::kObjectKeys, context, object));
551 // https://github.com/tc39/proposal-accessible-object-hasownproperty
564 auto object = Parameter<Object>(Descriptor::kObject);
568 // ToObject can only fail when object is undefined or null.
570 Branch(IsNullOrUndefined(object), &undefined_or_null,
578 new_target, JSParameterCount(1), object, key));
581 // ES #sec-object.getOwnPropertyNames
583 auto object = Parameter<Object>(Descriptor::kObject);
592 // Take the slow path if the {object} IsCustomElementsReceiverInstanceType or
594 GotoIf(TaggedIsSmi(object), &if_slow);
596 TNode<Map> object_map = LoadMap(CAST(object));
599 TNode<FixedArrayBase> object_elements = LoadElements(CAST(object));
604 // Check if the {object} has a usable enum cache.
627 // The {object} has a usable enum cache and all own properties are
655 Runtime::kObjectGetOwnPropertyNamesTryFast, context, object));
663 // The {object} doesn't have any enumerable keys.
673 CAST(CallRuntime(Runtime::kObjectGetOwnPropertyNames, context, object));
692 auto object = UncheckedParameter<JSObject>(Descriptor::kObject);
694 GetOwnValuesOrEntries(context, object, CollectType::kValues);
698 auto object = UncheckedParameter<JSObject>(Descriptor::kObject);
700 GetOwnValuesOrEntries(context, object, CollectType::kEntries);
703 // ES #sec-object.prototype.isprototypeof
883 // If {receiver} is a proxy for a JSArray, we default to "[object Array]",
884 // otherwise we default to "[object Object]" or "[object Function]" here,
974 // We need to start with the object to see if the value was a subclass
1055 // ES #sec-object.create
1080 // Check that we have a simple object
1098 // Create a new object with the given prototype.
1153 // ES #sec-object.is
1187 auto object = Parameter<Object>(Descriptor::kObject);
1190 Return(HasProperty(context, object, key, kHasProperty));
1194 auto object = Parameter<Object>(Descriptor::kLeft);
1198 Return(InstanceOf(object, callable, context));
1202 auto object = Parameter<Object>(Descriptor::kLeft);
1209 Return(InstanceOf(object, callable, context));
1213 auto object = Parameter<Object>(Descriptor::kLeft);
1220 Return(InstanceOf(object, callable, context));
1226 auto object = Parameter<Object>(Descriptor::kRight);
1229 Return(OrdinaryHasInstance(context, constructor, object));
1309 TNode<JSReceiver> object = ToObject_Inline(context, object_input);
1319 TNode<Map> map = LoadMap(object);
1339 // object can have a property with that name, so return |undefined|.
1352 TryGetOwnProperty(context, object, object, map, instance_type,
1378 CallRuntime(Runtime::kGetOwnPropertyDescriptor, context, object, key);
1392 // TODO(v8:11167) remove remove |context| and |object| parameters once
1395 TNode<BoolT> condition, TNode<Context> context, TNode<Object> object,