| 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_BYTECODE_GENERATOR_H_ | 5 #ifndef V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
| 6 #define V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 6 #define V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
| 7 | 7 |
| 8 #include "src/ast/ast.h" | 8 #include "src/ast/ast.h" |
| 9 #include "src/interpreter/bytecode-array-builder.h" | 9 #include "src/interpreter/bytecode-array-builder.h" |
| 10 #include "src/interpreter/bytecodes.h" | 10 #include "src/interpreter/bytecodes.h" |
| 11 | 11 |
| 12 namespace v8 { | 12 namespace v8 { |
| 13 namespace internal { | 13 namespace internal { |
| 14 |
| 15 class CompilationInfo; |
| 16 |
| 14 namespace interpreter { | 17 namespace interpreter { |
| 15 | 18 |
| 16 class LoopBuilder; | 19 class LoopBuilder; |
| 17 | 20 |
| 18 class BytecodeGenerator final : public AstVisitor { | 21 class BytecodeGenerator final : public AstVisitor { |
| 19 public: | 22 public: |
| 20 explicit BytecodeGenerator(CompilationInfo* info); | 23 explicit BytecodeGenerator(CompilationInfo* info); |
| 21 | 24 |
| 22 Handle<BytecodeArray> MakeBytecode(); | 25 Handle<BytecodeArray> MakeBytecode(); |
| 23 | 26 |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 Register generator_state_; | 215 Register generator_state_; |
| 213 int try_catch_nesting_level_; | 216 int try_catch_nesting_level_; |
| 214 int try_finally_nesting_level_; | 217 int try_finally_nesting_level_; |
| 215 }; | 218 }; |
| 216 | 219 |
| 217 } // namespace interpreter | 220 } // namespace interpreter |
| 218 } // namespace internal | 221 } // namespace internal |
| 219 } // namespace v8 | 222 } // namespace v8 |
| 220 | 223 |
| 221 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 224 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
| OLD | NEW |