| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 void SetAccumulator(Node* value); | 52 void SetAccumulator(Node* value); |
| 53 | 53 |
| 54 // Loads from and stores to the interpreter register file. | 54 // Loads from and stores to the interpreter register file. |
| 55 Node* LoadRegister(Node* reg_index); | 55 Node* LoadRegister(Node* reg_index); |
| 56 Node* StoreRegister(Node* value, Node* reg_index); | 56 Node* StoreRegister(Node* value, Node* reg_index); |
| 57 | 57 |
| 58 // Constants. | 58 // Constants. |
| 59 Node* Int32Constant(int value); | 59 Node* Int32Constant(int value); |
| 60 Node* IntPtrConstant(intptr_t value); | 60 Node* IntPtrConstant(intptr_t value); |
| 61 Node* NumberConstant(double value); | 61 Node* NumberConstant(double value); |
| 62 Node* HeapConstant(Unique<HeapObject> object); | 62 Node* HeapConstant(Handle<HeapObject> object); |
| 63 | 63 |
| 64 // Tag and untag Smi values. | 64 // Tag and untag Smi values. |
| 65 Node* SmiTag(Node* value); | 65 Node* SmiTag(Node* value); |
| 66 Node* SmiUntag(Node* value); | 66 Node* SmiUntag(Node* value); |
| 67 | 67 |
| 68 // Load constant at |index| in the constant pool. | 68 // Load constant at |index| in the constant pool. |
| 69 Node* LoadConstantPoolEntry(Node* index); | 69 Node* LoadConstantPoolEntry(Node* index); |
| 70 | 70 |
| 71 // Load a field from an object on the heap. | 71 // Load a field from an object on the heap. |
| 72 Node* LoadObjectField(Node* object, int offset); | 72 Node* LoadObjectField(Node* object, int offset); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 bool code_generated_; | 136 bool code_generated_; |
| 137 | 137 |
| 138 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 138 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 } // namespace interpreter | 141 } // namespace interpreter |
| 142 } // namespace internal | 142 } // namespace internal |
| 143 } // namespace v8 | 143 } // namespace v8 |
| 144 | 144 |
| 145 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ | 145 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
| OLD | NEW |