Index: runtime/vm/code_patcher_x64.cc |
=================================================================== |
--- runtime/vm/code_patcher_x64.cc (revision 4191) |
+++ runtime/vm/code_patcher_x64.cc (working copy) |
@@ -222,7 +222,6 @@ |
int* num_arguments, |
int* num_named_arguments, |
uword* target) { |
- ASSERT(function_name != NULL); |
ASSERT(num_arguments != NULL); |
ASSERT(num_named_arguments != NULL); |
ASSERT(target != NULL); |
@@ -231,7 +230,9 @@ |
*num_named_arguments = call.named_argument_count(); |
*target = call.target(); |
ICData ic_data(Array::ZoneHandle(call.ic_data())); |
- *function_name = ic_data.FunctionName(); |
+ if (function_name != NULL) { |
+ *function_name = ic_data.FunctionName(); |
+ } |
} |