7dea1d8a2c
When inlining implicit getters via the polymorphic inliner (and not through the flow graph optimizer) the fields loaded must be added to the list of guarded fields that trigger deoptimization when a store violated the field type guard. Also, this CL avoids adding fields to the list from inlining candidates that do not get inlined after all. Previously, the optimizer pass on the callee graph would add guarded fields even if the final graph does not get inlined. TEST=tests/language/vm/optimized_guarded_field_test.dart R=kmillikin@google.com Review URL: https://codereview.chromium.org//24096018 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27655 260f80e4-7a28-3924-810f-c04153c831b5