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

Unified Diff: vm/heap_profiler.cc

Issue 10827249: - Register canonical names for internal VM classes and get rid of the method GetSingletonClassName (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 4 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 | « vm/code_generator.cc ('k') | vm/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/heap_profiler.cc
===================================================================
--- vm/heap_profiler.cc (revision 10528)
+++ vm/heap_profiler.cc (working copy)
@@ -412,13 +412,8 @@
record.WritePointer(raw_class);
// stack trace serial number
record.Write32(0);
- if (raw_class->ptr()->name_ == String::null()) {
- intptr_t class_id = raw_class->ptr()->id_;
- const char* name = Object::GetSingletonClassName(class_id);
- record.WritePointer(StringId(name));
- } else {
- record.WritePointer(StringId(raw_class->ptr()->name_));
- }
+ ASSERT(raw_class->ptr()->name_ != String::null());
+ record.WritePointer(StringId(raw_class->ptr()->name_));
}
« no previous file with comments | « vm/code_generator.cc ('k') | vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698