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

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

Issue 2571563004: [Turbofan] Implement super calls with spread bytecode in assembly code. (Closed)
Patch Set: Change arm64 loop to be similar to the rest Created 3 years, 11 months 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
Index: src/interpreter/interpreter-assembler.cc
diff --git a/src/interpreter/interpreter-assembler.cc b/src/interpreter/interpreter-assembler.cc
index c143751b3499a0e3bc3ebcf89dc9ddef9f7c0856..0931a8847d5e620f435a5c17ec00eca3a7342021 100644
--- a/src/interpreter/interpreter-assembler.cc
+++ b/src/interpreter/interpreter-assembler.cc
@@ -833,6 +833,23 @@ Node* InterpreterAssembler::CallConstruct(Node* constructor, Node* context,
return return_value.value();
}
+Node* InterpreterAssembler::CallConstructWithSpread(Node* constructor,
+ Node* context,
+ Node* new_target,
+ Node* first_arg,
+ Node* arg_count) {
+ Variable return_value(this, MachineRepresentation::kTagged);
+ Comment("call using ConstructWithSpread");
rmcilroy 2017/01/11 15:24:45 Do we have any plans to add type feedback informat
petermarshall 2017/01/11 16:50:03 Yes we do plan to add type feedback information in
+ Callable callable =
+ CodeFactory::InterpreterPushArgsAndConstructWithSpread(isolate());
+ Node* code_target = HeapConstant(callable.code());
+ return_value.Bind(CallStub(callable.descriptor(), code_target, context,
+ arg_count, new_target, constructor,
+ UndefinedConstant(), first_arg));
+
+ return return_value.value();
+}
+
Node* InterpreterAssembler::CallRuntimeN(Node* function_id, Node* context,
Node* first_arg, Node* arg_count,
int result_size) {

Powered by Google App Engine
This is Rietveld 408576698