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

Unified Diff: runtime/vm/service.cc

Issue 977283002: Display call site data for functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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/parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service.cc
diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc
index 0a638c1f972a6d2dd43d2937d5f8fb5a65e7198b..fa70a91c14fad0f2981882268e5e48ce7ac30b37 100644
--- a/runtime/vm/service.cc
+++ b/runtime/vm/service.cc
@@ -1541,14 +1541,12 @@ static bool GetCallSiteData(Isolate* isolate, JSONStream* js) {
jsobj.AddProperty("type", "_CallSiteData");
jsobj.AddProperty("function", func);
JSONArray elements(&jsobj, "callSites");
- Smi& line = Smi::Handle();
- Smi& column = Smi::Handle();
ICData& ic_data = ICData::Handle();
+ Smi& token_pos = Smi::Handle();
for (intptr_t i = 0; i < ics.Length();) {
ic_data ^= ics.At(i++);
- line ^= ics.At(i++);
- column ^= ics.At(i++);
- ic_data.PrintToJSONArray(&elements, line.Value(), column.Value());
+ token_pos ^= ics.At(i++);
+ ic_data.PrintToJSONArray(&elements, token_pos.Value());
}
return true;
}
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698