98d07dd8bf
This CL contains 2 fixes: * Instantiator type arguments for factory constructors are calculated using factory's type parameters and not class type parameters (as factory's body uses factory's type parameters in kernel AST) This improves reuse of instantiator type arguments in factory constructors (optimization). * Result of _AssertionError::_throwNew call is dropped off the stack. Although control never returns from _throwNew, this fix is needed to maintain correct stack balance while compiling bytecode. Change-Id: Ib781b0d790a89576ef62b768513663e7e509749c Reviewed-on: https://dart-review.googlesource.com/69384 Reviewed-by: Zach Anderson <zra@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com>