Index: runtime/vm/flow_graph_compiler_x64.cc |
=================================================================== |
--- runtime/vm/flow_graph_compiler_x64.cc (revision 14360) |
+++ runtime/vm/flow_graph_compiler_x64.cc (working copy) |
@@ -815,6 +815,7 @@ |
// dropped the spill slots. |
BitmapBuilder* empty_stack_bitmap = new BitmapBuilder(); |
if (function.IsClosureFunction()) { |
+ // TODO(regis): Call NoSuchMethod with "call" as name of original function. |
// We do not use GenerateCallRuntime because of the non-standard (empty) |
// stackmap used here. |
__ CallRuntime(kClosureArgumentMismatchRuntimeEntry); |
@@ -963,6 +964,8 @@ |
__ cmpq(RAX, Immediate(Smi::RawValue(num_fixed_params))); |
__ j(EQUAL, &argc_in_range, Assembler::kNearJump); |
if (function.IsClosureFunction()) { |
+ // TODO(regis): Call NoSuchMethod with "call" as name of original |
+ // function. |
GenerateCallRuntime(function.token_pos(), |
kClosureArgumentMismatchRuntimeEntry, |
prologue_locs); |