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

Unified Diff: vm/unit_test.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/symbols.cc ('k') | vm/vm_sources.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/unit_test.cc
===================================================================
--- vm/unit_test.cc (revision 9829)
+++ vm/unit_test.cc (working copy)
@@ -15,6 +15,7 @@
#include "vm/dart_api_impl.h"
#include "vm/disassembler.h"
#include "vm/parser.h"
+#include "vm/symbols.h"
#include "vm/virtual_memory.h"
@@ -139,7 +140,7 @@
uword AssemblerTest::Assemble() {
- const String& function_name = String::ZoneHandle(String::NewSymbol(name_));
+ const String& function_name = String::ZoneHandle(Symbols::New(name_));
Function& function = Function::ZoneHandle(
Function::New(function_name, RawFunction::kRegularFunction,
true, false, 0));
@@ -163,7 +164,7 @@
new LocalScope(NULL, 0, 0))),
default_parameter_values_(Array::ZoneHandle()) {
ASSERT(name != NULL);
- const String& function_name = String::ZoneHandle(String::NewSymbol(name));
+ const String& function_name = String::ZoneHandle(Symbols::New(name));
function_ = Function::New(
function_name, RawFunction::kRegularFunction, true, false, 0);
function_.set_result_type(Type::Handle(Type::DynamicType()));
@@ -200,7 +201,7 @@
OS::SNPrint(name, 64, ":%s", name_part);
LocalVariable* temp =
new LocalVariable(0,
- String::ZoneHandle(String::NewSymbol(name)),
+ String::ZoneHandle(Symbols::New(name)),
Type::ZoneHandle(Type::DynamicType()));
temp->set_is_final();
node_sequence_->scope()->AddVariable(temp);
« no previous file with comments | « vm/symbols.cc ('k') | vm/vm_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698