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

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

Issue 254723003: Remember all deopt reasons in ic_data, not just the last one. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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(TraceICCall); 40 DECLARE_RUNTIME_ENTRY(TraceICCall);
41 DECLARE_RUNTIME_ENTRY(PatchStaticCall); 41 DECLARE_RUNTIME_ENTRY(PatchStaticCall);
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(DeoptimizeMaterialize); 47 DECLARE_RUNTIME_ENTRY(DeoptimizeMaterialize);
48 DECLARE_RUNTIME_ENTRY(UpdateFieldCid); 48 DECLARE_RUNTIME_ENTRY(UpdateFieldCid);
49 49
50 #define DEOPT_REASONS(V) \ 50 const char* DeoptReasonToText(intptr_t deopt_reason);
Ivan Posva 2014/04/25 20:59:22 DeoptReasonToCString
regis 2014/04/25 23:38:28 Done.
51 V(Unknown) \
52 V(InstanceGetter) \
53 V(PolymorphicInstanceCallTestFail) \
54 V(InstanceCallNoICData) \
55 V(IntegerToDouble) \
56 V(BinarySmiOp) \
57 V(BinaryMintOp) \
58 V(UnaryMintOp) \
59 V(ShiftMintOp) \
60 V(BinaryDoubleOp) \
61 V(InstanceSetter) \
62 V(Equality) \
63 V(RelationalOp) \
64 V(EqualityClassCheck) \
65 V(NoTypeFeedback) \
66 V(UnaryOp) \
67 V(UnboxInteger) \
68 V(CheckClass) \
69 V(HoistedCheckClass) \
70 V(CheckSmi) \
71 V(CheckArrayBound) \
72 V(AtCall) \
73 V(DoubleToSmi) \
74 V(Int32Load) \
75 V(Uint32Load) \
76 V(GuardField) \
77 V(NumReasons) \
78
79 enum DeoptReasonId {
80 #define DEFINE_ENUM_LIST(name) kDeopt##name,
81 DEOPT_REASONS(DEFINE_ENUM_LIST)
82 #undef DEFINE_ENUM_LIST
83 };
84
85
86 const char* DeoptReasonToText(intptr_t deopt_id);
87
88 51
89 void DeoptimizeAt(const Code& optimized_code, uword pc); 52 void DeoptimizeAt(const Code& optimized_code, uword pc);
90 void DeoptimizeAll(); 53 void DeoptimizeAll();
91 54
92 double DartModulo(double a, double b); 55 double DartModulo(double a, double b);
93 void SinCos(double arg, double* sin_res, double* cos_res); 56 void SinCos(double arg, double* sin_res, double* cos_res);
94 57
95 } // namespace dart 58 } // namespace dart
96 59
97 #endif // VM_CODE_GENERATOR_H_ 60 #endif // VM_CODE_GENERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698