Index: src/interpreter/interpreter.h |
diff --git a/src/interpreter/interpreter.h b/src/interpreter/interpreter.h |
index 48940d267fbf1b5f93ba232403728ee017b98ec8..8be1746100ab3d69c3964fa5e51db981a6655f0d 100644 |
--- a/src/interpreter/interpreter.h |
+++ b/src/interpreter/interpreter.h |
@@ -83,7 +83,7 @@ class Interpreter { |
// Generates code to perform the unary operation via |callable| and stores |
// the result to the accumulator. |
- void DoUnaryOp(Callable callable, InterpreterAssembler* assembler); |
+ void DoUnaryOp(const Callable& callable, InterpreterAssembler* assembler); |
// Generates code to perform the unary operation via |Generator|. |
template <class Generator> |
@@ -94,12 +94,15 @@ class Interpreter { |
void DoCompareOp(Token::Value compare_op, InterpreterAssembler* assembler); |
// Generates code to perform a global store via |ic|. |
+ template <typename Descriptor> |
void DoStaGlobal(Callable ic, InterpreterAssembler* assembler); |
// Generates code to perform a named property store via |ic|. |
+ template <typename Descriptor> |
void DoStoreIC(Callable ic, InterpreterAssembler* assembler); |
// Generates code to perform a keyed property store via |ic|. |
+ template <typename Descriptor> |
void DoKeyedStoreIC(Callable ic, InterpreterAssembler* assembler); |
// Generates code to perform a JS call that collects type feedback. |
@@ -136,13 +139,16 @@ class Interpreter { |
compiler::Node* BuildLoadContextSlot(InterpreterAssembler* assembler); |
// Generates code to load a global. |
+ template <typename Descriptor> |
compiler::Node* BuildLoadGlobal(Callable ic, InterpreterAssembler* assembler); |
// Generates code to load a named property. |
+ template <typename Descriptor> |
compiler::Node* BuildLoadNamedProperty(Callable ic, |
InterpreterAssembler* assembler); |
// Generates code to load a keyed property. |
+ template <typename Descriptor> |
compiler::Node* BuildLoadKeyedProperty(Callable ic, |
InterpreterAssembler* assembler); |
@@ -156,7 +162,7 @@ class Interpreter { |
InterpreterAssembler* assembler); |
// Generates code to perform the unary operation via |callable|. |
- compiler::Node* BuildUnaryOp(Callable callable, |
+ compiler::Node* BuildUnaryOp(const Callable& callable, |
InterpreterAssembler* assembler); |
uintptr_t GetDispatchCounter(Bytecode from, Bytecode to) const; |