| 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 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 virtual void VisitStoreIndexedNode(StoreIndexedNode* node); | 33 virtual void VisitStoreIndexedNode(StoreIndexedNode* node); |
| 34 virtual void VisitLiteralNode(LiteralNode* node); | 34 virtual void VisitLiteralNode(LiteralNode* node); |
| 35 virtual void VisitLoadLocalNode(LoadLocalNode* node); | 35 virtual void VisitLoadLocalNode(LoadLocalNode* node); |
| 36 virtual void VisitStoreLocalNode(StoreLocalNode* node); | 36 virtual void VisitStoreLocalNode(StoreLocalNode* node); |
| 37 virtual void VisitForNode(ForNode* node); | 37 virtual void VisitForNode(ForNode* node); |
| 38 virtual void VisitDoWhileNode(DoWhileNode* node); | 38 virtual void VisitDoWhileNode(DoWhileNode* node); |
| 39 virtual void VisitWhileNode(WhileNode* node); | 39 virtual void VisitWhileNode(WhileNode* node); |
| 40 virtual void VisitIfNode(IfNode* node); | 40 virtual void VisitIfNode(IfNode* node); |
| 41 virtual void VisitInstanceCallNode(InstanceCallNode* node); | 41 virtual void VisitInstanceCallNode(InstanceCallNode* node); |
| 42 virtual void VisitStaticCallNode(StaticCallNode* node); | 42 virtual void VisitStaticCallNode(StaticCallNode* node); |
| 43 virtual void VisitReturnNode(ReturnNode* node); |
| 44 virtual void VisitSequenceNode(SequenceNode* node_sequence); |
| 45 virtual void VisitStoreInstanceFieldNode(StoreInstanceFieldNode* node); |
| 43 | 46 |
| 44 // Return true if intrinsification succeeded and no more code is needed. | 47 // Return true if intrinsification succeeded and no more code is needed. |
| 45 // Returns false if either no intrinsification occured or if intrinsified | 48 // Returns false if either no intrinsification occured or if intrinsified |
| 46 // code needs the rest for slow case execution. | 49 // code needs the rest for slow case execution. |
| 47 virtual bool TryIntrinsify(); | 50 virtual bool TryIntrinsify(); |
| 48 virtual void GeneratePreEntryCode(); | 51 virtual void GeneratePreEntryCode(); |
| 49 virtual bool IsOptimizing() const { return true; } | 52 virtual bool IsOptimizing() const { return true; } |
| 50 | 53 |
| 51 virtual void CountBackwardLoop() {} | 54 virtual void CountBackwardLoop() {} |
| 52 virtual void GenerateDeferredCode(); | 55 virtual void GenerateDeferredCode(); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 const Class& smi_class_; | 158 const Class& smi_class_; |
| 156 const Class& double_class_; | 159 const Class& double_class_; |
| 157 | 160 |
| 158 DISALLOW_IMPLICIT_CONSTRUCTORS(OptimizingCodeGenerator); | 161 DISALLOW_IMPLICIT_CONSTRUCTORS(OptimizingCodeGenerator); |
| 159 }; | 162 }; |
| 160 | 163 |
| 161 } // namespace dart | 164 } // namespace dart |
| 162 | 165 |
| 163 | 166 |
| 164 #endif // VM_OPT_CODE_GENERATOR_IA32_H_ | 167 #endif // VM_OPT_CODE_GENERATOR_IA32_H_ |
| OLD | NEW |