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

Unified Diff: vm/intermediate_language_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
Index: vm/intermediate_language_x64.cc
===================================================================
--- vm/intermediate_language_x64.cc (revision 9729)
+++ vm/intermediate_language_x64.cc (working copy)
@@ -13,6 +13,7 @@
#include "vm/object_store.h"
#include "vm/parser.h"
#include "vm/stub_code.h"
+#include "vm/symbols.h"
#define __ compiler->assembler()->
@@ -312,7 +313,7 @@
comp->cid(),
comp->token_pos(),
comp->try_index());
- const String& operator_name = String::ZoneHandle(String::NewSymbol("=="));
+ const String& operator_name = String::ZoneHandle(Symbols::New("=="));
const int kNumberOfArguments = 2;
const Array& kNoArgumentNames = Array::Handle();
const int kNumArgumentsChecked = 2;
@@ -605,7 +606,7 @@
return;
}
const String& function_name =
- String::ZoneHandle(String::NewSymbol(Token::Str(kind())));
+ String::ZoneHandle(Symbols::New(Token::Str(kind())));
compiler->AddCurrentDescriptor(PcDescriptors::kDeopt,
cid(),
token_pos(),
@@ -802,7 +803,7 @@
static void EmitStoreIndexedGeneric(FlowGraphCompiler* compiler,
StoreIndexedComp* comp) {
const String& function_name =
- String::ZoneHandle(String::NewSymbol(Token::Str(Token::kASSIGN_INDEX)));
+ String::ZoneHandle(Symbols::New(Token::Str(Token::kASSIGN_INDEX)));
compiler->AddCurrentDescriptor(PcDescriptors::kDeopt,
comp->cid(),

Powered by Google App Engine
This is Rietveld 408576698