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.
Make updatePropertyFlagsWithoutTransitions always create a dictionary…
… mode class Summary: Generally, HiddenClasses are either in dictionary mode, or part of a tree of transitions such that walking the parents chain passes through all properties of the class. However, HiddenClass::updatePropertyFlagsWithoutTransitions would create oddball classes that fit neither of these categories: they were non-dictionary non-empty roots. In particular, it was not safe to clear their property map (nor that of any descendants). Change this method to always create a dictionary mode class. Such a class is still eligible for property caching. This method is currently only used to freeze the static builtins, so no further transitions from such classes were actually being created. Reviewed By: tmikov Differential Revision: D17779975 fbshipit-source-id: 4884b5ea26afb7ac15acae6687a0c6278e2b1b80
- Loading branch information
1 parent
7793d3b
commit 1a9cad6
Showing
3 changed files
with
9 additions
and
22 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