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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/mips64/interface-descriptors-mips64.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index d30bda2ad3986abe8c6217f60ce1059e15e0c541..8d607b0ff1329705e50eab69c7a93db26394dd10 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7321,11 +7321,11 @@ class JSFunction: public JSObject {
Handle<Object> prototype);
inline bool has_initial_map();
static void EnsureHasInitialMap(Handle<JSFunction> function);
- // Ensures that the |original_constructor| has correct initial map and
- // returns it. If the |original_constructor| is not a subclass constructor
+ // Ensures that the |new_target| has correct initial map and
+ // returns it. If the |new_target| is not a subclass constructor
// its initial map is left unmodified.
- static Handle<Map> EnsureDerivedHasInitialMap(
- Handle<JSFunction> original_constructor, Handle<JSFunction> constructor);
+ static Handle<Map> EnsureDerivedHasInitialMap(Handle<JSFunction> new_target,
+ Handle<JSFunction> constructor);
// Get and set the prototype property on a JSFunction. If the
// function has an initial map the prototype is set on the initial
« 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