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); |
113 Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1); | 114 Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1); |
114 Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1, Node* arg2); | 115 Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1, Node* arg2); |
115 | 116 |
116 // Jump relative to the current bytecode by |jump_offset|. | 117 // Jump relative to the current bytecode by |jump_offset|. |
117 void Jump(Node* jump_offset); | 118 void Jump(Node* jump_offset); |
118 | 119 |
119 // Jump relative to the current bytecode by |jump_offset| if the | 120 // Jump relative to the current bytecode by |jump_offset| if the |
120 // word values |lhs| and |rhs| are equal. | 121 // word values |lhs| and |rhs| are equal. |
121 void JumpIfWordEqual(Node* lhs, Node* rhs, Node* jump_offset); | 122 void JumpIfWordEqual(Node* lhs, Node* rhs, Node* jump_offset); |
122 | 123 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 bool code_generated_; | 182 bool code_generated_; |
182 | 183 |
183 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 184 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
184 }; | 185 }; |
185 | 186 |
186 } // namespace interpreter | 187 } // namespace interpreter |
187 } // namespace internal | 188 } // namespace internal |
188 } // namespace v8 | 189 } // namespace v8 |
189 | 190 |
190 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ | 191 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
OLD | NEW |