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

Unified Diff: vm/find_code_object_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/exceptions.cc ('k') | vm/flow_graph_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/find_code_object_test.cc
===================================================================
--- vm/find_code_object_test.cc (revision 9829)
+++ vm/find_code_object_test.cc (working copy)
@@ -8,6 +8,7 @@
#include "vm/object.h"
#include "vm/pages.h"
#include "vm/stack_frame.h"
+#include "vm/symbols.h"
#include "vm/unit_test.h"
namespace dart {
@@ -55,7 +56,7 @@
source = String::New(scriptChars);
script = Script::New(url, source, RawScript::kSourceTag);
EXPECT(CompilerTest::TestCompileScript(lib, script));
- clsA = lib.LookupClass(String::Handle(String::NewSymbol("A")));
+ clsA = lib.LookupClass(String::Handle(Symbols::New("A")));
EXPECT(!clsA.IsNull());
ClassFinalizer::FinalizePendingClasses();
for (int i = 0; i < kNumFunctions; i++) {
@@ -103,7 +104,7 @@
source = String::New(scriptChars);
script = Script::New(url, source, RawScript::kSourceTag);
EXPECT(CompilerTest::TestCompileScript(lib, script));
- clsB = lib.LookupClass(String::Handle(String::NewSymbol("B")));
+ clsB = lib.LookupClass(String::Handle(Symbols::New("B")));
EXPECT(!clsB.IsNull());
ClassFinalizer::FinalizePendingClasses();
for (int i = 0; i < kNumFunctions; i++) {
« no previous file with comments | « vm/exceptions.cc ('k') | vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698