| 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 25 matching lines...) Expand all Loading... |
| 36 DECLARE_RUNTIME_ENTRY(ReportObjectNotClosure); | 36 DECLARE_RUNTIME_ENTRY(ReportObjectNotClosure); |
| 37 DECLARE_RUNTIME_ENTRY(ResolveCompileInstanceFunction); | 37 DECLARE_RUNTIME_ENTRY(ResolveCompileInstanceFunction); |
| 38 DECLARE_RUNTIME_ENTRY(ResolveImplicitClosureFunction); | 38 DECLARE_RUNTIME_ENTRY(ResolveImplicitClosureFunction); |
| 39 DECLARE_RUNTIME_ENTRY(ResolveImplicitClosureThroughGetter); | 39 DECLARE_RUNTIME_ENTRY(ResolveImplicitClosureThroughGetter); |
| 40 DECLARE_RUNTIME_ENTRY(ReThrow); | 40 DECLARE_RUNTIME_ENTRY(ReThrow); |
| 41 DECLARE_RUNTIME_ENTRY(StackOverflow); | 41 DECLARE_RUNTIME_ENTRY(StackOverflow); |
| 42 DECLARE_RUNTIME_ENTRY(Throw); | 42 DECLARE_RUNTIME_ENTRY(Throw); |
| 43 DECLARE_RUNTIME_ENTRY(TraceFunctionEntry); | 43 DECLARE_RUNTIME_ENTRY(TraceFunctionEntry); |
| 44 DECLARE_RUNTIME_ENTRY(TraceFunctionExit); | 44 DECLARE_RUNTIME_ENTRY(TraceFunctionExit); |
| 45 | 45 |
| 46 #define DEOPT_REASONS(V) \ | 46 #define DEOPT_REASONS(V) \ |
| 47 V(DeoptUnknown) \ | 47 V(DeoptUnknown) \ |
| 48 V(DeoptIncrLocal) \ | 48 V(DeoptIncrLocal) \ |
| 49 V(DeoptIncrInstance) \ | 49 V(DeoptIncrInstance) \ |
| 50 V(DeoptIncrInstanceOneClass) \ | 50 V(DeoptIncrInstanceOneClass) \ |
| 51 V(DeoptInstanceGetterSameTarget) \ | 51 V(DeoptInstanceGetterSameTarget) \ |
| 52 V(DeoptInstanceGetter) \ | 52 V(DeoptInstanceGetter) \ |
| 53 V(DeoptStoreIndexed) \ | 53 V(DeoptStoreIndexed) \ |
| 54 V(DeoptStoreIndexedPolymorphic) \ | 54 V(DeoptStoreIndexedPolymorphic) \ |
| 55 V(DeoptPolymorphicInstanceCallSmiOnly) \ | 55 V(DeoptPolymorphicInstanceCallSmiOnly) \ |
| 56 V(DeoptPolymorphicInstanceCallSmiFail) \ | 56 V(DeoptPolymorphicInstanceCallSmiFail) \ |
| 57 V(DeoptPolymorphicInstanceCallTestFail) \ | 57 V(DeoptPolymorphicInstanceCallTestFail) \ |
| 58 V(DeoptIntegerToDouble) \ | 58 V(DeoptIntegerToDouble) \ |
| 59 V(DeoptDoubleToDouble) \ | 59 V(DeoptDoubleToDouble) \ |
| 60 V(DeoptBinarySmiOp) \ | 60 V(DeoptBinarySmiOp) \ |
| 61 V(DeoptBinaryMintOp) \ | 61 V(DeoptBinaryMintOp) \ |
| 62 V(DeoptBinaryDoubleOp) \ | 62 V(DeoptBinaryDoubleOp) \ |
| 63 V(DeoptInstanceSetterSameTarget) \ | 63 V(DeoptInstanceSetterSameTarget) \ |
| 64 V(DeoptInstanceSetter) \ | 64 V(DeoptInstanceSetter) \ |
| 65 V(DeoptSmiEquality) \ | 65 V(DeoptSmiEquality) \ |
| 66 V(DeoptEquality) \ | 66 V(DeoptEquality) \ |
| 67 V(DeoptRelationalOp) \ | 67 V(DeoptRelationalOp) \ |
| 68 V(DeoptSmiCompareSmi) \ | 68 V(DeoptSmiCompareSmi) \ |
| 69 V(DeoptSmiCompareAny) \ | 69 V(DeoptSmiCompareAny) \ |
| 70 V(DeoptDoubleCompareDouble) \ | 70 V(DeoptDoubleCompareDouble) \ |
| 71 V(DeoptEqualityNoFeedback) \ | 71 V(DeoptEqualityNoFeedback) \ |
| 72 V(DeoptEqualityClassCheck) \ | 72 V(DeoptEqualityClassCheck) \ |
| 73 V(DeoptDoubleComparison) \ | 73 V(DeoptDoubleComparison) \ |
| 74 V(DeoptLoadIndexedFixedArray) \ | 74 V(DeoptLoadIndexedFixedArray) \ |
| 75 V(DeoptLoadIndexedGrowableArray) \ | 75 V(DeoptLoadIndexedGrowableArray) \ |
| 76 V(DeoptLoadIndexedPolymorphic) \ | 76 V(DeoptLoadIndexedPolymorphic) \ |
| 77 V(DeoptNoTypeFeedback) \ | 77 V(DeoptNoTypeFeedback) \ |
| 78 V(DeoptSAR) \ | 78 V(DeoptSAR) \ |
| 79 V(DeoptUnaryOp) \ | 79 V(DeoptUnaryOp) \ |
| 80 V(DeoptCheckClass) \ | 80 V(DeoptCheckClass) \ |
| 81 V(DeoptCheckSmi) | 81 V(DeoptCheckSmi) \ |
| 82 V(DeoptAtCall) \ |
| 82 | 83 |
| 83 enum DeoptReasonId { | 84 enum DeoptReasonId { |
| 84 #define DEFINE_ENUM_LIST(name) k##name, | 85 #define DEFINE_ENUM_LIST(name) k##name, |
| 85 DEOPT_REASONS(DEFINE_ENUM_LIST) | 86 DEOPT_REASONS(DEFINE_ENUM_LIST) |
| 86 #undef DEFINE_ENUM_LIST | 87 #undef DEFINE_ENUM_LIST |
| 87 }; | 88 }; |
| 88 | 89 |
| 89 | 90 |
| 90 RawCode* ResolveCompileInstanceCallTarget(Isolate* isolate, | 91 RawCode* ResolveCompileInstanceCallTarget(Isolate* isolate, |
| 91 const Instance& receiver); | 92 const Instance& receiver); |
| 92 | 93 |
| 93 } // namespace dart | 94 } // namespace dart |
| 94 | 95 |
| 95 #endif // VM_CODE_GENERATOR_H_ | 96 #endif // VM_CODE_GENERATOR_H_ |
| OLD | NEW |