| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_INTERPRETER_INTERPRETER_H_ | 5 #ifndef V8_INTERPRETER_INTERPRETER_H_ |
| 6 #define V8_INTERPRETER_INTERPRETER_H_ | 6 #define V8_INTERPRETER_INTERPRETER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 // Clients of this interface shouldn't depend on lots of interpreter internals. | 10 // Clients of this interface shouldn't depend on lots of interpreter internals. |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 // Generates code to perform the binary operation via |Generator|. | 78 // Generates code to perform the binary operation via |Generator|. |
| 79 template <class Generator> | 79 template <class Generator> |
| 80 void DoBinaryOp(InterpreterAssembler* assembler); | 80 void DoBinaryOp(InterpreterAssembler* assembler); |
| 81 | 81 |
| 82 // Generates code to perform the binary operation via |Generator| using | 82 // Generates code to perform the binary operation via |Generator| using |
| 83 // an immediate value rather the accumulator as the rhs operand. | 83 // an immediate value rather the accumulator as the rhs operand. |
| 84 template <class Generator> | 84 template <class Generator> |
| 85 void DoBinaryOpWithImmediate(InterpreterAssembler* assembler); | 85 void DoBinaryOpWithImmediate(InterpreterAssembler* assembler); |
| 86 | 86 |
| 87 // Generates code to perform the unary operation via |callable| and stores | |
| 88 // the result to the accumulator. | |
| 89 void DoUnaryOp(Callable callable, InterpreterAssembler* assembler); | |
| 90 | |
| 91 // Generates code to perform the unary operation via |Generator|. | 87 // Generates code to perform the unary operation via |Generator|. |
| 92 template <class Generator> | 88 template <class Generator> |
| 93 void DoUnaryOp(InterpreterAssembler* assembler); | 89 void DoUnaryOp(InterpreterAssembler* assembler); |
| 94 | 90 |
| 95 // Generates code to perform the comparison operation associated with | 91 // Generates code to perform the comparison operation associated with |
| 96 // |compare_op|. | 92 // |compare_op|. |
| 97 void DoCompareOp(Token::Value compare_op, InterpreterAssembler* assembler); | 93 void DoCompareOp(Token::Value compare_op, InterpreterAssembler* assembler); |
| 98 | 94 |
| 99 // Generates code to perform a global store via |ic|. | 95 // Generates code to perform a global store via |ic|. |
| 100 void DoStaGlobal(Callable ic, InterpreterAssembler* assembler); | 96 void DoStaGlobal(Callable ic, InterpreterAssembler* assembler); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; | 175 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; |
| 180 | 176 |
| 181 DISALLOW_COPY_AND_ASSIGN(Interpreter); | 177 DISALLOW_COPY_AND_ASSIGN(Interpreter); |
| 182 }; | 178 }; |
| 183 | 179 |
| 184 } // namespace interpreter | 180 } // namespace interpreter |
| 185 } // namespace internal | 181 } // namespace internal |
| 186 } // namespace v8 | 182 } // namespace v8 |
| 187 | 183 |
| 188 #endif // V8_INTERPRETER_INTERPRETER_H_ | 184 #endif // V8_INTERPRETER_INTERPRETER_H_ |
| OLD | NEW |