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_COMPILER_INTERPRETER_ASSEMBLER_H_ | 5 #ifndef V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
6 #define V8_COMPILER_INTERPRETER_ASSEMBLER_H_ | 6 #define V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
7 | 7 |
8 // Clients of this interface shouldn't depend on lots of compiler internals. | 8 // Clients of this interface shouldn't depend on lots of compiler internals. |
9 // Do not include anything from src/compiler here! | 9 // Do not include anything from src/compiler here! |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // receiver) and the first argument located at |first_arg|. | 103 // receiver) and the first argument located at |first_arg|. |
104 Node* CallJS(Node* function, Node* first_arg, Node* arg_count); | 104 Node* CallJS(Node* function, Node* first_arg, Node* arg_count); |
105 | 105 |
106 // Call an IC code stub. | 106 // Call an IC code stub. |
107 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, | 107 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, |
108 Node* arg2, Node* arg3, Node* arg4); | 108 Node* arg2, Node* arg3, Node* arg4); |
109 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, | 109 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, |
110 Node* arg2, Node* arg3, Node* arg4, Node* arg5); | 110 Node* arg2, Node* arg3, Node* arg4, Node* arg5); |
111 | 111 |
112 // Call runtime function. | 112 // Call runtime function. |
113 Node* CallRuntime(Node* function_id, Node* first_arg, Node* arg_count); | |
114 Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1); | 113 Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1); |
115 Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1, Node* arg2); | 114 Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1, Node* arg2); |
116 | 115 |
117 // Jump relative to the current bytecode by |jump_offset|. | 116 // Jump relative to the current bytecode by |jump_offset|. |
118 void Jump(Node* jump_offset); | 117 void Jump(Node* jump_offset); |
119 | 118 |
120 // Jump relative to the current bytecode by |jump_offset| if the | 119 // Jump relative to the current bytecode by |jump_offset| if the |
121 // word values |lhs| and |rhs| are equal. | 120 // word values |lhs| and |rhs| are equal. |
122 void JumpIfWordEqual(Node* lhs, Node* rhs, Node* jump_offset); | 121 void JumpIfWordEqual(Node* lhs, Node* rhs, Node* jump_offset); |
123 | 122 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 bool code_generated_; | 183 bool code_generated_; |
185 | 184 |
186 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 185 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
187 }; | 186 }; |
188 | 187 |
189 } // namespace compiler | 188 } // namespace compiler |
190 } // namespace internal | 189 } // namespace internal |
191 } // namespace v8 | 190 } // namespace v8 |
192 | 191 |
193 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ | 192 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
OLD | NEW |