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

Unified Diff: vm/compiler.cc

Issue 10632009: Make the parser agnostic to the TokenStream implementation. This is the first step towards compacti… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 6 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_ia32.cc ('k') | vm/datastream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/compiler.cc
===================================================================
--- vm/compiler.cc (revision 9042)
+++ vm/compiler.cc (working copy)
@@ -373,7 +373,7 @@
OS::Print("Compiling %sfunction: '%s' @ token %d\n",
(optimized ? "optimized " : ""),
function.ToFullyQualifiedCString(),
- function.token_index());
+ function.token_pos());
}
Parser::ParseFunction(&parsed_function);
parsed_function.AllocateVariables();
@@ -541,7 +541,7 @@
RawFunction::kConstImplicitGetter,
true, // static function.
false, // not const function.
- fragment->token_index()));
+ fragment->token_pos()));
func.set_result_type(Type::Handle(Type::DynamicType()));
func.set_num_fixed_parameters(0);
« no previous file with comments | « vm/code_generator_ia32.cc ('k') | vm/datastream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698