OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef V8_INTERPRETER_INTERPRETER_H_ |
| 6 #define V8_INTERPRETER_INTERPRETER_H_ |
| 7 |
| 8 #include "src/base/macros.h" |
| 9 #include "src/interpreter/bytecodes.h" |
| 10 |
| 11 namespace v8 { |
| 12 namespace internal { |
| 13 |
| 14 class Isolate; |
| 15 class CompilationInfo; |
| 16 |
| 17 namespace compiler { |
| 18 class InterpreterAssembler; |
| 19 } |
| 20 |
| 21 namespace interpreter { |
| 22 |
| 23 class Interpreter { |
| 24 public: |
| 25 Interpreter(); |
| 26 virtual ~Interpreter() {} |
| 27 |
| 28 void Initialize(Isolate* isolate, bool create_heap_objects); |
| 29 |
| 30 private: |
| 31 // Bytecode handler generator functions. |
| 32 #define DECLARE_BYTECODE_HANDLER_GENERATOR(Name, _) \ |
| 33 void Do##Name(compiler::InterpreterAssembler* assembler); |
| 34 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR) |
| 35 #undef DECLARE_BYTECODE_HANDLER_GENERATOR |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(Interpreter); |
| 38 }; |
| 39 |
| 40 } // namespace interpreter |
| 41 } // namespace internal |
| 42 } // namespace v8 |
| 43 |
| 44 #endif // V8_HEAP_GC_IDLE_TIME_HANDLER_H_ |
OLD | NEW |