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 // Clients of this interface shouldn't depend on lots of interpreter internals. | 8 // Clients of this interface shouldn't depend on lots of interpreter internals. |
9 // Do not include anything from src/interpreter other than | 9 // Do not include anything from src/interpreter other than |
10 // src/interpreter/bytecodes.h here! | 10 // src/interpreter/bytecodes.h here! |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
73 // Generates code to perform the binary operation via |Generator|. | 73 // Generates code to perform the binary operation via |Generator|. |
74 template <class Generator> | 74 template <class Generator> |
75 void DoBinaryOp(InterpreterAssembler* assembler); | 75 void DoBinaryOp(InterpreterAssembler* assembler); |
76 | 76 |
77 // Generates code to perform the binary operation via |Generator| using | 77 // Generates code to perform the binary operation via |Generator| using |
78 // an immediate value rather the accumulator as the rhs operand. | 78 // an immediate value rather the accumulator as the rhs operand. |
79 template <class Generator> | 79 template <class Generator> |
80 void DoBinaryOpWithImmediate(InterpreterAssembler* assembler); | 80 void DoBinaryOpWithImmediate(InterpreterAssembler* assembler); |
81 | 81 |
82 // Generates code to perform the unary operation via |callable|. | 82 // Generates code to perform the unary operation via |callable|. |
83 compiler::Node* BuildUnaryOp(Callable callable, | |
84 InterpreterAssembler* assembler); | |
rmcilroy
2016/07/22 09:36:36
nit move down with the other Build* functions
klaasb
2016/07/22 09:45:45
Done.
| |
85 | |
86 // Generates code to perform the unary operation via |callable| and stores | |
87 // the result to the accumulator. | |
83 void DoUnaryOp(Callable callable, InterpreterAssembler* assembler); | 88 void DoUnaryOp(Callable callable, InterpreterAssembler* assembler); |
84 | 89 |
85 // Generates code to perform the unary operation via |Generator|. | 90 // Generates code to perform the unary operation via |Generator|. |
86 template <class Generator> | 91 template <class Generator> |
87 void DoUnaryOp(InterpreterAssembler* assembler); | 92 void DoUnaryOp(InterpreterAssembler* assembler); |
88 | 93 |
89 // Generates code to perform the comparison operation associated with | 94 // Generates code to perform the comparison operation associated with |
90 // |compare_op|. | 95 // |compare_op|. |
91 void DoCompareOp(Token::Value compare_op, InterpreterAssembler* assembler); | 96 void DoCompareOp(Token::Value compare_op, InterpreterAssembler* assembler); |
92 | 97 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
169 v8::base::SmartArrayPointer<uintptr_t> bytecode_dispatch_counters_table_; | 174 v8::base::SmartArrayPointer<uintptr_t> bytecode_dispatch_counters_table_; |
170 | 175 |
171 DISALLOW_COPY_AND_ASSIGN(Interpreter); | 176 DISALLOW_COPY_AND_ASSIGN(Interpreter); |
172 }; | 177 }; |
173 | 178 |
174 } // namespace interpreter | 179 } // namespace interpreter |
175 } // namespace internal | 180 } // namespace internal |
176 } // namespace v8 | 181 } // namespace v8 |
177 | 182 |
178 #endif // V8_INTERPRETER_INTERPRETER_H_ | 183 #endif // V8_INTERPRETER_INTERPRETER_H_ |
OLD | NEW |