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

Unified Diff: vm/snapshot_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
Index: vm/snapshot_test.cc
===================================================================
--- vm/snapshot_test.cc (revision 9729)
+++ vm/snapshot_test.cc (working copy)
@@ -10,6 +10,7 @@
#include "vm/dart_api_message.h"
#include "vm/dart_api_state.h"
#include "vm/snapshot.h"
+#include "vm/symbols.h"
#include "vm/unit_test.h"
namespace dart {
@@ -729,7 +730,7 @@
String& url = String::Handle(String::New("dart-test:SerializeScript"));
String& source = String::Handle(String::New(kScriptChars));
Script& script = Script::Handle(Script::New(url, source, RawScript::kSource));
- const String& lib_url = String::Handle(String::NewSymbol("TestLib"));
+ const String& lib_url = String::Handle(Symbols::New("TestLib"));
Library& lib = Library::Handle(Library::New(lib_url));
lib.Register();
EXPECT(CompilerTest::TestCompileScript(lib, script));

Powered by Google App Engine
This is Rietveld 408576698