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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 compiler::Node* GetAccumulator(); | 46 compiler::Node* GetAccumulator(); |
47 void SetAccumulator(compiler::Node* value); | 47 void SetAccumulator(compiler::Node* value); |
48 | 48 |
49 // Context. | 49 // Context. |
50 compiler::Node* GetContext(); | 50 compiler::Node* GetContext(); |
51 void SetContext(compiler::Node* value); | 51 void SetContext(compiler::Node* value); |
52 | 52 |
53 // Number of registers. | 53 // Number of registers. |
54 compiler::Node* RegisterCount(); | 54 compiler::Node* RegisterCount(); |
55 | 55 |
56 // Backup/restore register file to/from a fixed array. | 56 // Backup/restore register file to/from a fixed array of the correct length. |
57 compiler::Node* ExportRegisterFile(); | 57 compiler::Node* ExportRegisterFile(compiler::Node* array); |
58 compiler::Node* ImportRegisterFile(compiler::Node* array); | 58 compiler::Node* ImportRegisterFile(compiler::Node* array); |
59 | 59 |
60 // Loads from and stores to the interpreter register file. | 60 // Loads from and stores to the interpreter register file. |
61 compiler::Node* LoadRegister(Register reg); | 61 compiler::Node* LoadRegister(Register reg); |
62 compiler::Node* LoadRegister(compiler::Node* reg_index); | 62 compiler::Node* LoadRegister(compiler::Node* reg_index); |
63 compiler::Node* StoreRegister(compiler::Node* value, Register reg); | 63 compiler::Node* StoreRegister(compiler::Node* value, Register reg); |
64 compiler::Node* StoreRegister(compiler::Node* value, | 64 compiler::Node* StoreRegister(compiler::Node* value, |
65 compiler::Node* reg_index); | 65 compiler::Node* reg_index); |
66 | 66 |
67 // Returns the next consecutive register. | 67 // Returns the next consecutive register. |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 compiler::Node* stack_pointer_before_call_; | 239 compiler::Node* stack_pointer_before_call_; |
240 | 240 |
241 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 241 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
242 }; | 242 }; |
243 | 243 |
244 } // namespace interpreter | 244 } // namespace interpreter |
245 } // namespace internal | 245 } // namespace internal |
246 } // namespace v8 | 246 } // namespace v8 |
247 | 247 |
248 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ | 248 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ |
OLD | NEW |