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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 Node* LoadContextSlot(Node* context, int slot_index); | 98 Node* LoadContextSlot(Node* context, int slot_index); |
99 Node* LoadContextSlot(Node* context, Node* slot_index); | 99 Node* LoadContextSlot(Node* context, Node* slot_index); |
100 // Stores |value| into |slot_index| of |context|. | 100 // Stores |value| into |slot_index| of |context|. |
101 Node* StoreContextSlot(Node* context, Node* slot_index, Node* value); | 101 Node* StoreContextSlot(Node* context, Node* slot_index, Node* value); |
102 | 102 |
103 // Load the TypeFeedbackVector for the current function. | 103 // Load the TypeFeedbackVector for the current function. |
104 Node* LoadTypeFeedbackVector(); | 104 Node* LoadTypeFeedbackVector(); |
105 | 105 |
106 // Call constructor |constructor| with |arg_count| arguments (not | 106 // Call constructor |constructor| with |arg_count| arguments (not |
107 // including receiver) and the first argument located at | 107 // including receiver) and the first argument located at |
108 // |first_arg|. The |original_constructor| is the same as the | 108 // |first_arg|. The |new_target| is the same as the |
109 // |constructor| for the new keyword, but differs for the super | 109 // |constructor| for the new keyword, but differs for the super |
110 // keyword. | 110 // keyword. |
111 Node* CallConstruct(Node* original_constructor, Node* constructor, | 111 Node* CallConstruct(Node* new_target, Node* constructor, Node* first_arg, |
112 Node* first_arg, Node* arg_count); | 112 Node* arg_count); |
113 | 113 |
114 // Call JSFunction or Callable |function| with |arg_count| | 114 // Call JSFunction or Callable |function| with |arg_count| |
115 // arguments (not including receiver) and the first argument | 115 // arguments (not including receiver) and the first argument |
116 // located at |first_arg|. | 116 // located at |first_arg|. |
117 Node* CallJS(Node* function, Node* first_arg, Node* arg_count); | 117 Node* CallJS(Node* function, Node* first_arg, Node* arg_count); |
118 | 118 |
119 // Call an IC code stub. | 119 // Call an IC code stub. |
120 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, | 120 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, |
121 Node* arg2, Node* arg3); | 121 Node* arg2, Node* arg3); |
122 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, | 122 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 bool code_generated_; | 207 bool code_generated_; |
208 | 208 |
209 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 209 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
210 }; | 210 }; |
211 | 211 |
212 } // namespace compiler | 212 } // namespace compiler |
213 } // namespace internal | 213 } // namespace internal |
214 } // namespace v8 | 214 } // namespace v8 |
215 | 215 |
216 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ | 216 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
OLD | NEW |