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/builtins/builtins.h" | 9 #include "src/builtins/builtins.h" |
10 #include "src/code-stub-assembler.h" | 10 #include "src/code-stub-assembler.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 compiler::Node* BytecodeOperandIntrinsicId(int operand_index); | 46 compiler::Node* BytecodeOperandIntrinsicId(int operand_index); |
47 | 47 |
48 // Accumulator. | 48 // Accumulator. |
49 compiler::Node* GetAccumulator(); | 49 compiler::Node* GetAccumulator(); |
50 void SetAccumulator(compiler::Node* value); | 50 void SetAccumulator(compiler::Node* value); |
51 | 51 |
52 // Context. | 52 // Context. |
53 compiler::Node* GetContext(); | 53 compiler::Node* GetContext(); |
54 void SetContext(compiler::Node* value); | 54 void SetContext(compiler::Node* value); |
55 | 55 |
| 56 // Context at |depth| in the context chain starting at |context| |
| 57 compiler::Node* GetContextAtDepth(compiler::Node* context, |
| 58 compiler::Node* depth); |
| 59 |
56 // Number of registers. | 60 // Number of registers. |
57 compiler::Node* RegisterCount(); | 61 compiler::Node* RegisterCount(); |
58 | 62 |
59 // Backup/restore register file to/from a fixed array of the correct length. | 63 // Backup/restore register file to/from a fixed array of the correct length. |
60 compiler::Node* ExportRegisterFile(compiler::Node* array); | 64 compiler::Node* ExportRegisterFile(compiler::Node* array); |
61 compiler::Node* ImportRegisterFile(compiler::Node* array); | 65 compiler::Node* ImportRegisterFile(compiler::Node* array); |
62 | 66 |
63 // Loads from and stores to the interpreter register file. | 67 // Loads from and stores to the interpreter register file. |
64 compiler::Node* LoadRegister(Register reg); | 68 compiler::Node* LoadRegister(Register reg); |
65 compiler::Node* LoadRegister(compiler::Node* reg_index); | 69 compiler::Node* LoadRegister(compiler::Node* reg_index); |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 compiler::Node* stack_pointer_before_call_; | 295 compiler::Node* stack_pointer_before_call_; |
292 | 296 |
293 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 297 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
294 }; | 298 }; |
295 | 299 |
296 } // namespace interpreter | 300 } // namespace interpreter |
297 } // namespace internal | 301 } // namespace internal |
298 } // namespace v8 | 302 } // namespace v8 |
299 | 303 |
300 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ | 304 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ |
OLD | NEW |