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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 // Load a field from an object on the heap. | 95 // Load a field from an object on the heap. |
96 Node* LoadObjectField(Node* object, int offset); | 96 Node* LoadObjectField(Node* object, int offset); |
97 | 97 |
98 // Load |slot_index| from |context|. | 98 // Load |slot_index| from |context|. |
99 Node* LoadContextSlot(Node* context, Node* slot_index); | 99 Node* LoadContextSlot(Node* context, Node* slot_index); |
100 | 100 |
101 // Load the TypeFeedbackVector for the current function. | 101 // Load the TypeFeedbackVector for the current function. |
102 Node* LoadTypeFeedbackVector(); | 102 Node* LoadTypeFeedbackVector(); |
103 | 103 |
104 // Call JSFunction or Callable |function| with |arg_count| (not including | 104 // Call constructor |constructor| with |arg_count| arguments (not |
105 // receiver) and the first argument located at |first_arg|. | 105 // including receiver) and the first argument located at |
| 106 // |first_arg|. The |original_constructor| is the same as the |
| 107 // |constructor| for the new keyword, but differs for the super |
| 108 // keyword. |
| 109 Node* CallConstruct(Node* original_constructor, Node* constructor, |
| 110 Node* first_arg, Node* arg_count); |
| 111 |
| 112 // Call JSFunction or Callable |function| with |arg_count| |
| 113 // arguments (not including receiver) and the first argument |
| 114 // located at |first_arg|. |
106 Node* CallJS(Node* function, Node* first_arg, Node* arg_count); | 115 Node* CallJS(Node* function, Node* first_arg, Node* arg_count); |
107 | 116 |
108 // Call an IC code stub. | 117 // Call an IC code stub. |
109 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, | 118 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, |
110 Node* arg2, Node* arg3); | 119 Node* arg2, Node* arg3); |
111 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, | 120 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, |
112 Node* arg2, Node* arg3, Node* arg4); | 121 Node* arg2, Node* arg3, Node* arg4); |
113 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, | 122 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, |
114 Node* arg2, Node* arg3, Node* arg4, Node* arg5); | 123 Node* arg2, Node* arg3, Node* arg4, Node* arg5); |
115 | 124 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 bool code_generated_; | 202 bool code_generated_; |
194 | 203 |
195 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 204 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
196 }; | 205 }; |
197 | 206 |
198 } // namespace compiler | 207 } // namespace compiler |
199 } // namespace internal | 208 } // namespace internal |
200 } // namespace v8 | 209 } // namespace v8 |
201 | 210 |
202 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ | 211 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
OLD | NEW |