This repository has been archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vm/kernel/bytecode] Minor fixes in bytecode generator
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>
- Loading branch information
1 parent
fe0640e
commit 98d07dd
Showing
3 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters