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

Unified Diff: vm/object.cc

Issue 10808111: Move more symbols to 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/code_generator.cc ('k') | vm/parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/object.cc
===================================================================
--- vm/object.cc (revision 9904)
+++ vm/object.cc (working copy)
@@ -5020,7 +5020,7 @@
intptr_t* line,
intptr_t* column) const {
const String& src = String::Handle(Source());
- const String& dummy_key = String::Handle(String::New(""));
+ const String& dummy_key = String::Handle(Symbols::Empty());
const TokenStream& tkns = TokenStream::Handle(tokens());
intptr_t src_pos = tkns.ComputeSourcePosition(token_pos);
Scanner scanner(src, dummy_key);
@@ -5036,7 +5036,7 @@
intptr_t first_src_pos;
intptr_t last_src_pos;
const String& src = String::Handle(Source());
- const String& dummy_key = String::Handle(String::New(""));
+ const String& dummy_key = String::Handle(Symbols::Empty());
const TokenStream& tkns = TokenStream::Handle(tokens());
Scanner scanner(src, dummy_key);
scanner.TokenRangeAtLine(line_number, &first_src_pos, &last_src_pos);
@@ -5067,7 +5067,7 @@
}
}
// Guarantee that returned string is never NULL.
- String& line = String::Handle(Symbols::New(""));
+ String& line = String::Handle(Symbols::Empty());
if (line_start >= 0) {
line = String::SubString(src, line_start, last_char - line_start + 1);
}
« no previous file with comments | « vm/code_generator.cc ('k') | vm/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698