Home | History | Annotate | Download | only in src

Lines Matching full:jsobject

250   Handle<JSObject> boilerplate =
254 if (!should_have_fast_elements) JSObject::NormalizeElements(boilerplate);
263 JSObject::NormalizeProperties(
286 JSObject::SetOwnElement(boilerplate, element_index, value, SLOPPY);
290 maybe_result = JSObject::SetOwnPropertyIgnoreAttributes(
297 JSObject::SetOwnElement(boilerplate, element_index, value, SLOPPY);
306 maybe_result = JSObject::SetOwnPropertyIgnoreAttributes(boilerplate, name,
321 JSObject::MigrateSlowToFast(
339 Handle<JSObject>::cast(object)->map()->elements_kind();
341 JSObject::TransitionElementsKind(Handle<JSObject>::cast(object), to_kind);
419 JSObject::ValidateElements(object);
468 Handle<JSObject> boilerplate;
479 boilerplate = Handle<JSObject>::cast(raw_boilerplate);
485 JSObject::DeepWalk(boilerplate, &creation_context));
492 boilerplate = Handle<JSObject>(JSObject::cast(site->transition_info()),
498 MaybeHandle<Object> maybe_copy = JSObject::DeepCopy(
525 if (JSObject::DeepWalk(Handle<JSObject>::cast(boilerplate),
529 creation_context.ExitScope(site, Handle<JSObject>::cast(boilerplate));
540 static MaybeHandle<JSObject> CreateArrayLiteralImpl(Isolate* isolate,
546 literals_index < literals->length(), JSObject);
551 JSObject);
554 Handle<JSObject> boilerplate(JSObject::cast(site->transition_info()));
557 JSObject::DeepCopyHints hints = (flags & ArrayLiteral::kShallowElements) == 0
558 ? JSObject::kNoHints
559 : JSObject::kObjectIsShallow;
560 MaybeHandle<JSObject> copy = JSObject::DeepCopy(boilerplate, &usage_context,
575 Handle<JSObject> result;
590 Handle<JSObject> result;
635 Handle<JSObject> registry = isolate->GetSymbolRegistry();
648 JSObject::SetProperty(Handle<JSObject>::cast(privates), name, symbol,
1028 JSObject::GetElementsTransitionMap(holder, external_elements_kind);
1029 JSObject::SetMapAndElements(holder, map, elements);
1130 Handle<Map> map = JSObject::GetElementsTransitionMap(
1132 JSObject::SetMapAndElements(holder, map, elements);
1859 Handle<JSObject>::cast(PrototypeIterator::GetCurrent(iter)),
1862 Handle<JSObject>::cast(PrototypeIterator::GetCurrent(iter)),
1892 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
1898 isolate, result, JSObject::SetPrototype(obj, prototype, false));
1906 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
1920 JSObject::SetPrototype(obj, prototype, true));
1924 JSObject::EnqueueChangeRecord(obj, "setPrototype",
1933 JSObject::SetPrototype(obj, prototype, true));
1967 Handle<JSObject> obj,
1987 maybe_accessors = JSObject::GetOwnElementAccessorPair(obj, index);
1997 Maybe<PropertyAttributes> maybe = JSObject::GetPropertyAttributes(&it);
2045 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
2057 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
2060 isolate, result, JSObject::PreventExtensions(obj));
2069 CONVERT_ARG_HANDLE_CHECKED(JSObject, home_object, 1);
2072 JSObject::SetOwnPropertyIgnoreAttributes(clone, home_object_symbol,
2087 CONVERT_ARG_HANDLE_CHECKED(JSObject, home_object, 0);
2111 CONVERT_ARG_CHECKED(JSObject, obj, 0);
2116 obj = JSObject::cast(iter.GetCurrent());
2182 JSObject::MigrateToMap(Handle<JSObject>::cast(object), new_map);
2191 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0);
2197 JSObject::MigrateToMap(object, new_map);
2249 RETURN_FAILURE_ON_EXCEPTION(isolate, JSObject::SetOwnPropertyIgnoreAttributes(
2366 RETURN_FAILURE_ON_EXCEPTION(isolate, JSObject::SetOwnPropertyIgnoreAttributes(
2401 Handle<JSObject> object;
2431 object = Handle<JSObject>::cast(holder);
2434 object = handle(JSObject::cast(context->extension()));
2443 RETURN_FAILURE_ON_EXCEPTION(isolate, JSObject::SetOwnPropertyIgnoreAttributes(
2512 isolate, JSObject::SetOwnPropertyIgnoreAttributes(
2513 Handle<JSObject>::cast(holder), name, value, attr));
2522 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0);
2527 JSObject::NormalizeProperties(object, KEEP_INOBJECT_PROPERTIES, properties);
2562 Handle<JSObject> object =
2626 JSObject::SetOwnPropertyIgnoreAttributes(
2628 JSObject::SetOwnPropertyIgnoreAttributes(
2630 JSObject::SetOwnPropertyIgnoreAttributes(
2632 JSObject::SetOwnPropertyIgnoreAttributes(
2635 JSObject::SetOwnPropertyIgnoreAttributes(
2638 JSObject::SetOwnPropertyIgnoreAttributes(
2659 Handle<JSObject> holder,
2667 JSObject::AddProperty(holder, key, optimized, NONE);
2674 Handle<JSObject> holder =
3139 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0);
3147 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, JSObject::Freeze(object));
4910 // Fast cases for getting named properties of the receiver JSObject
4926 Handle<JSObject> receiver = Handle<JSObject>::cast(receiver_obj);
4951 return *JSObject::FastPropertyAt(receiver, it.representation(),
4968 // JSObject without a name key. If the key is a Smi, check for a
4974 Handle<JSObject> js_object = Handle<JSObject>::cast(receiver_obj);
5028 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0);
5038 isolate, JSObject::DefineAccessor(
5055 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
5068 isolate, JSObject::DefineAccessor(obj, name, getter, setter, attr));
5069 if (fast) JSObject::MigrateSlowToFast(obj, 0);
5083 CONVERT_ARG_HANDLE_CHECKED(JSObject, js_object, 0);
5106 JSObject::SetOwnPropertyIgnoreAttributes(
5108 JSObject::DONT_FORCE_FIELD));
5124 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0);
5126 return *JSObject::GetDataProperty(object, key);
5158 // TODO(verwaest): Support non-JSObject receivers.
5160 Handle<JSObject> js_object = Handle<JSObject>::cast(object);
5173 JSObject::ValidateElements(js_object);
5182 MaybeHandle<Object> result = JSObject::SetElement(
5184 JSObject::ValidateElements(js_object);
5192 // TODO(verwaest): Support non-JSObject receivers.
5194 Handle<JSObject> js_object = Handle<JSObject>::cast(object);
5201 return JSObject::SetElement(js_object, index, value, NONE, strict_mode,
5216 // TODO(verwaest): Support non-JSObject receivers.
5218 Handle<JSObject> js_object = Handle<JSObject>::cast(object);
5219 return JSObject::SetElement(js_object, index, value, NONE, strict_mode,
5226 MaybeHandle<Object> Runtime::DefineObjectProperty(Handle<JSObject> js_object,
5245 return JSObject::SetElement(js_object, index, value, attr,
5252 return JSObject::SetElement(js_object, index, value, attr,
5256 return JSObject::SetOwnPropertyIgnoreAttributes(js_object, name, value,
5268 return JSObject::SetElement(js_object, index, value, attr,
5271 return JSObject::SetOwnPropertyIgnoreAttributes(js_object, name, value,
5317 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0);
5321 return *JSObject::SetHiddenProperty(object, key, value);
5329 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0);
5351 JSObject::SetOwnPropertyIgnoreAttributes(object, key, value, attributes));
5360 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0);
5425 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0);
5440 isolate, result, JSObject::SetElement(object, index, value, attributes,
5451 JSObject::TransitionElementsKind(array, map->elements_kind());
5489 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0);
5517 JSObject::TransitionElementsKind(boilerplate_object, transitioned_kind);
5519 JSObject::TransitionElementsKind(object, transitioned_kind);
5529 JSObject::TransitionElementsKind(object, transitioned_kind);
5534 JSObject::TransitionElementsKind(boilerplate_object, transitioned_kind);
5587 CONVERT_ARG_HANDLE_CHECKED(JSObject, promise, 0);
5604 CONVERT_ARG_HANDLE_CHECKED(JSObject, data, 0);
5613 CONVERT_ARG_HANDLE_CHECKED(JSObject, promise, 0);
5623 CONVERT_ARG_HANDLE_CHECKED(JSObject, data, 0);
5646 Handle<JSObject> object,
5656 Handle<JSObject>::cast(PrototypeIterator::GetCurrent(iter))
5662 isolate, Handle<JSObject>::cast(PrototypeIterator::GetCurrent(iter)),
5681 Handle<JSObject> js_obj = Handle<JSObject>::cast(object);
5685 Maybe<bool> maybe = JSObject::HasRealNamedProperty(js_obj, key);
5699 Handle<JSObject>(js_obj),
5740 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0);
5796 static int OwnPrototypeChainLength(JSObject* obj) {
5815 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
5831 obj = Handle<JSObject>::cast(PrototypeIterator::GetCurrent(iter));
5844 Handle<JSObject> jsproto =
5845 Handle<JSObject>::cast(PrototypeIterator::GetCurrent(iter));
5874 Handle<JSObject> jsproto =
5875 Handle<JSObject>::cast(PrototypeIterator::GetCurrent(iter));
5899 if ((filter & STRING) == 0 && JSObject::HasHiddenProperties(jsproto)) {
5936 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
5953 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
5968 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
5971 Handle<JSObject> result;
5972 if (JSObject::GetKeysForNamedInterceptor(obj, obj).ToHandle(&result)) {
5985 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
5988 Handle<JSObject> result;
5989 if (JSObject::GetKeysForIndexedInterceptor(obj, obj).ToHandle(&result)) {
6000 CONVERT_ARG_CHECKED(JSObject, raw_object, 0);
6001 Handle<JSObject> object(raw_object);
6016 object = Handle<JSObject>::cast(PrototypeIterator::GetCurrent(iter));
6129 JSObject::MigrateSlowToFast(Handle<JSObject>::cast(object), 0);
6823 JSObject::EnsureCanContainHeapObjectElements(result);
7237 JSObject::EnsureCanContainHeapObjectElements(array);
8028 static Handle<JSObject> NewSloppyArguments(Isolate* isolate,
8032 Handle<JSObject> result =
8119 static Handle<JSObject> NewStrictArguments(Isolate* isolate,
8123 Handle<JSObject> result =
8312 JSObject::MigrateToMap(bound_function, bound_function_map);
8318 JSObject::SetOwnPropertyIgnoreAttributes(
8429 Handle<JSObject> result;
8994 CONVERT_ARG_HANDLE_CHECKED(JSObject, arguments, 2);
9221 JSObject::SetAccessor(module, info).ToHandleChecked();
9229 JSObject::SetOwnPropertyIgnoreAttributes(module, name, value, FROZEN)
9242 JSObject::PreventExtensions(module).Assert();
9277 // The slot was found in a JSObject, either a context extension object,
9280 Handle<JSObject> object = Handle<JSObject>::cast(holder);
9344 JSObject* holder) {
9441 : ComputeReceiverForNonGlobal(isolate, JSObject::cast(*object)),
9744 JSObject::EnsureCanContainHeapObjectElements(output);
9815 Handle<JSObject> result =
10018 JSObject::SetFastElement(array, length, element, SLOPPY, true));
10051 if (i > JSObject::kMaxElementCount - index_offset_) {
10082 if (JSObject::kMaxElementCount - index_offset_ < delta) {
10083 index_offset_ = JSObject::kMaxElementCount;
10105 Handle<Map> map = JSObject::GetElementsTransitionMap(
10150 // JSObject::kMaxElementCount.
10223 Handle<JSObject> receiver,
10272 static void CollectElementIndices(Handle<JSObject> object,
10367 Handle<JSObject>::cast(PrototypeIterator::GetCurrent(iter)), range,
10591 if (JSObject::kMaxElementCount - estimate_result_length <
10593 estimate_result_length = JSObject::kMaxElementCount;
10597 if (JSObject::kMaxElementCount - estimate_nof_elements <
10599 estimate_nof_elements = JSObject::kMaxElementCount;
10683 map = JSObject::GetElementsTransitionMap(array, kind);
10756 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0);
10758 return *JSObject::PrepareElementsForSort(object, limit);
10768 JSObject::ValidateElements(from);
10769 JSObject::ValidateElements(to);
10773 Handle<Map> new_map = JSObject::GetElementsTransitionMap(to, from_kind);
10774 JSObject::SetMapAndElements(to, new_map, new_elements);
10777 JSObject::ResetElements(from);
10780 JSObject::ValidateElements(to);
10832 CONVERT_ARG_HANDLE_CHECKED(JSObject, array, 0);
10840 JSObject::cast(*PrototypeIterator::GetCurrent(iter))
10846 Handle<JSObject> current =
10847 Handle<JSObject>::cast(PrototypeIterator::GetCurrent(iter));
10881 JSObject::GetAccessor(Handle<JSObject>::cast(receiver), name, component));
10950 MaybeHandle<Object> maybe_result = JSObject::GetPropertyWithAccessor(
10951 it->GetReceiver(), it->name(), it->GetHolder<JSObject>(),
10983 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
11051 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
11096 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
11102 isolate, result, JSObject::GetProperty(obj, name));
11113 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
11118 isolate, result, JSObject::GetElementWithInterceptor(obj, obj, index));
11527 // If the receiver is not a JSObject and the function is not a
11563 // Create a plain JSObject which materializes the local scope for the specified
11566 static MaybeHandle<JSObject> MaterializeStackLocalsWithFrameInspector(
11568 Handle<JSObject> target,
11590 JSObject);
11603 JSObject);
11611 Handle<JSObject> target,
11651 MUST_USE_RESULT static MaybeHandle<JSObject> MaterializeLocalContext(
11653 Handle<JSObject> target,
11667 return MaybeHandle<JSObject>();
11675 Handle<JSObject> ext(JSObject::cast(function_context->extension()));
11680 JSObject);
11688 isolate, value, Object::GetPropertyOrElement(ext, key), JSObject);
11692 JSObject);
11701 MUST_USE_RESULT static MaybeHandle<JSObject> MaterializeLocalScope(
11708 Handle<JSObject> local_scope =
11714 JSObject);
11791 Handle<JSObject> ext(JSObject::cast(function_context->extension()));
11810 // Create a plain JSObject which materializes the closure content for the
11812 MUST_USE_RESULT static MaybeHandle<JSObject> MaterializeClosure(
11820 // Allocate and initialize a JSObject with all the content of this function
11822 Handle<JSObject> closure_scope =
11828 return MaybeHandle<JSObject>();
11834 Handle<JSObject> ext(JSObject::cast(context->extension()));
11838 JSReceiver::GetKeys(ext, JSReceiver::INCLUDE_PROTOS), JSObject);
11847 isolate, value, Object::GetPropertyOrElement(ext, key), JSObject);
11851 JSObject);
11878 Handle<JSObject> ext(JSObject::cast(context->extension()));
11893 // Create a plain JSObject which materializes the scope for the specified
11895 MUST_USE_RESULT static MaybeHandle<JSObject> MaterializeCatchScope(
11902 Handle<JSObject> catch_scope =
11907 JSObject);
11926 // Create a plain JSObject which materializes the block scope for the specified
11928 MUST_USE_RESULT static MaybeHandle<JSObject> MaterializeBlockScope(
11934 // Allocate and initialize a JSObject with all the arguments, stack locals
11936 Handle<JSObject> block_scope =
11942 return MaybeHandle<JSObject>();
11949 // Create a plain JSObject which materializes the module scope for the specified
11951 MUST_USE_RESULT static MaybeHandle<JSObject> MaterializeModuleScope(
11957 // Allocate and initialize a JSObject with all the members of the debugged
11959 Handle<JSObject> module_scope =
11965 return MaybeHandle<JSObject>();
12175 MaybeHandle<JSObject> ScopeObject() {
12179 return Handle<JSObject>(CurrentContext()->global_object());
12181 // Materialize the content of the local scope into a JSObject.
12186 return Handle<JSObject>(JSObject::cast(CurrentContext()->extension()));
12190 // Materialize the content of the closure scope into a JSObject.
12198 return Handle<JSObject>();
12425 JSObject::SetElement(array, len,
12447 MUST_USE_RESULT static MaybeHandle<JSObject> MaterializeScopeDetails(
12456 Handle<JSObject> scope_object;
12458 isolate, scope_object, it->ScopeObject(), JSObject);
12498 Handle<JSObject> details;
12534 List<Handle<JSObject> > result(4);
12537 Handle<JSObject> details;
12586 Handle<JSObject> details;
12952 MUST_USE_RESULT static MaybeHandle<JSObject> MaterializeArgumentsObject(
12954 Handle<JSObject> target,
12961 if (!maybe.has_value) return MaybeHandle<JSObject>();
12965 Handle<JSObject> arguments = Handle<JSObject>::cast(
12971 JSObject);
12984 Handle<JSObject> extension = Handle<JSObject>::cast(context_extension);
13011 result = Handle<JSObject>::cast(PrototypeIterator::GetCurrent(iter));
13020 static Handle<JSObject> NewJSObjectWithNullProto(Isolate* isolate) {
13021 Handle<JSObject> result =
13025 JSObject::MigrateToMap(result, new_map);
13073 Handle<JSObject> materialized = NewJSObjectWithNullProto(isolate);
13131 Handle<JSObject> receiver(context->global_proxy());
13157 Handle<JSObject> wrapper = Script::GetWrapper(script);
13162 Handle<JSObject> result =
13171 JSObject* target,
13181 JSObject* last = NULL;
13189 JSObject* obj = JSObject::cast(heap_obj);
13244 CONVERT_ARG_HANDLE_CHECKED(JSObject, target, 0);
13283 Handle<JSObject> result = isolate->factory()->NewJSObject(constructor);
13304 JSObject* obj = JSObject::cast(heap_obj);
13364 Handle<JSObject> result = isolate->factory()->NewJSObject(array_function);
13375 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
13887 Handle<JSObject> locales =
13902 JSObject::SetOwnPropertyIgnoreAttributes(
14005 Handle<JSObject> result = factory->NewJSObject(isolate->object_function());
14007 JSObject::AddProperty(result, maximized, value, NONE);
14009 JSObject::AddProperty(result, base, value, NONE);
14027 Handle<JSObject> obj = Handle<JSObject>::cast(input);
14044 Handle<JSObject> obj = Handle<JSObject>::cast(input);
14058 CONVERT_ARG_HANDLE_CHECKED(JSObject, input, 0);
14060 CONVERT_ARG_HANDLE_CHECKED(JSObject, impl, 2);
14063 JSObject::SetHiddenProperty(input, marker, type);
14066 JSObject::SetHiddenProperty(input, marker, impl);
14085 Handle<JSObject> obj = Handle<JSObject>::cast(input);
14104 CONVERT_ARG_HANDLE_CHECKED(JSObject, options, 1);
14105 CONVERT_ARG_HANDLE_CHECKED(JSObject, resolved, 2);
14111 Handle<JSObject> local_object;
14127 JSObject::AddProperty(local_object, key, value, NONE);
14143 CONVERT_ARG_HANDLE_CHECKED(JSObject, date_format_holder, 0);
14173 CONVERT_ARG_HANDLE_CHECKED(JSObject, date_format_holder, 0);
14201 CONVERT_ARG_HANDLE_CHECKED(JSObject, options, 1);
14202 CONVERT_ARG_HANDLE_CHECKED(JSObject, resolved, 2);
14208 Handle<JSObject> local_object;
14224 JSObject::AddProperty(local_object, key, value, NONE);
14239 CONVERT_ARG_HANDLE_CHECKED(JSObject, number_format_holder, 0);
14269 CONVERT_ARG_HANDLE_CHECKED(JSObject, number_format_holder, 0);
14309 CONVERT_ARG_HANDLE_CHECKED(JSObject, options, 1);
14310 CONVERT_ARG_HANDLE_CHECKED(JSObject, resolved, 2);
14315 Handle<JSObject> local_object;
14330 JSObject::AddProperty(local_object, key, value, NONE);
14345 CONVERT_ARG_HANDLE_CHECKED(JSObject, collator_holder, 0);
14409 CONVERT_ARG_HANDLE_CHECKED(JSObject, options, 1);
14410 CONVERT_ARG_HANDLE_CHECKED(JSObject, resolved, 2);
14416 Handle<JSObject> local_object;
14434 JSObject::AddProperty(local_object, key, value, NONE);
14451 CONVERT_ARG_HANDLE_CHECKED(JSObject, break_iterator_holder, 0);
14478 CONVERT_ARG_HANDLE_CHECKED(JSObject, break_iterator_holder, 0);
14493 CONVERT_ARG_HANDLE_CHECKED(JSObject, break_iterator_holder, 0);
14508 CONVERT_ARG_HANDLE_CHECKED(JSObject, break_iterator_holder, 0);
14523 CONVERT_ARG_HANDLE_CHECKED(JSObject, break_iterator_holder, 0);
14608 CONVERT_ARG_HANDLE_CHECKED(JSObject, error_object, 0);
14736 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0);
14759 Handle<JSObject> js_object = Handle<JSObject>::cast(object);
14765 if (!JSObject::TryMigrateInstance(js_object)) return Smi::FromInt(0);
14818 Handle<JSObject> receiver(isolate->global_proxy());
14936 CONVERT_ARG_CHECKED(JSObject, obj, 0); \
14956 CONVERT_ARG_CHECKED(JSObject, obj, 0); \
14967 CONVERT_ARG_CHECKED(JSObject, obj, 0); \
14979 CONVERT_ARG_CHECKED(JSObject, obj1, 0);
14980 CONVERT_ARG_CHECKED(JSObject, obj2, 1);
15013 JSObject::SetObserved(Handle<JSObject>::cast(obj));
15066 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 1);
15067 CONVERT_ARG_HANDLE_CHECKED(JSObject, record, 2);
15082 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0);
15093 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0);
15103 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0);
15113 CONVERT_ARG_HANDLE_CHECKED(JSObject, object_info, 0);
15132 if (value < 0 || value >= JSObject::kInitialMaxFastElementArray) {
15177 JSObject::TransitionElementsKind(array, kind);
15261 CONVERT_ARG_HANDLE_CHECKED(JSObject, array, 0);
15264 JSObject::NormalizeElements(array);