Chromium Code Reviews| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 89 | 89 |
| 90 // Load a field from an object on the heap. | 90 // Load a field from an object on the heap. |
| 91 Node* LoadObjectField(Node* object, int offset); | 91 Node* LoadObjectField(Node* object, int offset); |
| 92 | 92 |
| 93 // Load |slot_index| from |context|. | 93 // Load |slot_index| from |context|. |
| 94 Node* LoadContextSlot(Node* context, Node* slot_index); | 94 Node* LoadContextSlot(Node* context, Node* slot_index); |
| 95 | 95 |
| 96 // Load the TypeFeedbackVector for the current function. | 96 // Load the TypeFeedbackVector for the current function. |
| 97 Node* LoadTypeFeedbackVector(); | 97 Node* LoadTypeFeedbackVector(); |
| 98 | 98 |
| 99 // Call JSFunction or Callable |function| with |arg_count| (not including | 99 // Call constructor |constructor| with |arg_count| arguments (not |
| 100 // receiver) and the first argument located at |first_arg|. | 100 // including receiver) and the first argument located at |
| 101 // |first_arg|. The |original_constructor| is the same as the | |
| 102 // |constructor| for the new keyword, but differs for the super | |
| 103 // keyword. | |
| 104 Node* CallConstruct(Node* original_constructor, Node* constructor, | |
| 105 Node* first_arg, Node* arg_count); | |
| 106 | |
| 107 // Call JSFunction or Callable |function| with |arg_count| | |
| 108 // argumnents (not including receiver) and the first argument | |
|
rmcilroy
2015/10/13 14:07:29
/s/argumnents/arguments
oth
2015/10/14 08:40:09
Done.
| |
| 109 // located at |first_arg|. | |
| 101 Node* CallJS(Node* function, Node* first_arg, Node* arg_count); | 110 Node* CallJS(Node* function, Node* first_arg, Node* arg_count); |
| 102 | 111 |
| 103 // Call an IC code stub. | 112 // Call an IC code stub. |
| 104 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, | 113 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, |
| 105 Node* arg2, Node* arg3, Node* arg4); | 114 Node* arg2, Node* arg3, Node* arg4); |
| 106 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, | 115 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, |
| 107 Node* arg2, Node* arg3, Node* arg4, Node* arg5); | 116 Node* arg2, Node* arg3, Node* arg4, Node* arg5); |
| 108 | 117 |
| 109 // Call runtime function. | 118 // Call runtime function. |
| 110 Node* CallRuntime(Node* function_id, Node* first_arg, Node* arg_count); | 119 Node* CallRuntime(Node* function_id, Node* first_arg, Node* arg_count); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 185 bool code_generated_; | 194 bool code_generated_; |
| 186 | 195 |
| 187 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 196 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
| 188 }; | 197 }; |
| 189 | 198 |
| 190 } // namespace compiler | 199 } // namespace compiler |
| 191 } // namespace internal | 200 } // namespace internal |
| 192 } // namespace v8 | 201 } // namespace v8 |
| 193 | 202 |
| 194 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ | 203 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
| OLD | NEW |