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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 // receiver) and the first argument located at |first_arg|. | 99 // receiver) and the first argument located at |first_arg|. |
100 Node* CallJS(Node* function, Node* first_arg, Node* arg_count); | 100 Node* CallJS(Node* function, Node* first_arg, Node* arg_count); |
101 | 101 |
102 // Call an IC code stub. | 102 // Call an IC code stub. |
103 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, | 103 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, |
104 Node* arg2, Node* arg3, Node* arg4); | 104 Node* arg2, Node* arg3, Node* arg4); |
105 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, | 105 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, |
106 Node* arg2, Node* arg3, Node* arg4, Node* arg5); | 106 Node* arg2, Node* arg3, Node* arg4, Node* arg5); |
107 | 107 |
108 // Call runtime function. | 108 // Call runtime function. |
| 109 Node* CallRuntime(Node* function_id, Node* first_arg, Node* arg_count); |
109 Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1); | 110 Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1); |
110 Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1, Node* arg2); | 111 Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1, Node* arg2); |
111 | 112 |
112 // Jump relative to the current bytecode by |jump_offset|. | 113 // Jump relative to the current bytecode by |jump_offset|. |
113 void Jump(Node* jump_offset); | 114 void Jump(Node* jump_offset); |
114 | 115 |
115 // Jump relative to the current bytecode by |jump_offset| if the | 116 // Jump relative to the current bytecode by |jump_offset| if the |
116 // word values |lhs| and |rhs| are equal. | 117 // word values |lhs| and |rhs| are equal. |
117 void JumpIfWordEqual(Node* lhs, Node* rhs, Node* jump_offset); | 118 void JumpIfWordEqual(Node* lhs, Node* rhs, Node* jump_offset); |
118 | 119 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 bool code_generated_; | 177 bool code_generated_; |
177 | 178 |
178 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 179 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
179 }; | 180 }; |
180 | 181 |
181 } // namespace interpreter | 182 } // namespace interpreter |
182 } // namespace internal | 183 } // namespace internal |
183 } // namespace v8 | 184 } // namespace v8 |
184 | 185 |
185 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ | 186 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
OLD | NEW |