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

Unified Diff: runtime/vm/object.cc

Issue 2517683002: Don't include usage counters, etc in snapshots with code. If we already have code, eagerly recompil… (Closed)
Patch Set: . Created 4 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
« no previous file with comments | « runtime/vm/clustered_snapshot.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 920b9bde762ef9685f71b2af30647a8f54195da1..2b05ec58e92b5dc8489cb2ba6f02f32b2a15ce35 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -14305,9 +14305,7 @@ const char* Code::Name() const {
Zone* zone = thread->zone();
const char* name = StubCode::NameOfStub(UncheckedEntryPoint());
ASSERT(name != NULL);
- char* stub_name =
- OS::SCreate(zone, "%s%s", Symbols::StubPrefix().ToCString(), name);
- return stub_name;
+ return OS::SCreate(zone, "[Stub] %s", name);
} else if (obj.IsClass()) {
// Allocation stub.
Thread* thread = Thread::Current();
@@ -14315,10 +14313,7 @@ const char* Code::Name() const {
const Class& cls = Class::Cast(obj);
String& cls_name = String::Handle(zone, cls.ScrubbedName());
ASSERT(!cls_name.IsNull());
- char* stub_name =
- OS::SCreate(zone, "%s%s", Symbols::AllocationStubFor().ToCString(),
- cls_name.ToCString());
- return stub_name;
+ return OS::SCreate(zone, "[Stub] Allocate %s", cls_name.ToCString());
} else {
ASSERT(obj.IsFunction());
// Dart function.
« no previous file with comments | « runtime/vm/clustered_snapshot.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698