| 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 constructor |constructor| with |arg_count| arguments (not | 104 // Call JSFunction or Callable |function| with |arg_count| (not including |
| 105 // including receiver) and the first argument located at | 105 // receiver) and the first argument located at |first_arg|. |
| 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|. | |
| 115 Node* CallJS(Node* function, Node* first_arg, Node* arg_count); | 106 Node* CallJS(Node* function, Node* first_arg, Node* arg_count); |
| 116 | 107 |
| 117 // Call an IC code stub. | 108 // Call an IC code stub. |
| 118 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, | 109 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, |
| 119 Node* arg2, Node* arg3); | 110 Node* arg2, Node* arg3); |
| 120 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, | 111 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, |
| 121 Node* arg2, Node* arg3, Node* arg4); | 112 Node* arg2, Node* arg3, Node* arg4); |
| 122 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, | 113 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, |
| 123 Node* arg2, Node* arg3, Node* arg4, Node* arg5); | 114 Node* arg2, Node* arg3, Node* arg4, Node* arg5); |
| 124 | 115 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 bool code_generated_; | 193 bool code_generated_; |
| 203 | 194 |
| 204 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 195 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
| 205 }; | 196 }; |
| 206 | 197 |
| 207 } // namespace compiler | 198 } // namespace compiler |
| 208 } // namespace internal | 199 } // namespace internal |
| 209 } // namespace v8 | 200 } // namespace v8 |
| 210 | 201 |
| 211 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ | 202 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
| OLD | NEW |