| 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" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 class ControlScopeForTopLevel; | 35 class ControlScopeForTopLevel; |
| 36 class ControlScopeForTryCatch; | 36 class ControlScopeForTryCatch; |
| 37 class ControlScopeForTryFinally; | 37 class ControlScopeForTryFinally; |
| 38 class ExpressionResultScope; | 38 class ExpressionResultScope; |
| 39 class EffectResultScope; | 39 class EffectResultScope; |
| 40 class AccumulatorResultScope; | 40 class AccumulatorResultScope; |
| 41 class RegisterResultScope; | 41 class RegisterResultScope; |
| 42 class RegisterAllocationScope; | 42 class RegisterAllocationScope; |
| 43 | 43 |
| 44 void MakeBytecodeBody(); | 44 void MakeBytecodeBody(); |
| 45 Register NextContextRegister() const; | |
| 46 | 45 |
| 47 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); | 46 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); |
| 48 | 47 |
| 49 // Dispatched from VisitBinaryOperation. | 48 // Dispatched from VisitBinaryOperation. |
| 50 void VisitArithmeticExpression(BinaryOperation* binop); | 49 void VisitArithmeticExpression(BinaryOperation* binop); |
| 51 void VisitCommaExpression(BinaryOperation* binop); | 50 void VisitCommaExpression(BinaryOperation* binop); |
| 52 void VisitLogicalOrExpression(BinaryOperation* binop); | 51 void VisitLogicalOrExpression(BinaryOperation* binop); |
| 53 void VisitLogicalAndExpression(BinaryOperation* binop); | 52 void VisitLogicalAndExpression(BinaryOperation* binop); |
| 54 | 53 |
| 55 // Dispatched from VisitUnaryOperation. | 54 // Dispatched from VisitUnaryOperation. |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 ContextScope* execution_context_; | 150 ContextScope* execution_context_; |
| 152 ExpressionResultScope* execution_result_; | 151 ExpressionResultScope* execution_result_; |
| 153 RegisterAllocationScope* register_allocator_; | 152 RegisterAllocationScope* register_allocator_; |
| 154 }; | 153 }; |
| 155 | 154 |
| 156 } // namespace interpreter | 155 } // namespace interpreter |
| 157 } // namespace internal | 156 } // namespace internal |
| 158 } // namespace v8 | 157 } // namespace v8 |
| 159 | 158 |
| 160 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 159 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
| OLD | NEW |