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