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

Unified Diff: runtime/vm/flow_graph_compiler_ia32.cc

Issue 10911217: Fix issue with optional named parameters. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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
Index: runtime/vm/flow_graph_compiler_ia32.cc
===================================================================
--- runtime/vm/flow_graph_compiler_ia32.cc (revision 12210)
+++ runtime/vm/flow_graph_compiler_ia32.cc (working copy)
@@ -632,8 +632,7 @@
// Check that min_num_pos_args <= num_pos_args <= max_num_pos_args,
// where num_pos_args is the number of positional arguments passed in.
const int min_num_pos_args = num_fixed_params;
- const int max_num_pos_args = num_fixed_params + num_opt_pos_params +
- (FLAG_reject_named_argument_as_positional ? 0 : num_opt_named_params);
+ const int max_num_pos_args = num_fixed_params + num_opt_pos_params;
// Number of positional args is the second Smi in descriptor array (EDX).
__ movl(ECX, FieldAddress(EDX, Array::data_offset() + (1 * kWordSize)));
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler_x64.cc » ('j') | tests/language/optional_named_parameters_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698