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

Unified Diff: vm/class_finalizer_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/class_finalizer.cc ('k') | vm/code_descriptors_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/class_finalizer_test.cc
===================================================================
--- vm/class_finalizer_test.cc (revision 9829)
+++ vm/class_finalizer_test.cc (working copy)
@@ -4,6 +4,7 @@
#include "platform/assert.h"
#include "vm/class_finalizer.h"
+#include "vm/symbols.h"
#include "vm/unit_test.h"
namespace dart {
@@ -11,7 +12,7 @@
static RawClass* CreateTestClass(const char* name) {
const Array& empty_array = Array::Handle(Array::Empty());
- const String& class_name = String::Handle(String::NewSymbol(name));
+ const String& class_name = String::Handle(Symbols::New(name));
const Script& script = Script::Handle();
const Class& cls =
Class::Handle(Class::New(class_name, script, Scanner::kDummyTokenIndex));
@@ -71,7 +72,7 @@
static RawLibrary* NewLib(const char* url_chars) {
- String& url = String::ZoneHandle(String::NewSymbol(url_chars));
+ String& url = String::ZoneHandle(Symbols::New(url_chars));
return Library::New(url);
}
« no previous file with comments | « vm/class_finalizer.cc ('k') | vm/code_descriptors_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698