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

Unified Diff: runtime/vm/ast_printer.cc

Issue 1307943008: Make default_parameter_values a ZoneGrowableArray instead of an array in new space (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: r Created 5 years, 4 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 | « no previous file | runtime/vm/code_descriptors_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast_printer.cc
diff --git a/runtime/vm/ast_printer.cc b/runtime/vm/ast_printer.cc
index 8197dd9fbe34968ecae1e2787734cabf757b8fd3..4877eac3266d9dc54af13435c655b5caaf3731ed 100644
--- a/runtime/vm/ast_printer.cc
+++ b/runtime/vm/ast_printer.cc
@@ -508,8 +508,6 @@ void AstPrinter::PrintLocalScope(const LocalScope* scope,
void AstPrinter::PrintFunctionScope(const ParsedFunction& parsed_function) {
HANDLESCOPE(Isolate::Current());
const Function& function = parsed_function.function();
- const Array& default_parameter_values =
- parsed_function.default_parameter_values();
SequenceNode* node_sequence = parsed_function.node_sequence();
ASSERT(node_sequence != NULL);
const LocalScope* scope = node_sequence->scope();
@@ -538,8 +536,8 @@ void AstPrinter::PrintFunctionScope(const ParsedFunction& parsed_function) {
param->name().ToCString());
// Print the default value if the parameter is optional.
if (pos >= num_fixed_params && pos < num_params) {
- const Object& default_parameter_value = Object::Handle(
- default_parameter_values.At(pos - num_fixed_params));
+ const Instance& default_parameter_value =
+ parsed_function.DefaultParameterValueAt(pos - num_fixed_params);
ISL_Print(" =%s", default_parameter_value.ToCString());
}
if (param->HasIndex()) {
« no previous file with comments | « no previous file | runtime/vm/code_descriptors_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698