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

Unified Diff: vm/intrinsifier_ia32.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/intermediate_language_x64.cc ('k') | vm/intrinsifier_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/intrinsifier_ia32.cc
===================================================================
--- vm/intrinsifier_ia32.cc (revision 9829)
+++ vm/intrinsifier_ia32.cc (working copy)
@@ -19,6 +19,7 @@
#include "vm/object_store.h"
#include "vm/os.h"
#include "vm/stub_code.h"
+#include "vm/symbols.h"
namespace dart {
@@ -165,7 +166,7 @@
static intptr_t ComputeObjectArrayTypeArgumentsOffset() {
- const String& class_name = String::Handle(String::NewSymbol("ObjectArray"));
+ const String& class_name = String::Handle(Symbols::New("ObjectArray"));
const Class& cls = Class::Handle(
Library::Handle(Library::CoreImplLibrary()).LookupClass(class_name));
ASSERT(!cls.IsNull());
@@ -240,8 +241,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/intermediate_language_x64.cc ('k') | vm/intrinsifier_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698