| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_OPT_CODE_GENERATOR_IA32_H_ | 5 #ifndef VM_OPT_CODE_GENERATOR_IA32_H_ |
| 6 #define VM_OPT_CODE_GENERATOR_IA32_H_ | 6 #define VM_OPT_CODE_GENERATOR_IA32_H_ |
| 7 | 7 |
| 8 #ifndef VM_OPT_CODE_GENERATOR_H_ | 8 #ifndef VM_OPT_CODE_GENERATOR_H_ |
| 9 #error Do not include opt_code_generator_ia32.h; use opt_code_generator.h. | 9 #error Do not include opt_code_generator_ia32.h; use opt_code_generator.h. |
| 10 #endif | 10 #endif |
| 11 | 11 |
| 12 #include "vm/code_generator.h" | 12 #include "vm/code_generator.h" |
| 13 | 13 |
| 14 namespace dart { | 14 namespace dart { |
| 15 | 15 |
| 16 // Forward declarations. | 16 // Forward declarations. |
| 17 class ClassesForLocals; | 17 class ClassesForLocals; |
| 18 class DeoptimizationBlob; | 18 class DeoptimizationBlob; |
| 19 struct InstanceSetterArgs; | 19 struct InstanceSetterArgs; |
| 20 | 20 |
| 21 // Temporary hierarchy, until optimized code generator implemented. | 21 // Temporary hierarchy, until optimized code generator implemented. |
| 22 // The optimizing compiler does not run if type checks are enabled. | 22 // The optimizing compiler does not run if type checks are enabled. |
| 23 class OptimizingCodeGenerator : public CodeGenerator { | 23 class OptimizingCodeGenerator : public CodeGenerator { |
| 24 public: | 24 public: |
| 25 OptimizingCodeGenerator(Assembler* assembler, | 25 OptimizingCodeGenerator(Assembler* assembler, |
| 26 const ParsedFunction& parsed_function); | 26 const ParsedFunction& parsed_function); |
| 27 | 27 |
| 28 virtual void VisitBinaryOpNode(BinaryOpNode* node); | 28 virtual void VisitBinaryOpNode(BinaryOpNode* node); |
| 29 virtual void VisitIncrOpInstanceFieldNode(IncrOpInstanceFieldNode* node); | |
| 30 virtual void VisitInstanceGetterNode(InstanceGetterNode* node); | 29 virtual void VisitInstanceGetterNode(InstanceGetterNode* node); |
| 31 virtual void VisitInstanceSetterNode(InstanceSetterNode* node); | 30 virtual void VisitInstanceSetterNode(InstanceSetterNode* node); |
| 32 virtual void VisitComparisonNode(ComparisonNode* node); | 31 virtual void VisitComparisonNode(ComparisonNode* node); |
| 33 virtual void VisitLoadIndexedNode(LoadIndexedNode* node); | 32 virtual void VisitLoadIndexedNode(LoadIndexedNode* node); |
| 34 virtual void VisitStoreIndexedNode(StoreIndexedNode* node); | 33 virtual void VisitStoreIndexedNode(StoreIndexedNode* node); |
| 35 virtual void VisitLiteralNode(LiteralNode* node); | 34 virtual void VisitLiteralNode(LiteralNode* node); |
| 36 virtual void VisitLoadLocalNode(LoadLocalNode* node); | 35 virtual void VisitLoadLocalNode(LoadLocalNode* node); |
| 37 virtual void VisitStoreLocalNode(StoreLocalNode* node); | 36 virtual void VisitStoreLocalNode(StoreLocalNode* node); |
| 38 virtual void VisitForNode(ForNode* node); | 37 virtual void VisitForNode(ForNode* node); |
| 39 virtual void VisitDoWhileNode(DoWhileNode* node); | 38 virtual void VisitDoWhileNode(DoWhileNode* node); |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 const Class& double_class_; | 157 const Class& double_class_; |
| 159 const Class& growable_object_array_class_; | 158 const Class& growable_object_array_class_; |
| 160 | 159 |
| 161 DISALLOW_IMPLICIT_CONSTRUCTORS(OptimizingCodeGenerator); | 160 DISALLOW_IMPLICIT_CONSTRUCTORS(OptimizingCodeGenerator); |
| 162 }; | 161 }; |
| 163 | 162 |
| 164 } // namespace dart | 163 } // namespace dart |
| 165 | 164 |
| 166 | 165 |
| 167 #endif // VM_OPT_CODE_GENERATOR_IA32_H_ | 166 #endif // VM_OPT_CODE_GENERATOR_IA32_H_ |
| OLD | NEW |