471f9a0a63
Move the code deciding whether instance needs to be handled specially into AddConstObject, instead of having it spread around - this ensures uniform handling. Fixes https://github.com/flutter/flutter/issues/14891 Bug: 14891 Change-Id: I92b6383f37f6b6cf2e917013d17e8ae7ee977150 Reviewed-on: https://dart-review.googlesource.com/44300 Commit-Queue: Vyacheslav Egorov <vegorov@google.com> Reviewed-by: Ryan Macnak <rmacnak@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com>