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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 90 |
91 // Generates code to perform the binary operation via |Generator| using | 91 // Generates code to perform the binary operation via |Generator| using |
92 // an immediate value rather the accumulator as the rhs operand. | 92 // an immediate value rather the accumulator as the rhs operand. |
93 template <class Generator> | 93 template <class Generator> |
94 void DoBinaryOpWithImmediate(InterpreterAssembler* assembler); | 94 void DoBinaryOpWithImmediate(InterpreterAssembler* assembler); |
95 | 95 |
96 // Generates code to perform the unary operation via |Generator|. | 96 // Generates code to perform the unary operation via |Generator|. |
97 template <class Generator> | 97 template <class Generator> |
98 void DoUnaryOp(InterpreterAssembler* assembler); | 98 void DoUnaryOp(InterpreterAssembler* assembler); |
99 | 99 |
| 100 // Generates code to perform the unary operation via |Generator| while |
| 101 // gatering type feedback. |
| 102 template <class Generator> |
| 103 void DoUnaryOpWithFeedback(InterpreterAssembler* assembler); |
| 104 |
100 // Generates code to perform the comparison operation associated with | 105 // Generates code to perform the comparison operation associated with |
101 // |compare_op|. | 106 // |compare_op|. |
102 void DoCompareOp(Token::Value compare_op, InterpreterAssembler* assembler); | 107 void DoCompareOp(Token::Value compare_op, InterpreterAssembler* assembler); |
103 | 108 |
104 // Generates code to perform a global store via |ic|. | 109 // Generates code to perform a global store via |ic|. |
105 void DoStaGlobal(Callable ic, InterpreterAssembler* assembler); | 110 void DoStaGlobal(Callable ic, InterpreterAssembler* assembler); |
106 | 111 |
107 // Generates code to perform a named property store via |ic|. | 112 // Generates code to perform a named property store via |ic|. |
108 void DoStoreIC(Callable ic, InterpreterAssembler* assembler); | 113 void DoStoreIC(Callable ic, InterpreterAssembler* assembler); |
109 | 114 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; | 189 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; |
185 | 190 |
186 DISALLOW_COPY_AND_ASSIGN(Interpreter); | 191 DISALLOW_COPY_AND_ASSIGN(Interpreter); |
187 }; | 192 }; |
188 | 193 |
189 } // namespace interpreter | 194 } // namespace interpreter |
190 } // namespace internal | 195 } // namespace internal |
191 } // namespace v8 | 196 } // namespace v8 |
192 | 197 |
193 #endif // V8_INTERPRETER_INTERPRETER_H_ | 198 #endif // V8_INTERPRETER_INTERPRETER_H_ |
OLD | NEW |