diff options
author | Moonchild <moonchild@palemoon.org> | 2020-07-08 14:12:57 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-08-30 09:33:21 +0000 |
commit | 70bafe4df514219dfc02185804286d1619290a16 (patch) | |
tree | 69f9af7988ac6d2277b0c85a183f4ca5b0877b17 /intl/unicharutil | |
parent | 498b1ab0c8db07784badbd2148f372027ef8cc27 (diff) | |
download | UXP-70bafe4df514219dfc02185804286d1619290a16.tar UXP-70bafe4df514219dfc02185804286d1619290a16.tar.gz UXP-70bafe4df514219dfc02185804286d1619290a16.tar.lz UXP-70bafe4df514219dfc02185804286d1619290a16.tar.xz UXP-70bafe4df514219dfc02185804286d1619290a16.zip |
Issue #618 - Use a single slot for the module's environment object.
According to the spec this isn't created until the module is instantiated, but
we create it when we compile the module.
We stored this previously in InitialEnvironmentSlot and copied it to
EnvironmentSlot when it was supposed to be created, but we can just store it in
the latter slot straight away and check the module's status and return null if
it shouldn't exist yet.
This reduces the number of slots needed on a moduleObject to 17.
Re: BZ 1420412 Part 1
We can't implement the second part to further reduce our number of slots,
because it relies on SetProxyReservedSlot which in turn relies on
rearchitecturing JS proxies to make reserved slots dynamic. That's a rabbit hole
we really don't want to fall into.
So, we'll end up being a bit slower because it can't be in-line allocated with
having more than 16 slots, but so be it. I sincerely doubt it will make any
practical difference.
Diffstat (limited to 'intl/unicharutil')
0 files changed, 0 insertions, 0 deletions