| 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" |
| 11 #include "src/compiler/code-stub-assembler.h" | 11 #include "src/code-stub-assembler.h" |
| 12 #include "src/frames.h" | 12 #include "src/frames.h" |
| 13 #include "src/interpreter/bytecodes.h" | 13 #include "src/interpreter/bytecodes.h" |
| 14 #include "src/runtime/runtime.h" | 14 #include "src/runtime/runtime.h" |
| 15 | 15 |
| 16 namespace v8 { | 16 namespace v8 { |
| 17 namespace internal { | 17 namespace internal { |
| 18 namespace interpreter { | 18 namespace interpreter { |
| 19 | 19 |
| 20 class InterpreterAssembler : public compiler::CodeStubAssembler { | 20 class InterpreterAssembler : public CodeStubAssembler { |
| 21 public: | 21 public: |
| 22 InterpreterAssembler(Isolate* isolate, Zone* zone, Bytecode bytecode, | 22 InterpreterAssembler(Isolate* isolate, Zone* zone, Bytecode bytecode, |
| 23 OperandScale operand_scale); | 23 OperandScale operand_scale); |
| 24 virtual ~InterpreterAssembler(); | 24 virtual ~InterpreterAssembler(); |
| 25 | 25 |
| 26 // Returns the count immediate for bytecode operand |operand_index| in the | 26 // Returns the count immediate for bytecode operand |operand_index| in the |
| 27 // current bytecode. | 27 // current bytecode. |
| 28 compiler::Node* BytecodeOperandCount(int operand_index); | 28 compiler::Node* BytecodeOperandCount(int operand_index); |
| 29 // Returns the 8-bit flag for bytecode operand |operand_index| in the | 29 // Returns the 8-bit flag for bytecode operand |operand_index| in the |
| 30 // current bytecode. | 30 // current bytecode. |
| (...skipping 208 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 |