Index: runtime/vm/flow_graph_inliner.cc |
diff --git a/runtime/vm/flow_graph_inliner.cc b/runtime/vm/flow_graph_inliner.cc |
index d9f591920cb0bc654e77be964f64fd1713ac0569..9e956a6a2c1aa5ad43b2c4ea589a9b730be207c8 100644 |
--- a/runtime/vm/flow_graph_inliner.cc |
+++ b/runtime/vm/flow_graph_inliner.cc |
@@ -97,8 +97,7 @@ static bool IsCallRecursive(const Code& code, Definition* call) { |
// Helper to get the default value of a formal parameter. |
static ConstantInstr* GetDefaultValue(intptr_t i, |
const ParsedFunction& parsed_function) { |
- return new ConstantInstr(Object::ZoneHandle( |
- parsed_function.default_parameter_values().At(i))); |
+ return new ConstantInstr(parsed_function.DefaultParameterValueAt(i)); |
} |
@@ -1200,10 +1199,8 @@ class CallSiteInliner : public ValueObject { |
// For each optional positional parameter without an actual, add its |
// default value. |
for (intptr_t i = arg_count; i < param_count; ++i) { |
- const Object& object = |
- Object::ZoneHandle( |
- parsed_function.default_parameter_values().At( |
- i - fixed_param_count)); |
+ const Instance& object = |
+ parsed_function.DefaultParameterValueAt(i - fixed_param_count); |
ConstantInstr* constant = new(Z) ConstantInstr(object); |
arguments->Add(NULL); |
param_stubs->Add(constant); |