Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Side by Side Diff: src/objects.h

Issue 1442643009: Rename original constructor to new target (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/mips64/interface-descriptors-mips64.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 7303 matching lines...) Expand 10 before | Expand all | Expand 10 after
7314 7314
7315 inline BindingsArray* function_bindings(); 7315 inline BindingsArray* function_bindings();
7316 inline void set_function_bindings(BindingsArray* bindings); 7316 inline void set_function_bindings(BindingsArray* bindings);
7317 7317
7318 // The initial map for an object created by this constructor. 7318 // The initial map for an object created by this constructor.
7319 inline Map* initial_map(); 7319 inline Map* initial_map();
7320 static void SetInitialMap(Handle<JSFunction> function, Handle<Map> map, 7320 static void SetInitialMap(Handle<JSFunction> function, Handle<Map> map,
7321 Handle<Object> prototype); 7321 Handle<Object> prototype);
7322 inline bool has_initial_map(); 7322 inline bool has_initial_map();
7323 static void EnsureHasInitialMap(Handle<JSFunction> function); 7323 static void EnsureHasInitialMap(Handle<JSFunction> function);
7324 // Ensures that the |original_constructor| has correct initial map and 7324 // Ensures that the |new_target| has correct initial map and
7325 // returns it. If the |original_constructor| is not a subclass constructor 7325 // returns it. If the |new_target| is not a subclass constructor
7326 // its initial map is left unmodified. 7326 // its initial map is left unmodified.
7327 static Handle<Map> EnsureDerivedHasInitialMap( 7327 static Handle<Map> EnsureDerivedHasInitialMap(Handle<JSFunction> new_target,
7328 Handle<JSFunction> original_constructor, Handle<JSFunction> constructor); 7328 Handle<JSFunction> constructor);
7329 7329
7330 // Get and set the prototype property on a JSFunction. If the 7330 // Get and set the prototype property on a JSFunction. If the
7331 // function has an initial map the prototype is set on the initial 7331 // function has an initial map the prototype is set on the initial
7332 // map. Otherwise, the prototype is put in the initial map field 7332 // map. Otherwise, the prototype is put in the initial map field
7333 // until an initial map is needed. 7333 // until an initial map is needed.
7334 inline bool has_prototype(); 7334 inline bool has_prototype();
7335 inline bool has_instance_prototype(); 7335 inline bool has_instance_prototype();
7336 inline Object* prototype(); 7336 inline Object* prototype();
7337 inline Object* instance_prototype(); 7337 inline Object* instance_prototype();
7338 static void SetPrototype(Handle<JSFunction> function, 7338 static void SetPrototype(Handle<JSFunction> function,
(...skipping 3367 matching lines...) Expand 10 before | Expand all | Expand 10 after
10706 } 10706 }
10707 return value; 10707 return value;
10708 } 10708 }
10709 }; 10709 };
10710 10710
10711 10711
10712 } // NOLINT, false-positive due to second-order macros. 10712 } // NOLINT, false-positive due to second-order macros.
10713 } // NOLINT, false-positive due to second-order macros. 10713 } // NOLINT, false-positive due to second-order macros.
10714 10714
10715 #endif // V8_OBJECTS_H_ 10715 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/mips64/interface-descriptors-mips64.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698