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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 Node* IntPtrAdd(Node* a, Node* b); | 83 Node* IntPtrAdd(Node* a, Node* b); |
84 Node* IntPtrSub(Node* a, Node* b); | 84 Node* IntPtrSub(Node* a, Node* b); |
85 Node* WordShl(Node* value, int shift); | 85 Node* WordShl(Node* value, int shift); |
86 | 86 |
87 // Load constant at |index| in the constant pool. | 87 // Load constant at |index| in the constant pool. |
88 Node* LoadConstantPoolEntry(Node* index); | 88 Node* LoadConstantPoolEntry(Node* index); |
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 a context. | 93 // Load |slot_index| from |context|. |
94 Node* LoadContextSlot(Node* context, int slot_index); | 94 Node* LoadContextSlot(Node* context, Node* slot_index); |
95 | |
96 // Load |slot_index| from the current context. | |
97 Node* LoadContextSlot(int slot_index); | |
98 | 95 |
99 // Load the TypeFeedbackVector for the current function. | 96 // Load the TypeFeedbackVector for the current function. |
100 Node* LoadTypeFeedbackVector(); | 97 Node* LoadTypeFeedbackVector(); |
101 | 98 |
102 // Call JSFunction or Callable |function| with |arg_count| (not including | 99 // Call JSFunction or Callable |function| with |arg_count| (not including |
103 // receiver) and the first argument located at |first_arg|. | 100 // receiver) and the first argument located at |first_arg|. |
104 Node* CallJS(Node* function, Node* first_arg, Node* arg_count); | 101 Node* CallJS(Node* function, Node* first_arg, Node* arg_count); |
105 | 102 |
106 // Call an IC code stub. | 103 // Call an IC code stub. |
107 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, | 104 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 bool code_generated_; | 185 bool code_generated_; |
189 | 186 |
190 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 187 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
191 }; | 188 }; |
192 | 189 |
193 } // namespace compiler | 190 } // namespace compiler |
194 } // namespace internal | 191 } // namespace internal |
195 } // namespace v8 | 192 } // namespace v8 |
196 | 193 |
197 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ | 194 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
OLD | NEW |