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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 template <class Generator> | 80 template <class Generator> |
81 void DoBinaryOp(InterpreterAssembler* assembler); | 81 void DoBinaryOp(InterpreterAssembler* assembler); |
82 | 82 |
83 // Generates code to perform the binary operation via |Generator|. | 83 // Generates code to perform the binary operation via |Generator|. |
84 template <class Generator> | 84 template <class Generator> |
85 void DoBinaryOpWithFeedback(InterpreterAssembler* assembler); | 85 void DoBinaryOpWithFeedback(InterpreterAssembler* assembler); |
86 | 86 |
87 // Generates code to perform the comparison via |Generator| while gathering | 87 // Generates code to perform the comparison via |Generator| while gathering |
88 // type feedback. | 88 // type feedback. |
89 template <class Generator> | 89 template <class Generator> |
90 void DoCompareOpWithFeedback(InterpreterAssembler* assembler); | 90 void DoCompareOpWithFeedback(InterpreterAssembler* assembler, |
| 91 Generator generator); |
91 | 92 |
92 // Generates code to perform the bitwise binary operation corresponding to | 93 // Generates code to perform the bitwise binary operation corresponding to |
93 // |bitwise_op| while gathering type feedback. | 94 // |bitwise_op| while gathering type feedback. |
94 void DoBitwiseBinaryOp(Token::Value bitwise_op, | 95 void DoBitwiseBinaryOp(Token::Value bitwise_op, |
95 InterpreterAssembler* assembler); | 96 InterpreterAssembler* assembler); |
96 | 97 |
97 // Generates code to perform the binary operation via |Generator| using | 98 // Generates code to perform the binary operation via |Generator| using |
98 // an immediate value rather the accumulator as the rhs operand. | 99 // an immediate value rather the accumulator as the rhs operand. |
99 template <class Generator> | 100 template <class Generator> |
100 void DoBinaryOpWithImmediate(InterpreterAssembler* assembler); | 101 void DoBinaryOpWithImmediate(InterpreterAssembler* assembler); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; | 194 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; |
194 | 195 |
195 DISALLOW_COPY_AND_ASSIGN(Interpreter); | 196 DISALLOW_COPY_AND_ASSIGN(Interpreter); |
196 }; | 197 }; |
197 | 198 |
198 } // namespace interpreter | 199 } // namespace interpreter |
199 } // namespace internal | 200 } // namespace internal |
200 } // namespace v8 | 201 } // namespace v8 |
201 | 202 |
202 #endif // V8_INTERPRETER_INTERPRETER_H_ | 203 #endif // V8_INTERPRETER_INTERPRETER_H_ |
OLD | NEW |