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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // receiver) and the first argument located at |first_arg|. | 97 // receiver) and the first argument located at |first_arg|. |
98 Node* CallJS(Node* function, Node* first_arg, Node* arg_count); | 98 Node* CallJS(Node* function, Node* first_arg, Node* arg_count); |
99 | 99 |
100 // Call an IC code stub. | 100 // Call an IC code stub. |
101 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, | 101 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, |
102 Node* arg2, Node* arg3, Node* arg4); | 102 Node* arg2, Node* arg3, Node* arg4); |
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, Node* arg5); | 104 Node* arg2, Node* arg3, Node* arg4, Node* arg5); |
105 | 105 |
106 // Call runtime function. | 106 // Call runtime function. |
| 107 Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1); |
107 Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1, Node* arg2); | 108 Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1, Node* arg2); |
108 | 109 |
109 // Returns from the function. | 110 // Returns from the function. |
110 void Return(); | 111 void Return(); |
111 | 112 |
112 // Dispatch to the bytecode. | 113 // Dispatch to the bytecode. |
113 void Dispatch(); | 114 void Dispatch(); |
114 | 115 |
115 protected: | 116 protected: |
116 // Close the graph. | 117 // Close the graph. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 bool code_generated_; | 163 bool code_generated_; |
163 | 164 |
164 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 165 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
165 }; | 166 }; |
166 | 167 |
167 } // namespace interpreter | 168 } // namespace interpreter |
168 } // namespace internal | 169 } // namespace internal |
169 } // namespace v8 | 170 } // namespace v8 |
170 | 171 |
171 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ | 172 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
OLD | NEW |