| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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_CODE_GENERATOR_H_ | 5 #ifndef VM_CODE_GENERATOR_H_ |
| 6 #define VM_CODE_GENERATOR_H_ | 6 #define VM_CODE_GENERATOR_H_ |
| 7 | 7 |
| 8 #include "vm/globals.h" | 8 #include "vm/globals.h" |
| 9 #include "vm/runtime_entry.h" | 9 #include "vm/runtime_entry.h" |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 DECLARE_RUNTIME_ENTRY(TraceFunctionExit); | 54 DECLARE_RUNTIME_ENTRY(TraceFunctionExit); |
| 55 | 55 |
| 56 #define DEOPT_REASONS(V) \ | 56 #define DEOPT_REASONS(V) \ |
| 57 V(DeoptUnknown) \ | 57 V(DeoptUnknown) \ |
| 58 V(DeoptIncrLocal) \ | 58 V(DeoptIncrLocal) \ |
| 59 V(DeoptIncrInstance) \ | 59 V(DeoptIncrInstance) \ |
| 60 V(DeoptIncrInstanceOneClass) \ | 60 V(DeoptIncrInstanceOneClass) \ |
| 61 V(DeoptInstanceGetterSameTarget) \ | 61 V(DeoptInstanceGetterSameTarget) \ |
| 62 V(DeoptInstanceGetter) \ | 62 V(DeoptInstanceGetter) \ |
| 63 V(DeoptStoreIndexed) \ | 63 V(DeoptStoreIndexed) \ |
| 64 V(DeoptStoreIndexedPolymorphic) \ |
| 64 V(DeoptPolymorphicInstanceCallSmiOnly) \ | 65 V(DeoptPolymorphicInstanceCallSmiOnly) \ |
| 65 V(DeoptPolymorphicInstanceCallSmiFail) \ | 66 V(DeoptPolymorphicInstanceCallSmiFail) \ |
| 66 V(DeoptPolymorphicInstanceCallTestFail) \ | 67 V(DeoptPolymorphicInstanceCallTestFail) \ |
| 67 V(DeoptIntegerToDouble) \ | 68 V(DeoptIntegerToDouble) \ |
| 68 V(DeoptDoubleToDouble) \ | 69 V(DeoptDoubleToDouble) \ |
| 69 V(DeoptSmiBinaryOp) \ | 70 V(DeoptSmiBinaryOp) \ |
| 70 V(DeoptMintBinaryOp) \ | 71 V(DeoptMintBinaryOp) \ |
| 71 V(DeoptDoubleBinaryOp) \ | 72 V(DeoptDoubleBinaryOp) \ |
| 72 V(DeoptInstanceSetterSameTarget) \ | 73 V(DeoptInstanceSetterSameTarget) \ |
| 73 V(DeoptInstanceSetter) \ | 74 V(DeoptInstanceSetter) \ |
| 74 V(DeoptSmiEquality) \ | 75 V(DeoptSmiEquality) \ |
| 75 V(DeoptEquality) \ | 76 V(DeoptEquality) \ |
| 76 V(DeoptSmiCompareSmis) \ | 77 V(DeoptSmiCompareSmis) \ |
| 77 V(DeoptSmiCompareAny) \ | 78 V(DeoptSmiCompareAny) \ |
| 78 V(DeoptEqualityNoFeedback) \ | 79 V(DeoptEqualityNoFeedback) \ |
| 79 V(DeoptEqualityClassCheck) \ | 80 V(DeoptEqualityClassCheck) \ |
| 80 V(DeoptDoubleComparison) \ | 81 V(DeoptDoubleComparison) \ |
| 81 V(DeoptLoadIndexedFixedArray) \ | 82 V(DeoptLoadIndexedFixedArray) \ |
| 82 V(DeoptLoadIndexedGrowableArray) \ | 83 V(DeoptLoadIndexedGrowableArray) \ |
| 84 V(DeoptLoadIndexedPolymorphic) \ |
| 83 V(DeoptNoTypeFeedback) \ | 85 V(DeoptNoTypeFeedback) \ |
| 84 V(DeoptSAR) \ | 86 V(DeoptSAR) \ |
| 85 V(DeoptUnaryOp) \ | 87 V(DeoptUnaryOp) \ |
| 86 | 88 |
| 87 enum DeoptReasonId { | 89 enum DeoptReasonId { |
| 88 #define DEFINE_ENUM_LIST(name) k##name, | 90 #define DEFINE_ENUM_LIST(name) k##name, |
| 89 DEOPT_REASONS(DEFINE_ENUM_LIST) | 91 DEOPT_REASONS(DEFINE_ENUM_LIST) |
| 90 #undef DEFINE_ENUM_LIST | 92 #undef DEFINE_ENUM_LIST |
| 91 }; | 93 }; |
| 92 | 94 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 const Class& class_; | 132 const Class& class_; |
| 131 }; | 133 }; |
| 132 | 134 |
| 133 | 135 |
| 134 RawCode* ResolveCompileInstanceCallTarget(Isolate* isolate, | 136 RawCode* ResolveCompileInstanceCallTarget(Isolate* isolate, |
| 135 const Instance& receiver); | 137 const Instance& receiver); |
| 136 | 138 |
| 137 } // namespace dart | 139 } // namespace dart |
| 138 | 140 |
| 139 #endif // VM_CODE_GENERATOR_H_ | 141 #endif // VM_CODE_GENERATOR_H_ |
| OLD | NEW |