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

Unified Diff: vm/parser.cc

Issue 9232017: Improve function compilation times for swarm application startup. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 8 years, 11 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
« vm/object.h ('K') | « vm/object.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/parser.cc
===================================================================
--- vm/parser.cc (revision 3378)
+++ vm/parser.cc (working copy)
@@ -562,14 +562,14 @@
isolate->set_ast_node_id(0);
ASSERT(parsed_function != NULL);
const Function& func = parsed_function->function();
- const Class& cls = Class::Handle(func.owner());
- const Script& script = Script::Handle(cls.script());
+ const Class& cls = Class::Handle(isolate, func.owner());
+ const Script& script = Script::Handle(isolate, cls.script());
Parser parser(script, func, func.token_index());
if (FLAG_compiler_stats) {
CompilerStats::parser_timer.Start();
}
SequenceNode* node_sequence = NULL;
- Array& default_parameter_values = Array::Handle();
+ Array& default_parameter_values = Array::Handle(isolate, Array::null());
switch (func.kind()) {
case RawFunction::kFunction:
case RawFunction::kClosureFunction:
« vm/object.h ('K') | « vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698