forked from facebook/hermes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mayHaveAccessor field to ClassFlags
Summary: Add a new field to the struct `ClassFlags`, which represents if there is *potentially* a property accessor in the `HiddenClass`. This field is pessimistic and can sometimes give false positives. This is due to the fact that the field may only ever be set, but never cleared. So if you define a getter property on an object, and then delete that property, the field will remain set. This field will open up the door to some potential optimizations now that we have this knowledge. It is also used to fix a correctness bug in the next diff. Reviewed By: neildhar Differential Revision: D41751159 fbshipit-source-id: 5ce88c9d84c989302525df7f87a172c5510b7c51
- Loading branch information
1 parent
e42cdb4
commit 79c94de
Showing
2 changed files
with
104 additions
and
0 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