| 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_INTERPRETER_INTERPRETER_ASSEMBLER_H_ | 5 #ifndef V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ |
| 6 #define V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ | 6 #define V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/base/smart-pointers.h" | 9 #include "src/base/smart-pointers.h" |
| 10 #include "src/builtins.h" | 10 #include "src/builtins.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // Returns the next consecutive register. | 60 // Returns the next consecutive register. |
| 61 compiler::Node* NextRegister(compiler::Node* reg_index); | 61 compiler::Node* NextRegister(compiler::Node* reg_index); |
| 62 | 62 |
| 63 // Returns the location in memory of the register |reg_index| in the | 63 // Returns the location in memory of the register |reg_index| in the |
| 64 // interpreter register file. | 64 // interpreter register file. |
| 65 compiler::Node* RegisterLocation(compiler::Node* reg_index); | 65 compiler::Node* RegisterLocation(compiler::Node* reg_index); |
| 66 | 66 |
| 67 // Load constant at |index| in the constant pool. | 67 // Load constant at |index| in the constant pool. |
| 68 compiler::Node* LoadConstantPoolEntry(compiler::Node* index); | 68 compiler::Node* LoadConstantPoolEntry(compiler::Node* index); |
| 69 | 69 |
| 70 // Load a field from an object on the heap. | |
| 71 compiler::Node* LoadObjectField(compiler::Node* object, int offset); | |
| 72 | |
| 73 // Load |slot_index| from |context|. | 70 // Load |slot_index| from |context|. |
| 74 compiler::Node* LoadContextSlot(compiler::Node* context, int slot_index); | 71 compiler::Node* LoadContextSlot(compiler::Node* context, int slot_index); |
| 75 compiler::Node* LoadContextSlot(compiler::Node* context, | 72 compiler::Node* LoadContextSlot(compiler::Node* context, |
| 76 compiler::Node* slot_index); | 73 compiler::Node* slot_index); |
| 77 // Stores |value| into |slot_index| of |context|. | 74 // Stores |value| into |slot_index| of |context|. |
| 78 compiler::Node* StoreContextSlot(compiler::Node* context, | 75 compiler::Node* StoreContextSlot(compiler::Node* context, |
| 79 compiler::Node* slot_index, | 76 compiler::Node* slot_index, |
| 80 compiler::Node* value); | 77 compiler::Node* value); |
| 81 | 78 |
| 82 // Load the TypeFeedbackVector for the current function. | 79 // Load the TypeFeedbackVector for the current function. |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 compiler::Node* stack_pointer_before_call_; | 232 compiler::Node* stack_pointer_before_call_; |
| 236 | 233 |
| 237 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 234 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
| 238 }; | 235 }; |
| 239 | 236 |
| 240 } // namespace interpreter | 237 } // namespace interpreter |
| 241 } // namespace internal | 238 } // namespace internal |
| 242 } // namespace v8 | 239 } // namespace v8 |
| 243 | 240 |
| 244 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ | 241 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ |
| OLD | NEW |