Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(897)

Side by Side Diff: runtime/vm/code_generator.h

Issue 10982088: Remove deoptimization index PC descriptors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove code from an unrelated change. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 29 matching lines...) Expand all
40 DECLARE_RUNTIME_ENTRY(ResolveImplicitClosureFunction); 40 DECLARE_RUNTIME_ENTRY(ResolveImplicitClosureFunction);
41 DECLARE_RUNTIME_ENTRY(ResolveImplicitClosureThroughGetter); 41 DECLARE_RUNTIME_ENTRY(ResolveImplicitClosureThroughGetter);
42 DECLARE_RUNTIME_ENTRY(ReThrow); 42 DECLARE_RUNTIME_ENTRY(ReThrow);
43 DECLARE_RUNTIME_ENTRY(StackOverflow); 43 DECLARE_RUNTIME_ENTRY(StackOverflow);
44 DECLARE_RUNTIME_ENTRY(Throw); 44 DECLARE_RUNTIME_ENTRY(Throw);
45 DECLARE_RUNTIME_ENTRY(TraceFunctionEntry); 45 DECLARE_RUNTIME_ENTRY(TraceFunctionEntry);
46 DECLARE_RUNTIME_ENTRY(TraceFunctionExit); 46 DECLARE_RUNTIME_ENTRY(TraceFunctionExit);
47 DECLARE_RUNTIME_ENTRY(DeoptimizeMaterializeDoubles); 47 DECLARE_RUNTIME_ENTRY(DeoptimizeMaterializeDoubles);
48 48
49 #define DEOPT_REASONS(V) \ 49 #define DEOPT_REASONS(V) \
50 V(DeoptUnknown) \ 50 V(Unknown) \
51 V(DeoptIncrLocal) \ 51 V(IncrLocal) \
52 V(DeoptIncrInstance) \ 52 V(IncrInstance) \
53 V(DeoptIncrInstanceOneClass) \ 53 V(IncrInstanceOneClass) \
54 V(DeoptInstanceGetterSameTarget) \ 54 V(InstanceGetterSameTarget) \
55 V(DeoptInstanceGetter) \ 55 V(InstanceGetter) \
56 V(DeoptStoreIndexed) \ 56 V(StoreIndexed) \
57 V(DeoptStoreIndexedPolymorphic) \ 57 V(StoreIndexedPolymorphic) \
58 V(DeoptPolymorphicInstanceCallSmiOnly) \ 58 V(PolymorphicInstanceCallSmiOnly) \
59 V(DeoptPolymorphicInstanceCallSmiFail) \ 59 V(PolymorphicInstanceCallSmiFail) \
60 V(DeoptPolymorphicInstanceCallTestFail) \ 60 V(PolymorphicInstanceCallTestFail) \
61 V(DeoptIntegerToDouble) \ 61 V(IntegerToDouble) \
62 V(DeoptDoubleToDouble) \ 62 V(DoubleToDouble) \
63 V(DeoptBinarySmiOp) \ 63 V(BinarySmiOp) \
64 V(DeoptBinaryMintOp) \ 64 V(BinaryMintOp) \
65 V(DeoptBinaryDoubleOp) \ 65 V(BinaryDoubleOp) \
66 V(DeoptInstanceSetterSameTarget) \ 66 V(InstanceSetterSameTarget) \
67 V(DeoptInstanceSetter) \ 67 V(InstanceSetter) \
68 V(DeoptSmiEquality) \ 68 V(SmiEquality) \
69 V(DeoptEquality) \ 69 V(Equality) \
70 V(DeoptRelationalOp) \ 70 V(RelationalOp) \
71 V(DeoptSmiCompareSmi) \ 71 V(SmiCompareSmi) \
72 V(DeoptSmiCompareAny) \ 72 V(SmiCompareAny) \
73 V(DeoptDoubleCompareDouble) \ 73 V(DoubleCompareDouble) \
74 V(DeoptEqualityNoFeedback) \ 74 V(EqualityNoFeedback) \
75 V(DeoptEqualityClassCheck) \ 75 V(EqualityClassCheck) \
76 V(DeoptDoubleComparison) \ 76 V(DoubleComparison) \
77 V(DeoptLoadIndexedFixedArray) \ 77 V(LoadIndexedFixedArray) \
78 V(DeoptLoadIndexedGrowableArray) \ 78 V(LoadIndexedGrowableArray) \
79 V(DeoptLoadIndexedPolymorphic) \ 79 V(LoadIndexedPolymorphic) \
80 V(DeoptNoTypeFeedback) \ 80 V(NoTypeFeedback) \
81 V(DeoptSAR) \ 81 V(SAR) \
82 V(DeoptUnaryOp) \ 82 V(UnaryOp) \
83 V(DeoptCheckClass) \ 83 V(CheckClass) \
84 V(DeoptCheckSmi) \ 84 V(CheckSmi) \
85 V(DeoptAtCall) \ 85 V(AtCall) \
86 V(DeoptNumReasons) \ 86 V(NumReasons) \
87 87
88 enum DeoptReasonId { 88 enum DeoptReasonId {
89 #define DEFINE_ENUM_LIST(name) k##name, 89 #define DEFINE_ENUM_LIST(name) kDeopt##name,
90 DEOPT_REASONS(DEFINE_ENUM_LIST) 90 DEOPT_REASONS(DEFINE_ENUM_LIST)
91 #undef DEFINE_ENUM_LIST 91 #undef DEFINE_ENUM_LIST
92 }; 92 };
93 93
94 94
95 const char* DeoptReasonToText(intptr_t deopt_id);
96
97
95 RawCode* ResolveCompileInstanceCallTarget(Isolate* isolate, 98 RawCode* ResolveCompileInstanceCallTarget(Isolate* isolate,
96 const Instance& receiver); 99 const Instance& receiver);
97 100
98 void DeoptimizeAll(); 101 void DeoptimizeAll();
99 102
100 } // namespace dart 103 } // namespace dart
101 104
102 #endif // VM_CODE_GENERATOR_H_ 105 #endif // VM_CODE_GENERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698