Home | History | Annotate | Download | only in src

Lines Matching refs:constructor

69   Handle<JSFunction> constructor;
71 constructor = handle(native_context->number_function(), isolate);
73 constructor = handle(native_context->boolean_function(), isolate);
75 constructor = handle(native_context->string_function(), isolate);
77 constructor = handle(native_context->symbol_function(), isolate);
81 Handle<JSObject> result = isolate->factory()->NewJSObject(constructor);
219 // Fetch the constructor function of the object.
220 Object* cons_obj = map->constructor();
733 Object* cons_obj = map()->constructor();
1239 Object* constructor = map_of_this->constructor();
1241 if (constructor->IsHeapObject() &&
1242 !heap->Contains(HeapObject::cast(constructor))) {
1243 accumulator->Add("!!!INVALID CONSTRUCTOR!!!");
1246 if (constructor->IsJSFunction()) {
1247 if (!heap->Contains(JSFunction::cast(constructor)->shared())) {
1248 accumulator->Add("!!!INVALID SHARED ON CONSTRUCTOR!!!");
1251 JSFunction::cast(constructor)->shared()->name();
1680 if (map()->constructor()->IsJSFunction()) {
1681 JSFunction* constructor = JSFunction::cast(map()->constructor());
1682 return String::cast(constructor->shared()->instance_class_name());
1684 // If the constructor is not present, return "Object".
1690 if (constructor()->IsJSFunction()) {
1691 JSFunction* constructor = JSFunction::cast(this->constructor());
1692 String* name = String::cast(constructor->shared()->name());
1694 String* inferred_name = constructor->shared()->inferred_name();
1700 // If the constructor is not present, return "Object".
1795 Object* constructor = this->map()->constructor();
1797 if (!constructor->IsJSFunction()) {
1798 // Functions have null as a constructor,
1802 function = JSFunction::cast(constructor);
5041 // Is the object the constructor for this object?
5042 if (map_of_this->constructor() == obj) {
5102 // Get the constructor function for arguments array.
5106 JSFunction::cast(arguments_map->constructor());
5121 if (ctxobj->map()->constructor() == arguments_function) {
5792 JSFunction::cast(isolate->sloppy_arguments_map()->constructor()));
5865 ((current->map()->constructor() != *arguments_function) &&
6368 result->set_constructor(map->constructor());
7064 // constructor field of the map while it is running. Negative values in
7065 // the constructor field indicate an active map transition iteration. The
7066 // original constructor is restored after iterating over all entries.
7070 Map* map, TransitionArray* transition_array, Object* constructor)
7073 constructor_(constructor) { }
7113 // An iterator over all prototype transitions, reusing the constructor field
7114 // of the map while it is running. Positive values in the constructor field
7115 // indicate an active prototype transition iteration. The original constructor
7120 Map* map, HeapObject* proto_trans, Object* constructor)
7121 : map_(map), proto_trans_(proto_trans), constructor_(constructor) { }
7183 // of the map we currently iterate. We use the constructor field of the
7184 // map to store the current index. We can do that because the constructor
7188 // the current index in the constructor field, and restore it to the
7189 // original constructor afterwards. Note that a single descriptor can
7193 // the current index in the constructor field, and restore it to the
7194 // original constructor afterwards.
7212 // none, return NULL and restore the overwritten constructor field.
7213 TraversableMap* ChildIteratorNext(Object* constructor) {
7222 constructor);
7232 constructor);
7251 // Get the root constructor here to restore it later when finished iterating
7253 Object* root_constructor = constructor();
9004 // constructor, prototype and bit_field2.
9008 reinterpret_cast<uintptr_t>(constructor())) >> 2);
9010 // XOR-ing the prototype and constructor directly yields too many zero bits
9012 // To avoid this we shift the prototype 4 bits relatively to the constructor.
9022 first->constructor() == second->constructor() &&
9376 // function as a constructor.
9428 // constructor field so it can be accessed. Also, set the prototype
9517 // Finally link initial map and constructor function.
9733 Handle<JSFunction> constructor = isolate->script_function();
9735 Handle<JSValue>::cast(isolate->factory()->NewJSObject(constructor));
13078 JSFunction* constructor = JSFunction::cast(map()->constructor());
13079 DCHECK(constructor->shared()->IsApiFunction());
13081 constructor->shared()->get_api_func_data()->named_property_handler();
13088 JSFunction* constructor = JSFunction::cast(map()->constructor());
13089 DCHECK(constructor->shared()->IsApiFunction());
13091 constructor->shared()->get_api_func_data()->indexed_property_handler();