Chromium Code Reviews| 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.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 12 matching lines...) Expand all Loading... | |
| 23 #define DECLARE_VISIT(type) void Visit##type(type* node) override; | 23 #define DECLARE_VISIT(type) void Visit##type(type* node) override; |
| 24 AST_NODE_LIST(DECLARE_VISIT) | 24 AST_NODE_LIST(DECLARE_VISIT) |
| 25 #undef DECLARE_VISIT | 25 #undef DECLARE_VISIT |
| 26 | 26 |
| 27 // Visiting function for declarations list is overridden. | 27 // Visiting function for declarations list is overridden. |
| 28 void VisitDeclarations(ZoneList<Declaration*>* declarations) override; | 28 void VisitDeclarations(ZoneList<Declaration*>* declarations) override; |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 class ContextScope; | 31 class ContextScope; |
| 32 class ControlScope; | 32 class ControlScope; |
| 33 class ControlScopeForSwitch; | |
|
oth
2015/10/30 10:10:04
Nit - can we have alpha sorting here. ControlScope
rmcilroy
2015/10/30 11:47:00
Done.
| |
| 33 class ControlScopeForIteration; | 34 class ControlScopeForIteration; |
| 34 class ExpressionResultScope; | 35 class ExpressionResultScope; |
| 35 class EffectResultScope; | 36 class EffectResultScope; |
| 36 class AccumulatorResultScope; | 37 class AccumulatorResultScope; |
| 37 class RegisterResultScope; | 38 class RegisterResultScope; |
| 38 | 39 |
| 39 void MakeBytecodeBody(); | 40 void MakeBytecodeBody(); |
| 40 Register NextContextRegister() const; | 41 Register NextContextRegister() const; |
| 41 | 42 |
| 42 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); | 43 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 135 | 136 |
| 136 int binary_expression_depth_; | 137 int binary_expression_depth_; |
| 137 ZoneSet<int> binary_expression_hazard_set_; | 138 ZoneSet<int> binary_expression_hazard_set_; |
| 138 }; | 139 }; |
| 139 | 140 |
| 140 } // namespace interpreter | 141 } // namespace interpreter |
| 141 } // namespace internal | 142 } // namespace internal |
| 142 } // namespace v8 | 143 } // namespace v8 |
| 143 | 144 |
| 144 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 145 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
| OLD | NEW |