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

Unified Diff: vm/raw_object_snapshot.cc

Issue 10783035: Create frequently used symbols in the vm isolate (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 5 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/parser_test.cc ('k') | vm/resolver_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/raw_object_snapshot.cc
===================================================================
--- vm/raw_object_snapshot.cc (revision 9829)
+++ vm/raw_object_snapshot.cc (working copy)
@@ -6,6 +6,7 @@
#include "vm/object.h"
#include "vm/object_store.h"
#include "vm/snapshot.h"
+#include "vm/symbols.h"
#include "vm/visitor.h"
namespace dart {
@@ -1361,7 +1362,7 @@
for (intptr_t i = 0; i < len; i++) {
ptr[i] = reader->Read<CharacterType>();
}
- *str_obj ^= String::NewSymbol(ptr, len);
+ *str_obj ^= Symbols::New(ptr, len);
} else {
// Set up the string object.
*str_obj = HandleType::New(len, Heap::kNew);
« no previous file with comments | « vm/parser_test.cc ('k') | vm/resolver_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698