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

Unified Diff: runtime/vm/il_printer.cc

Issue 735543003: Range feedback for binary integer operations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 6 years 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/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/il_printer.cc
diff --git a/runtime/vm/il_printer.cc b/runtime/vm/il_printer.cc
index b9cd6d401f0822c097ded0904a2e7be5baa191e5..e63bba3aaef9d80f310dc466476643124d570e88 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -137,7 +137,18 @@ const char* CompileType::ToCString() const {
static void PrintICDataHelper(BufferFormatter* f, const ICData& ic_data) {
- f->Print(" IC[%" Pd ": ", ic_data.NumberOfChecks());
+ f->Print(" IC[");
+ if (ic_data.HasRangeFeedback()) {
+ f->Print("{%s",
+ ICData::RangeFeedbackToString(ic_data.DecodeRangeFeedbackAt(0)));
+ if (ic_data.NumArgsTested() == 2) {
+ f->Print(" x %s",
+ ICData::RangeFeedbackToString(ic_data.DecodeRangeFeedbackAt(1)));
+ }
+ f->Print("->%s} ",
+ ICData::RangeFeedbackToString(ic_data.DecodeRangeFeedbackAt(2)));
+ }
+ f->Print("%" Pd ": ", ic_data.NumberOfChecks());
Function& target = Function::Handle();
for (intptr_t i = 0; i < ic_data.NumberOfChecks(); i++) {
GrowableArray<intptr_t> class_ids;
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698