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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/code_descriptors.h ('k') | runtime/vm/code_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_generator.h
===================================================================
--- runtime/vm/code_generator.h (revision 35455)
+++ runtime/vm/code_generator.h (working copy)
@@ -47,46 +47,8 @@
DECLARE_RUNTIME_ENTRY(DeoptimizeMaterialize);
DECLARE_RUNTIME_ENTRY(UpdateFieldCid);
-#define DEOPT_REASONS(V) \
- V(Unknown) \
- V(InstanceGetter) \
- V(PolymorphicInstanceCallTestFail) \
- V(InstanceCallNoICData) \
- V(IntegerToDouble) \
- V(BinarySmiOp) \
- V(BinaryMintOp) \
- V(UnaryMintOp) \
- V(ShiftMintOp) \
- V(BinaryDoubleOp) \
- V(InstanceSetter) \
- V(Equality) \
- V(RelationalOp) \
- V(EqualityClassCheck) \
- V(NoTypeFeedback) \
- V(UnaryOp) \
- V(UnboxInteger) \
- V(CheckClass) \
- V(HoistedCheckClass) \
- V(CheckSmi) \
- V(CheckArrayBound) \
- V(AtCall) \
- V(DoubleToSmi) \
- V(Int32Load) \
- V(Uint32Load) \
- V(GuardField) \
- V(TestCids) \
- V(NumReasons) \
+const char* DeoptReasonToCString(ICData::ICData::DeoptReasonId deopt_reason);
-enum DeoptReasonId {
-#define DEFINE_ENUM_LIST(name) kDeopt##name,
-DEOPT_REASONS(DEFINE_ENUM_LIST)
-#undef DEFINE_ENUM_LIST
-};
-
-
-const char* DeoptReasonToText(intptr_t deopt_id);
-
-
void DeoptimizeAt(const Code& optimized_code, uword pc);
void DeoptimizeAll();
« 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