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

Unified Diff: vm/intrinsifier_x64.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/intrinsifier_ia32.cc ('k') | vm/isolate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/intrinsifier_x64.cc
===================================================================
--- vm/intrinsifier_x64.cc (revision 9829)
+++ vm/intrinsifier_x64.cc (working copy)
@@ -11,6 +11,7 @@
#include "vm/assembler_macros.h"
#include "vm/instructions.h"
#include "vm/object_store.h"
+#include "vm/symbols.h"
namespace dart {
@@ -1172,8 +1173,8 @@
static intptr_t GetOffsetForField(const char* class_name_p,
const char* field_name_p) {
- const String& class_name = String::Handle(String::NewSymbol(class_name_p));
- const String& field_name = String::Handle(String::NewSymbol(field_name_p));
+ const String& class_name = String::Handle(Symbols::New(class_name_p));
+ const String& field_name = String::Handle(Symbols::New(field_name_p));
const Class& cls = Class::Handle(Library::Handle(
Library::CoreImplLibrary()).LookupClass(class_name));
ASSERT(!cls.IsNull());
« no previous file with comments | « vm/intrinsifier_ia32.cc ('k') | vm/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698