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

Unified Diff: runtime/vm/object.cc

Issue 1889603003: Fix background compilation disassembly: allocate string in old space instead of new space. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | no next file » | 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 2ce486b3f00f509a8eec81bd2414fcf498e7bfe0..469462b9510f3453e2273a6f8471122c890bb4fd 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -13740,10 +13740,9 @@ RawString* Code::Name() const {
if (obj.IsNull()) {
// Regular stub.
Thread* thread = Thread::Current();
- Zone* zone = thread->zone();
const char* name = StubCode::NameOfStub(EntryPoint());
ASSERT(name != NULL);
- const String& stub_name = String::Handle(zone, String::New(name));
+ const String& stub_name = String::Handle(Symbols::New(thread, name));
return Symbols::FromConcat(thread, Symbols::StubPrefix(), stub_name);
siva 2016/04/13 20:29:48 Why not do: char* stub_name = OS::Screate(zone, "
srdjan 2016/04/13 20:38:16 Done.
} else if (obj.IsClass()) {
// Allocation stub.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698