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

Unified Diff: vm/intermediate_language_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.cc ('k') | vm/intermediate_language_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/intermediate_language_ia32.cc
===================================================================
--- vm/intermediate_language_ia32.cc (revision 9829)
+++ vm/intermediate_language_ia32.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()->
@@ -304,7 +305,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;
@@ -627,7 +628,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(),
@@ -823,7 +824,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(),
@@ -2148,7 +2149,7 @@
Condition branch_condition = (kind() == Token::kNE) ? NOT_EQUAL : EQUAL;
Token::Kind call_kind = (kind() == Token::kNE) ? Token::kEQ : kind();
const String& function_name =
- String::ZoneHandle(String::NewSymbol(Token::Str(call_kind)));
+ String::ZoneHandle(Symbols::New(Token::Str(call_kind)));
compiler->AddCurrentDescriptor(PcDescriptors::kDeopt,
cid(),
token_pos(),
« no previous file with comments | « vm/intermediate_language.cc ('k') | vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698