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.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 namespace interpreter { | 14 namespace interpreter { |
15 | 15 |
16 class BytecodeGenerator final : public AstVisitor { | 16 class BytecodeGenerator final : public AstVisitor { |
17 public: | 17 public: |
18 BytecodeGenerator(Isolate* isolate, Zone* zone); | 18 BytecodeGenerator(Isolate* isolate, Zone* zone); |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 ContextScope* execution_context_; | 168 ContextScope* execution_context_; |
169 ExpressionResultScope* execution_result_; | 169 ExpressionResultScope* execution_result_; |
170 AssignmentHazardHelper assignment_hazard_helper_; | 170 AssignmentHazardHelper assignment_hazard_helper_; |
171 }; | 171 }; |
172 | 172 |
173 } // namespace interpreter | 173 } // namespace interpreter |
174 } // namespace internal | 174 } // namespace internal |
175 } // namespace v8 | 175 } // namespace v8 |
176 | 176 |
177 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 177 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
OLD | NEW |