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

Unified Diff: src/compiler/interpreter-assembler.cc

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/compiler/interpreter-assembler.h ('k') | src/deoptimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/interpreter-assembler.cc
diff --git a/src/compiler/interpreter-assembler.cc b/src/compiler/interpreter-assembler.cc
index ed056cfe563cfc24497c865321cd3e0c126ac06e..84d7c878a5fc3e978f26d4d4ac2f47f1613edad5 100644
--- a/src/compiler/interpreter-assembler.cc
+++ b/src/compiler/interpreter-assembler.cc
@@ -352,9 +352,8 @@ Node* InterpreterAssembler::LoadTypeFeedbackVector() {
}
-Node* InterpreterAssembler::CallConstruct(Node* original_constructor,
- Node* constructor, Node* first_arg,
- Node* arg_count) {
+Node* InterpreterAssembler::CallConstruct(Node* new_target, Node* constructor,
+ Node* first_arg, Node* arg_count) {
Callable callable = CodeFactory::InterpreterPushArgsAndConstruct(isolate());
CallDescriptor* descriptor = Linkage::GetStubCallDescriptor(
isolate(), zone(), callable.descriptor(), 0, CallDescriptor::kNoFlags);
@@ -363,7 +362,7 @@ Node* InterpreterAssembler::CallConstruct(Node* original_constructor,
Node** args = zone()->NewArray<Node*>(5);
args[0] = arg_count;
- args[1] = original_constructor;
+ args[1] = new_target;
args[2] = constructor;
args[3] = first_arg;
args[4] = GetContext();
« no previous file with comments | « src/compiler/interpreter-assembler.h ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698