| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 Node* WordShl(Node* value, int shift); | 90 Node* WordShl(Node* value, int shift); |
| 91 | 91 |
| 92 // Load constant at |index| in the constant pool. | 92 // Load constant at |index| in the constant pool. |
| 93 Node* LoadConstantPoolEntry(Node* index); | 93 Node* LoadConstantPoolEntry(Node* index); |
| 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 // Stores |value| into |slot_index| of |context|. |
| 101 Node* StoreContextSlot(Node* context, Node* slot_index, Node* value); |
| 100 | 102 |
| 101 // Load the TypeFeedbackVector for the current function. | 103 // Load the TypeFeedbackVector for the current function. |
| 102 Node* LoadTypeFeedbackVector(); | 104 Node* LoadTypeFeedbackVector(); |
| 103 | 105 |
| 104 // Call JSFunction or Callable |function| with |arg_count| (not including | 106 // Call JSFunction or Callable |function| with |arg_count| (not including |
| 105 // receiver) and the first argument located at |first_arg|. | 107 // receiver) and the first argument located at |first_arg|. |
| 106 Node* CallJS(Node* function, Node* first_arg, Node* arg_count); | 108 Node* CallJS(Node* function, Node* first_arg, Node* arg_count); |
| 107 | 109 |
| 108 // Call an IC code stub. | 110 // Call an IC code stub. |
| 109 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, | 111 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 bool code_generated_; | 195 bool code_generated_; |
| 194 | 196 |
| 195 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 197 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
| 196 }; | 198 }; |
| 197 | 199 |
| 198 } // namespace compiler | 200 } // namespace compiler |
| 199 } // namespace internal | 201 } // namespace internal |
| 200 } // namespace v8 | 202 } // namespace v8 |
| 201 | 203 |
| 202 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ | 204 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
| OLD | NEW |