| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 void SetAccumulator(Node* value); | 49 void SetAccumulator(Node* value); |
| 50 | 50 |
| 51 // Loads from and stores to the interpreter register file. | 51 // Loads from and stores to the interpreter register file. |
| 52 Node* LoadRegister(Node* reg_index); | 52 Node* LoadRegister(Node* reg_index); |
| 53 Node* StoreRegister(Node* value, Node* reg_index); | 53 Node* StoreRegister(Node* value, Node* reg_index); |
| 54 | 54 |
| 55 // Constants. | 55 // Constants. |
| 56 Node* Int32Constant(int value); | 56 Node* Int32Constant(int value); |
| 57 Node* IntPtrConstant(intptr_t value); | 57 Node* IntPtrConstant(intptr_t value); |
| 58 Node* NumberConstant(double value); | 58 Node* NumberConstant(double value); |
| 59 Node* HeapConstant(Unique<HeapObject> object); | 59 Node* HeapConstant(Handle<HeapObject> object); |
| 60 | 60 |
| 61 // Tag and untag Smi values. | 61 // Tag and untag Smi values. |
| 62 Node* SmiTag(Node* value); | 62 Node* SmiTag(Node* value); |
| 63 Node* SmiUntag(Node* value); | 63 Node* SmiUntag(Node* value); |
| 64 | 64 |
| 65 // Load a field from an object on the heap. | 65 // Load a field from an object on the heap. |
| 66 Node* LoadObjectField(Node* object, int offset); | 66 Node* LoadObjectField(Node* object, int offset); |
| 67 | 67 |
| 68 // Load |slot_index| from a context. | 68 // Load |slot_index| from a context. |
| 69 Node* LoadContextSlot(Node* context, int slot_index); | 69 Node* LoadContextSlot(Node* context, int slot_index); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 bool code_generated_; | 130 bool code_generated_; |
| 131 | 131 |
| 132 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 132 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
| 133 }; | 133 }; |
| 134 | 134 |
| 135 } // namespace interpreter | 135 } // namespace interpreter |
| 136 } // namespace internal | 136 } // namespace internal |
| 137 } // namespace v8 | 137 } // namespace v8 |
| 138 | 138 |
| 139 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ | 139 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
| OLD | NEW |