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

Unified Diff: lib/math.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 | « lib/isolate.cc ('k') | lib/string.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/math.cc
===================================================================
--- lib/math.cc (revision 9829)
+++ lib/math.cc (working copy)
@@ -12,6 +12,7 @@
#include "vm/object.h"
#include "vm/random.h"
#include "vm/scanner.h"
+#include "vm/symbols.h"
namespace dart {
@@ -117,7 +118,7 @@
result = Integer::New(*int_string);
} else {
String& temp = String::Handle();
- temp = String::Concat(String::Handle(String::NewSymbol("-")),
+ temp = String::Concat(String::Handle(Symbols::New("-")),
*int_string);
result = Integer::New(temp);
}
« no previous file with comments | « lib/isolate.cc ('k') | lib/string.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698