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

Unified Diff: runtime/vm/object.cc

Issue 11364184: Remove unused/not working function tracing flag and functionality. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 14749)
+++ runtime/vm/object.cc (working copy)
@@ -7229,6 +7229,7 @@
void Code::ExtractUncalledStaticCallDeoptIds(
GrowableArray<intptr_t>* deopt_ids) const {
+ ASSERT(!IsNull() && !is_optimized());
ASSERT(deopt_ids != NULL);
deopt_ids->Clear();
const PcDescriptors& descriptors =
@@ -7416,11 +7417,12 @@
const char* ICData::ToCString() const {
- const char* kFormat = "ICData target:%s";
+ const char* kFormat = "ICData target:'%s' num-checks: %"Pd"";
const String& name = String::Handle(target_name());
- intptr_t len = OS::SNPrint(NULL, 0, kFormat, name.ToCString()) + 1;
+ const intptr_t num = NumberOfChecks();
+ intptr_t len = OS::SNPrint(NULL, 0, kFormat, name.ToCString(), num) + 1;
char* chars = Isolate::Current()->current_zone()->Alloc<char>(len);
- OS::SNPrint(chars, len, kFormat, name.ToCString());
+ OS::SNPrint(chars, len, kFormat, name.ToCString(), num);
return chars;
}

Powered by Google App Engine
This is Rietveld 408576698