| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 virtual void VisitTryCatchNode(TryCatchNode* node); | 49 virtual void VisitTryCatchNode(TryCatchNode* node); |
| 50 virtual void VisitUnaryOpNode(UnaryOpNode* node); | 50 virtual void VisitUnaryOpNode(UnaryOpNode* node); |
| 51 | 51 |
| 52 // Return true if intrinsification succeeded and no more code is needed. | 52 // Return true if intrinsification succeeded and no more code is needed. |
| 53 // Returns false if either no intrinsification occured or if intrinsified | 53 // Returns false if either no intrinsification occured or if intrinsified |
| 54 // code needs the rest for slow case execution. | 54 // code needs the rest for slow case execution. |
| 55 virtual bool TryIntrinsify(); | 55 virtual bool TryIntrinsify(); |
| 56 virtual void GeneratePreEntryCode(); | 56 virtual void GeneratePreEntryCode(); |
| 57 virtual bool IsOptimizing() const { return true; } | 57 virtual bool IsOptimizing() const { return true; } |
| 58 | 58 |
| 59 virtual void CountBackwardLoop() {} | |
| 60 virtual void GenerateDeferredCode(); | 59 virtual void GenerateDeferredCode(); |
| 61 | 60 |
| 62 private: | 61 private: |
| 63 friend class DeoptimizationBlob; | 62 friend class DeoptimizationBlob; |
| 64 | 63 |
| 65 DeoptimizationBlob* AddDeoptimizationBlob(AstNode* node, | 64 DeoptimizationBlob* AddDeoptimizationBlob(AstNode* node, |
| 66 DeoptReasonId reason_id); | 65 DeoptReasonId reason_id); |
| 67 DeoptimizationBlob* AddDeoptimizationBlob(AstNode* node, | 66 DeoptimizationBlob* AddDeoptimizationBlob(AstNode* node, |
| 68 Register reg1, | 67 Register reg1, |
| 69 DeoptReasonId reason_id); | 68 DeoptReasonId reason_id); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 const Class& smi_class_; | 165 const Class& smi_class_; |
| 167 const Class& double_class_; | 166 const Class& double_class_; |
| 168 | 167 |
| 169 DISALLOW_IMPLICIT_CONSTRUCTORS(OptimizingCodeGenerator); | 168 DISALLOW_IMPLICIT_CONSTRUCTORS(OptimizingCodeGenerator); |
| 170 }; | 169 }; |
| 171 | 170 |
| 172 } // namespace dart | 171 } // namespace dart |
| 173 | 172 |
| 174 | 173 |
| 175 #endif // VM_OPT_CODE_GENERATOR_IA32_H_ | 174 #endif // VM_OPT_CODE_GENERATOR_IA32_H_ |
| OLD | NEW |