Chromium Code Reviews| 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) { |