Index: runtime/vm/flow_graph_compiler_arm.cc |
diff --git a/runtime/vm/flow_graph_compiler_arm.cc b/runtime/vm/flow_graph_compiler_arm.cc |
index 1c2c6bdd98d23339f5bcbcda2d029e99ffc0d2a5..d8478ad0e36d2ac7088d5114da5423062460b885 100644 |
--- a/runtime/vm/flow_graph_compiler_arm.cc |
+++ b/runtime/vm/flow_graph_compiler_arm.cc |
@@ -864,9 +864,8 @@ void FlowGraphCompiler::CopyParameters() { |
__ b(&assign_optional_parameter); |
__ Bind(&load_default_value); |
// Load R5 with default argument. |
- const Object& value = Object::ZoneHandle( |
- zone(), parsed_function().default_parameter_values().At( |
- param_pos - num_fixed_params)); |
+ const Instance& value = parsed_function().DefaultParameterValueAt( |
+ param_pos - num_fixed_params); |
__ LoadObject(R5, value); |
__ Bind(&assign_optional_parameter); |
// Assign R5 to fp[kFirstLocalSlotFromFp - param_pos]. |
@@ -900,8 +899,7 @@ void FlowGraphCompiler::CopyParameters() { |
__ CompareImmediate(R9, param_pos); |
__ b(&next_parameter, GT); |
// Load R5 with default argument. |
- const Object& value = Object::ZoneHandle( |
- zone(), parsed_function().default_parameter_values().At(i)); |
+ const Object& value = parsed_function().DefaultParameterValueAt(i); |
__ LoadObject(R5, value); |
// Assign R5 to fp[kFirstLocalSlotFromFp - param_pos]. |
// We do not use the final allocation index of the variable here, i.e. |