| Index: runtime/vm/code_generator.cc
|
| diff --git a/runtime/vm/code_generator.cc b/runtime/vm/code_generator.cc
|
| index 47d215c5936f9cd919edee13ceaa25c8f8c21447..603f9e456bd3b6a8f443f1dcf2287385743e6461 100644
|
| --- a/runtime/vm/code_generator.cc
|
| +++ b/runtime/vm/code_generator.cc
|
| @@ -66,7 +66,6 @@ DECLARE_FLAG(int, max_deoptimization_counter_threshold);
|
| DECLARE_FLAG(bool, enable_inlining_annotations);
|
| DECLARE_FLAG(bool, trace_compiler);
|
| DECLARE_FLAG(bool, trace_optimizing_compiler);
|
| -DECLARE_FLAG(bool, warn_on_javascript_compatibility);
|
| DECLARE_FLAG(int, max_polymorphic_checks);
|
| DECLARE_FLAG(bool, precompilation);
|
|
|
| @@ -889,18 +888,6 @@ DEFINE_RUNTIME_ENTRY(InlineCacheMissHandlerOneArg, 2) {
|
| const ICData& ic_data = ICData::CheckedHandle(arguments.ArgAt(1));
|
| GrowableArray<const Instance*> args(1);
|
| args.Add(&receiver);
|
| - if (FLAG_warn_on_javascript_compatibility) {
|
| - if (receiver.IsDouble() &&
|
| - String::Handle(ic_data.target_name()).Equals(Symbols::toString())) {
|
| - const double value = Double::Cast(receiver).value();
|
| - if (floor(value) == value) {
|
| - Report::JSWarningFromIC(ic_data,
|
| - "string representation of an integral value "
|
| - "of type 'double' has no decimal mark and "
|
| - "no fractional part");
|
| - }
|
| - }
|
| - }
|
| const Function& result =
|
| Function::Handle(InlineCacheMissHandler(args, ic_data));
|
| arguments.SetReturn(result);
|
|
|