Home | History | Annotate | Download | only in src

Lines Matching refs:boilerplate

140                                                    JSObject* boilerplate) {
146 { MaybeObject* maybe_result = heap->CopyJSObject(boilerplate);
362 Handle<JSObject> boilerplate = isolate->factory()->NewJSObjectFromMap(map);
364 // Normalize the elements of the boilerplate to save space if needed.
365 if (!should_have_fast_elements) JSObject::NormalizeElements(boilerplate);
367 // Add the constant properties to the boilerplate.
370 !is_result_from_cache && boilerplate->HasFastProperties();
376 boilerplate, KEEP_INOBJECT_PROPERTIES, length / 2);
395 boilerplate, element_index, value, kNonStrictMode);
400 boilerplate, name, value, NONE);
405 boilerplate, element_index, value, kNonStrictMode);
416 boilerplate, name, value, NONE);
418 // If setting the property on the boilerplate throws an
431 boilerplate, boilerplate->map()->unused_property_fields());
434 return boilerplate;
525 // Ensure that the boilerplate object has FAST_ELEMENTS, unless the flag is
577 // Check if boilerplate exists. If not, create it first.
578 Handle<Object> boilerplate(literals->get(literals_index), isolate);
579 if (*boilerplate == isolate->heap()->undefined_value()) {
580 boilerplate = CreateObjectLiteralBoilerplate(isolate,
585 if (boilerplate.is_null()) return Failure::Exception();
586 // Update the functions literal and return the boilerplate.
587 literals->set(literals_index, *boilerplate);
589 return DeepCopyBoilerplate(isolate, JSObject::cast(*boilerplate));
603 // Check if boilerplate exists. If not, create it first.
604 Handle<Object> boilerplate(literals->get(literals_index), isolate);
605 if (*boilerplate == isolate->heap()->undefined_value()) {
606 boilerplate = CreateObjectLiteralBoilerplate(isolate,
611 if (boilerplate.is_null()) return Failure::Exception();
612 // Update the functions literal and return the boilerplate.
613 literals->set(literals_index, *boilerplate);
615 return isolate->heap()->CopyJSObject(JSObject::cast(*boilerplate));
626 // Check if boilerplate exists. If not, create it first.
627 Handle<Object> boilerplate(literals->get(literals_index), isolate);
628 if (*boilerplate == isolate->heap()->undefined_value()) {
629 boilerplate =
631 if (boilerplate.is_null()) return Failure::Exception();
632 // Update the functions literal and return the boilerplate.
633 literals->set(literals_index, *boilerplate);
635 return DeepCopyBoilerplate(isolate, JSObject::cast(*boilerplate));
646 // Check if boilerplate exists. If not, create it first.
647 Handle<Object> boilerplate(literals->get(literals_index), isolate);
648 if (*boilerplate == isolate->heap()->undefined_value()) {
650 boilerplate =
652 if (boilerplate.is_null()) return Failure::Exception();
653 // Update the functions literal and return the boilerplate.
654 literals->set(literals_index, *boilerplate);
656 if (JSObject::cast(*boilerplate)->elements()->map() ==
660 return isolate->heap()->CopyJSObject(JSObject::cast(*boilerplate));