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

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
« no previous file with comments | « runtime/vm/code_descriptors.h ('k') | runtime/vm/code_generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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* DeoptReasonToCString(ICData::ICData::DeoptReasonId deopt_reason);
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(TestCids) \
78 V(NumReasons) \
79
80 enum DeoptReasonId {
81 #define DEFINE_ENUM_LIST(name) kDeopt##name,
82 DEOPT_REASONS(DEFINE_ENUM_LIST)
83 #undef DEFINE_ENUM_LIST
84 };
85
86
87 const char* DeoptReasonToText(intptr_t deopt_id);
88
89 51
90 void DeoptimizeAt(const Code& optimized_code, uword pc); 52 void DeoptimizeAt(const Code& optimized_code, uword pc);
91 void DeoptimizeAll(); 53 void DeoptimizeAll();
92 54
93 double DartModulo(double a, double b); 55 double DartModulo(double a, double b);
94 void SinCos(double arg, double* sin_res, double* cos_res); 56 void SinCos(double arg, double* sin_res, double* cos_res);
95 57
96 } // namespace dart 58 } // namespace dart
97 59
98 #endif // VM_CODE_GENERATOR_H_ 60 #endif // VM_CODE_GENERATOR_H_
OLDNEW
« no previous file with comments | « runtime/vm/code_descriptors.h ('k') | runtime/vm/code_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698