Index: runtime/vm/code_generator.cc |
diff --git a/runtime/vm/code_generator.cc b/runtime/vm/code_generator.cc |
index b0af85d5962a7a5b43e7d499790085b2b964f203..a607a62e582395e9d412fd69c46ff18e40829608 100644 |
--- a/runtime/vm/code_generator.cc |
+++ b/runtime/vm/code_generator.cc |
@@ -68,7 +68,6 @@ DECLARE_FLAG(bool, trace_compiler); |
DECLARE_FLAG(bool, trace_field_guards); |
DECLARE_FLAG(bool, trace_optimization); |
DECLARE_FLAG(bool, trace_optimizing_compiler); |
-DECLARE_FLAG(bool, warn_on_javascript_compatibility); |
DECLARE_FLAG(int, max_polymorphic_checks); |
DECLARE_FLAG(bool, precompilation); |
@@ -891,18 +890,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); |