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

Unified Diff: vm/compiler_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/compiler.cc ('k') | vm/dart.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/compiler_test.cc
===================================================================
--- vm/compiler_test.cc (revision 9829)
+++ vm/compiler_test.cc (working copy)
@@ -6,6 +6,7 @@
#include "vm/class_finalizer.h"
#include "vm/compiler.h"
#include "vm/object.h"
+#include "vm/symbols.h"
#include "vm/unit_test.h"
namespace dart {
@@ -45,7 +46,7 @@
EXPECT(CompilerTest::TestCompileScript(lib, script));
EXPECT(ClassFinalizer::FinalizePendingClasses());
Class& cls = Class::Handle(
- lib.LookupClass(String::Handle(String::NewSymbol("A"))));
+ lib.LookupClass(String::Handle(Symbols::New("A"))));
EXPECT(!cls.IsNull());
String& function_foo_name = String::Handle(String::New("foo"));
Function& function_foo =
« no previous file with comments | « vm/compiler.cc ('k') | vm/dart.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698