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" |
11 #include "src/frames.h" | 11 #include "src/frames.h" |
| 12 #include "src/globals.h" |
12 #include "src/interpreter/bytecode-register.h" | 13 #include "src/interpreter/bytecode-register.h" |
13 #include "src/interpreter/bytecodes.h" | 14 #include "src/interpreter/bytecodes.h" |
14 #include "src/runtime/runtime.h" | 15 #include "src/runtime/runtime.h" |
15 | 16 |
16 namespace v8 { | 17 namespace v8 { |
17 namespace internal { | 18 namespace internal { |
18 namespace interpreter { | 19 namespace interpreter { |
19 | 20 |
20 class InterpreterAssembler : public CodeStubAssembler { | 21 class V8_EXPORT_PRIVATE InterpreterAssembler : public CodeStubAssembler { |
21 public: | 22 public: |
22 InterpreterAssembler(Isolate* isolate, Zone* zone, Bytecode bytecode, | 23 InterpreterAssembler(Isolate* isolate, Zone* zone, Bytecode bytecode, |
23 OperandScale operand_scale); | 24 OperandScale operand_scale); |
24 virtual ~InterpreterAssembler(); | 25 virtual ~InterpreterAssembler(); |
25 | 26 |
26 // Returns the count immediate for bytecode operand |operand_index| in the | 27 // Returns the count immediate for bytecode operand |operand_index| in the |
27 // current bytecode. | 28 // current bytecode. |
28 compiler::Node* BytecodeOperandCount(int operand_index); | 29 compiler::Node* BytecodeOperandCount(int operand_index); |
29 // Returns the 8-bit flag for bytecode operand |operand_index| in the | 30 // Returns the 8-bit flag for bytecode operand |operand_index| in the |
30 // current bytecode. | 31 // current bytecode. |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 compiler::Node* stack_pointer_before_call_; | 309 compiler::Node* stack_pointer_before_call_; |
309 | 310 |
310 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 311 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
311 }; | 312 }; |
312 | 313 |
313 } // namespace interpreter | 314 } // namespace interpreter |
314 } // namespace internal | 315 } // namespace internal |
315 } // namespace v8 | 316 } // namespace v8 |
316 | 317 |
317 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ | 318 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ |
OLD | NEW |