Index: src/interpreter/interpreter.cc |
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
index 260678d88ac487c9ed482fed2ab2a0f98a907d08..33c922f78b67084e06ef91780c431fd1bfcb732b 100644 |
--- a/src/interpreter/interpreter.cc |
+++ b/src/interpreter/interpreter.cc |
@@ -11,6 +11,7 @@ |
#include "src/interpreter/bytecode-generator.h" |
#include "src/interpreter/bytecodes.h" |
#include "src/interpreter/interpreter-assembler.h" |
+#include "src/interpreter/interpreter-intrinsics.h" |
#include "src/zone.h" |
namespace v8 { |
@@ -1917,6 +1918,22 @@ void Interpreter::DoForInStep(InterpreterAssembler* assembler) { |
__ Dispatch(); |
} |
+void Interpreter::DoInvokeIntrinsic(InterpreterAssembler* assembler) { |
rmcilroy
2016/03/05 04:21:46
nit - could you move these below CallRuntime
epertoso
2016/03/07 11:26:35
Done. I've also added a comment.
|
+ Node* function_id = __ BytecodeOperandIdx(0); |
+ Node* first_arg_reg = __ BytecodeOperandReg(1); |
+ Node* arg_count = __ BytecodeOperandCount(2); |
+ Node* context = __ GetContext(); |
+ IntrinsicsHelper helper(assembler); |
+ Node* result = |
+ helper.DispatchIntrinsic(function_id, context, first_arg_reg, arg_count); |
+ __ SetAccumulator(result); |
+ __ Dispatch(); |
+} |
+ |
+void Interpreter::DoInvokeIntrinsicWide(InterpreterAssembler* assembler) { |
+ DoInvokeIntrinsic(assembler); |
+} |
+ |
} // namespace interpreter |
} // namespace internal |
} // namespace v8 |