| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
| |
This is an ahead-of time port to try and address #1624.
This is based on BZ 1461751 and Jon Coppeard's work in it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
This updates module implementation to match spec regarding handling of
instantiation errors, after it was changed yet again, this time to not remember
instantiation errors, but instead immediately rethrow applicable ones.
Ref: BZ 1420420
|
|
|
|
|
|
| |
This changes NativeObject::slotSpan() to get the class from the object group
rather than getting it from the base shape to avoid a race between
Shape::ensureOwnBaseShape and background sweeping.
|
|
|
|
|
|
| |
Report source position information for module export resolution failures.
Ref: BZ 1362098
|
|
|
|
|
| |
Store and re-throw module instantiation and evaluation errors.
Ref: BZ 1374239, 1394492
|
|
|
|
| |
This resolves #1570
|
| |
|
|
|
|
| |
It's a lot of code with no measurable effect.
|
|
|
|
|
|
| |
This should be the last code backout for this. merging this branch
should get us back to the way we were (+ additional code changes for
later changes) as fasr as the unused unboxed code is concerned.
|
|
|
|
|
| |
- accounting for removal of watch()/unwatch()
- updated for intermediate code changes.
|
|
|
|
| |
- accounting for removal of watch()/unwatch()
|
|
|
|
| |
This removes all the parts guarded by SPIDERMONKEY_PROMISE
|
|
|
|
|
|
| |
Tag #1287
Note: Without ReadableStream implementation
|
|
|
|
|
|
| |
async generator.
Tag #1287
|
|
|
|
| |
Tag #1287
|
|
|
|
| |
Tag #1287
|
|
|
|
|
|
| |
match ES2015/2017.
Tag #1287
|
|
|
|
|
|
| |
async function.
Tag #1287
|
|
|
|
| |
Tag #1287
|
|
|
|
|
|
| |
{yieldAndAwaitIndex,yieldAndAwaitOffset}.
Tag #1287
|
|
|
|
| |
Tag #1287
|
|
|
|
|
|
| |
method.
Tag #1287
|
|
|
|
|
|
| |
Promises and adding reactions.
Tag #1287
|
|
|
|
| |
This resolves #1302.
|
|
|
|
| |
Resolves #1284.
|
|
|
|
| |
This reverts commit f31b04a303607cd82757e7c4f60bb536658c8a30.
|
|
|
|
| |
Resolves #1284.
|
|
|
|
| |
This resolves #1283.
|
|\
| |
| |
| |
| | |
# Conflicts:
# modules/libpref/init/all.js
|
| |\
| | |
| | | |
Support Modern Solaris
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Compared with what Pale Moon had for Solaris originally, this is mostly the same zero point I started patching from, but I've made the following changes here after reviewing all this initial code I never looked at closely before.
1. In package-manifest.in for both Basilisk and Pale Moon, I've made the SPARC code for libfreebl not interefere with the x86 code, use the proper build flags, and also updated it to allow a SPARC64 build which is more likely to be used than the 32-bit SPARC code we had there.
2. See Mozilla bug #832272 and the old rules.mk patch from around Firefox 30 in oracle/solaris-userland. I believe they screwed up NSINSTALL on Solaris when they were trying to streamline the NSS buildsystem, because they started having unexplained issues with it around that time after Firefox 22 that they never properly resolved until Mozilla began building NSS with gyp files. I'm actually not even sure how relevant the thing they broke actually is to Solaris at this point, bug 665509 is so old it predates Firefox itself and goes back to the Mozilla suite days. I believe $(INSTALL) -t was wrong, and they meant $(NSINSTALL) -t because that makes more sense and is closer to what was there originally. It's what they have for WINNT, and it's possible a fix more like that could serve for Solaris as well. Alternatively, we could get rid of all these half-broken Makefiles and start building NSS with gyp files like Mozilla did.
3. I've completely cut out support for the Sun compiler and taken into account the reality that everyone builds Firefox (and therefore its forks) with GCC now on Solaris. This alone helped clean up a lot of the uglier parts of the code.
4. I've updated all remaining SOLARIS build flags to the newer XP_SOLARIS, because the SOLARIS flag is no longer set when building Solaris.
5. I've confirmed the workaround in gtxFontconfigFonts.cpp is no longer necessary. The Solaris people got impatient about implementing a half-baked patch for a fontconfig feature that wasn't ready yet back in 2009, and somehow convinced Mozilla to patch their software to work around it when really they should have just fixed or removed their broken fontconfig patch. The feature they wanted has since been implemented properly, and no version of Solaris still uses the broken patch that required this fix. If anyone had ever properly audited this code, it would have been removed a long time ago.
|
| | | |
|
| |/ |
|
| |
| |
| |
| |
| |
| |
| | |
This fixes a rare crash/CTD in JS.
This adds information about the constraints to a new RAII class so we
can finish all constraints at the end.
Based on changes in BZ 1568397
|
| |
| |
| |
| | |
properties.
|
| | |
|
| |
| |
| |
| | |
return value.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This is accomplished in the following ways.
LazyScripts and JSScripts now have 4 offsets:
- Source begin and end for the actual source. This is used for lazy parsing.
- toString begin and end for toString. Some kinds of functions, like async, only have a different begin offset. Class constructors have different offsets for both begin and end.
For syntactically present (i.e. non-default) constructors, the class source span is remembered directly on the LazyScript or JSScript. The toString implementation then splices out the substring directly. For default constructors, a new SRC_CLASS SrcNote type is added. It's binary and has as its arguments the begin and end offsets of the class expression or statement. MakeDefaultConstructor reads the note and overrides the cloned self-hosted function's source object. This is probably the least intrusive way to accomplish this.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
parameter name in a function with parameter expressions.
|
| | |
|
| | |
|
| |
| |
| |
| | |
NativeObject::{fillInAfterSwap,replaceWithNewEquivalentShape,generateOwnShape,shadowingShapeChange} to static method.
|
| |
| |
| |
| | |
RegExpObject::{getShared,createShared,dumpBytecode} to static method.
|
| |
| |
| |
| | |
Wrapper::Renew.
|