Commit Graph

71380 Commits

Author SHA1 Message Date
Ted Campbell
1e2658e982 Bug 1559275 - Add TransistiveCompileOptions::forceFullParse. r=jandem
Check VM and Realm options that may disable syntax parsing up front in
the CompileOptions constructor. This is needed to make the frontend
closer to a pure-function.

Differential Revision: https://phabricator.services.mozilla.com/D35214

--HG--
extra : moz-landing-system : lando
2019-06-19 01:43:06 +00:00
Ted Campbell
1138b5e8fc Bug 1559275 - Add TransistiveCompileOptions::discardSource. r=jandem
Check realm flags at when creating CompileOptions rather than during
compilation. This is helpful for pre-compiling self-hosting code.

Differential Revision: https://phabricator.services.mozilla.com/D34976

--HG--
extra : moz-landing-system : lando
2019-06-19 00:27:40 +00:00
Ted Campbell
8a260ca538 Bug 1559275 - Remove unused CompileOptions::allowSyntaxParser. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D35070

--HG--
extra : moz-landing-system : lando
2019-06-19 00:27:41 +00:00
Ted Campbell
d2cb6059f3 Bug 1559275 - Remove unused CompileOptions::isProbablySystemCode. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D34977

--HG--
extra : moz-landing-system : lando
2019-06-19 00:27:40 +00:00
Ted Campbell
a68d5a818e Bug 1559275 - Only initialize JS::OwningCompileOptions by copying. r=jandem
All uses of OwningCompileOptions now are initialized from copy() so
remove the now-unused setters.

Differential Revision: https://phabricator.services.mozilla.com/D35080

--HG--
extra : moz-landing-system : lando
2019-06-19 00:27:41 +00:00
Ted Campbell
9b0fa42e1f Bug 1559275 - Avoid OwningCompileOptions accessors in js-rust glue. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D35260

--HG--
extra : moz-landing-system : lando
2019-06-19 00:50:43 +00:00
Ted Campbell
243dd6a969 Bug 1559275 - Use JS::CompileOptions in AsyncScriptCompiler. r=kmag
Initializing OwningCompileOptions directly will soon be deprecated in
order to have consistent defaults. This results in more consistent
behavior of experimental features that are enabled based on realm flags.

Differential Revision: https://phabricator.services.mozilla.com/D35071

--HG--
extra : moz-landing-system : lando
2019-06-19 00:27:41 +00:00
Narcis Beleuzu
68e070762a Merge mozilla-central to inbound. CLOSED TREE 2019-06-16 12:38:13 +03:00
shindli
e1240cd017 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-06-16 00:50:56 +03:00
Jeff Walden
563e73698d Bug 1554362 - Implement nsJSUtils::CompileModule for UTF-8 as well as UTF-16. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D34821

--HG--
extra : moz-landing-system : lando
2019-06-15 20:47:51 +00:00
Andreea Pavel
8c09b0389f Merge mozilla-inbound to mozilla-central. a=merge
--HG--
rename : mobile/android/base/java/org/mozilla/gecko/util/OnboardingStringUtil.java => mobile/android/base/java/org/mozilla/gecko/util/OnboardingResources.java
rename : toolkit/components/normandy/test/browser/addons/normandydriver-1.0/manifest.json => toolkit/components/normandy/test/browser/addons/normandydriver-a-1.0/manifest.json
rename : toolkit/components/normandy/test/browser/addons/normandydriver-2.0/manifest.json => toolkit/components/normandy/test/browser/addons/normandydriver-a-2.0/manifest.json
rename : toolkit/components/normandy/test/browser/addons/normandydriver-1.0/manifest.json => toolkit/components/normandy/test/browser/addons/normandydriver-b-1.0/manifest.json
2019-06-15 12:54:47 +03:00
Mihai Alexandru Michis
cff1990963 Backed out 4 changesets (bug 1545582) for causing build bustages in SavedStacks.cpp CLOSED TREE
Backed out changeset a47c4a44bae0 (bug 1545582)
Backed out changeset c05a5d68d9a8 (bug 1545582)
Backed out changeset 699de45940b1 (bug 1545582)
Backed out changeset 285673afaa99 (bug 1545582)
2019-06-15 02:19:08 +03:00
Greg Tatum
808dfce0d8 Bug 1545582 - Add a JS runtime level of allocation logging; r=jimb
Differential Revision: https://phabricator.services.mozilla.com/D28142

--HG--
extra : moz-landing-system : lando
2019-06-14 20:18:22 +00:00
Dorel Luca
bb47ceb7e9 Backed out 2 changesets (bug 1559275) for Mochitest failures in js/xpconnect/tests/chrome/test_discardSystemSource.xul. CLOSED TREE
Backed out changeset 41762079fd4c (bug 1559275)
Backed out changeset 248e294630c1 (bug 1559275)

--HG--
extra : rebase_source : 88e75469d7ad3dda9c969fa2c9ceee47b6d0169a
2019-06-14 23:52:03 +03:00
Kristen Wright
6cb69baf92 Bug 1558556 - swap cx->helperThread() nullchecks to check for js::ContextKind::HelperThread r=tcampbell
Added isHelperThreadContext() to check that cx runs on a helper thread, similar to isMainThreadContext(). Replaced null-checks meant to look for helper threads with isHelperThreadContext(), leaving instances where helperthread() is checked in order to access the actual helper thread.

Differential Revision: https://phabricator.services.mozilla.com/D34937

--HG--
extra : moz-landing-system : lando
2019-06-14 17:58:28 +00:00
Jim Blandy
44b4472bb0 Bug 1559062: Don't leak onStep handlers. r=jorendorff
When I wrote my prior patch, I forgot that a DebuggerFrame object's
ONSTEP_HANDLER_SLOT holds, not a JavaScript object, but a private value pointing
to an OnStepHandler, which must be explicitly freed.

Differential Revision: https://phabricator.services.mozilla.com/D34978

--HG--
extra : moz-landing-system : lando
2019-06-14 19:26:09 +00:00
Ted Campbell
e35a46b5c0 Bug 1559275 - Remove unused CompileOptions::isProbablySystemCode. r=jandem
Depends on D34976

Differential Revision: https://phabricator.services.mozilla.com/D34977

--HG--
extra : moz-landing-system : lando
2019-06-14 07:35:17 +00:00
Ted Campbell
d91ab6cc88 Bug 1559275 - Add CompileOptions::discardSource. r=jandem
Check realm flags at when creating CompileOptions rather than during
compilation. This is helpful for pre-compiling self-hosting code.

Differential Revision: https://phabricator.services.mozilla.com/D34976

--HG--
extra : moz-landing-system : lando
2019-06-14 18:34:32 +00:00
Jon Coppeard
cd489feba4 Bug 1395509 - Track malloc memory used by TypedObject trace lists r=sfink
This changes the format of the trace list from using -1 as a delimter to storing the list lengths up front so that we have length information.

Differential Revision: https://phabricator.services.mozilla.com/D34731
2019-06-12 16:23:04 +01:00
Jon Coppeard
da44422dfb Bug 1395509 - Track malloc memory used by PerfMesaurement objects r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D34730
2019-06-12 16:22:13 +01:00
Jon Coppeard
0c97e981f1 Bug 1395509 - Track malloc memory used by non-inline TypedArray elements r=sfink
Note that we only track the for typed arrays that are not backed by an ArrayBuffer as the memory is tracked there from then on.

Differential Revision: https://phabricator.services.mozilla.com/D34729
2019-06-12 16:22:03 +01:00
Jon Coppeard
2f2b9fb759 Bug 1395509 - Track malloc memory used by RegExp bytecode r=jandem
I had to store the length as the first word of the bytecode. I also shuffled RegExpShared fields around to make the class a little smaller.

Differential Revision: https://phabricator.services.mozilla.com/D34726
2019-06-12 16:21:18 +01:00
Jon Coppeard
e7e5bc5f08 Bug 1395509 - Allow multiple associations for some memory uses r=sfink
Some kinds of memory use (e.g. reg exp byte code) require multiple memory associations for a single cell. This patch adds machinery to let that happen for specific uses.

Differential Revision: https://phabricator.services.mozilla.com/D34723
2019-06-12 16:19:52 +01:00
Jon Coppeard
e5408fbd5b Bug 1395509 - Track malloc memory used by RegExpStatics objects r=pbone
I wanted to make VectorMatchPairs use ZoneAllocPolicy but this is also used in a bunch of places where it's not attached to a GC thing, so I left this as a todo.

Differential Revision: https://phabricator.services.mozilla.com/D34556
2019-06-11 17:03:42 +01:00
Jon Coppeard
3930aadd70 Bug 1555936 - Add diagnostic asserts to check the contents of the atoms table r=jandem a=abillings
Differential Revision: https://phabricator.services.mozilla.com/D34515
2019-06-11 15:04:29 +01:00
Ashley Hauck
8b0ff305bb Bug 1559123 - Do not relazify scripts with JSOP_CALLSITEOBJ. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D34916

--HG--
extra : moz-landing-system : lando
2019-06-14 15:10:10 +00:00
Paul Bone
42d58c9bd2 Bug 1476845 - Define the LifoAlloc poison values in jsutil.h r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D33452

--HG--
extra : moz-landing-system : lando
2019-06-14 05:37:17 +00:00
Paul Bone
30f610c54e Bug 1476845 - Add link to mrgiggles' source r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D33451

--HG--
extra : moz-landing-system : lando
2019-06-14 05:36:54 +00:00
Paul Bone
22ecc62435 Bug 1476845 - Collect poison values from around the engine into jsutil.h r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D33450

--HG--
extra : moz-landing-system : lando
2019-06-14 05:36:37 +00:00
Paul Bone
8dfaa246d4 Bug 1476845 - Update IsThingPoisoned r=jonco
Not all the listed poison values were used in IsThingPoisoned

Differential Revision: https://phabricator.services.mozilla.com/D33449

--HG--
extra : moz-landing-system : lando
2019-06-14 05:35:43 +00:00
André Bargull
a39b233aa1 Bug 1549578: Cache most recently used UDateTimePatternGenerator in SharedIntlData. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D30114

--HG--
extra : moz-landing-system : lando
2019-06-14 03:34:33 +00:00
Brian Hackett
3b879d5295 Bug 1556819 - Prevent AutoDebuggerJobQueueInterruption from doing anything when recording/replaying, r=jimb.
--HG--
extra : rebase_source : e83c092d13fc0e78f41256dcc28fb0000df1e0e1
2019-06-04 10:47:23 -10:00
Noemi Erli
fc3db67332 Backed out 2 changesets (bug 1558604) for causing failures in class-declaration-explicit-ctor.js CLOSED TREE
Backed out changeset 2fa5845aab8f (bug 1558604)
Backed out changeset 6accf00aa7cc (bug 1558604)
2019-06-13 16:06:59 +03:00
Matthew Gaudet
18dbab68b3 Bug 1558604 - Keep interpreted and interpretedLazy on FunctionBox r=jorendorff
Depends on D34586

Differential Revision: https://phabricator.services.mozilla.com/D34587

--HG--
extra : moz-landing-system : lando
2019-06-12 23:52:08 +00:00
Matthew Gaudet
17696d5b2a Bug 1558604 - Defer initializaton of JSFunction::nargs until after function parsing is done. r=jorendorff
The args count needs to be set before the LazyScript takes hold of the
functionbox, or else some code that references lazy functions can get the wrong
number of arguments (ie, CloneFunctionObjectIfNotSingleton on a lazy function)

Differential Revision: https://phabricator.services.mozilla.com/D34586

--HG--
extra : moz-landing-system : lando
2019-06-12 23:49:04 +00:00
Eden Chuang
2e0a3f0ddb Bug 1546306 - Add an optional aFromChromeContext parameter to nsIScriptError::InitWithWindowID for the case the passed in windowId is zero. r=baku
In some cases, the nsIScriptError is initialized with zero innerWindowId, but is from chrome context.

For cases, this patch adds an optional aFromChromeContext parameter to nsIScriptError::InitWithWindowID, which default value is false.

Differential Revision: https://phabricator.services.mozilla.com/D34508

--HG--
extra : moz-landing-system : lando
2019-06-13 09:50:49 +00:00
Oana Pop Rus
b93335c27f Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-06-13 13:04:19 +03:00
Oana Pop Rus
1133b6716d Merge inbound to mozilla-central. a=merge 2019-06-13 12:55:51 +03:00
Paul Bone
97cbd21e24 Bug 1557928 - Rename the DoNotCare tracer kind r=jonco
Depends on D34675

Differential Revision: https://phabricator.services.mozilla.com/D34703

--HG--
extra : moz-landing-system : lando
2019-06-13 01:11:53 +00:00
Paul Bone
dfeb403149 Bug 1557928 - Replace several functions with a single general function r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D34675

--HG--
extra : moz-landing-system : lando
2019-06-13 01:11:54 +00:00
Paul Bone
314393ad7b Bug 1557928 - Fix obsolete comments r=jonco
IsMarkingTracer no-longer exists, so remove one comment that refers to it
and fix another comment.

Differential Revision: https://phabricator.services.mozilla.com/D34674

--HG--
extra : moz-landing-system : lando
2019-06-13 01:11:56 +00:00
Paul Bone
256fa598e8 Bug 1557928 - Use the UnmarkGray tracekind for AssertNonGrayTracer r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D34673

--HG--
extra : moz-landing-system : lando
2019-06-13 06:06:11 +00:00
Adam Holm
46d3b5f507 Bug 1467191 - Unifies some implementations of CacheIR ops that perform a callVM. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D31702

--HG--
extra : moz-landing-system : lando
2019-06-13 02:28:50 +00:00
Adam Holm
f8f9b8becc Bug 1467191 - Unified IonCacheIRCompiler::calledPrepareVMCall_ and BaselineCacheIRCompiler::inStubFrame_ into CacheIRCompiler::preparedForVMCall_. r=mgaudet
Member variables `calledPrepareVMCall_` and `inStubFrame_` served the same purpose for their classes.
Unified them in CacheIRCompiler.

Differential Revision: https://phabricator.services.mozilla.com/D33526

--HG--
extra : moz-landing-system : lando
2019-06-13 02:25:36 +00:00
Adam Holm
6e4e4786b3 Bug 1467191 -Unified IonCacheIRCompiler and BaselineCacheIRCompiler's callVM and callVMInternal methods in CacheIRCompiler. r=mgaudet
Base commit for bug 1467191.

Differential Revision: https://phabricator.services.mozilla.com/D33524

--HG--
extra : moz-landing-system : lando
2019-06-13 02:23:26 +00:00
Adam Holm
c3861ce19d Bug 1467191 - Moving BaselineCacheIRCompiler and IonCacheIRCompiler into their respective headers. r=mgaudet
Base commit for bug 1467191. Moves declarations of BaselineCacheIRCompiler and IonCacheIRCompiler
into their respective header files.

Differential Revision: https://phabricator.services.mozilla.com/D33521

--HG--
extra : moz-landing-system : lando
2019-06-13 02:20:35 +00:00
Adam Holm
70dbabb58d Bug 1467191 - Moving BaselineCacheIRCompiler inside js::jit namespace. r=mgaudet
Base commit for patch for bug 1467191 that fixes inconsistencies in
namespace use between BaselineCacheIRCompiler and IonCacheIRCompiler.

Differential Revision: https://phabricator.services.mozilla.com/D33516

--HG--
extra : moz-landing-system : lando
2019-06-13 02:06:34 +00:00
Andrea Marchesini
bb718d74fc Bug 1490044 - Remove DOMPrefs. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D33510

--HG--
extra : moz-landing-system : lando
2019-06-13 09:02:03 +00:00
Jan de Mooij
cf29e09a41 Bug 1558801 - Change PrivateScriptData consts array to BigInt array. r=tcampbell
Since bug 1535137 the consts array only stores `BigIntValues` so we can change
it to a `BigInt` array. This will also make it easier to fix bug 1535154.

Differential Revision: https://phabricator.services.mozilla.com/D34712

--HG--
extra : moz-landing-system : lando
2019-06-12 16:18:22 +00:00
Andreea Pavel
9d535a8d72 Backed out 4 changesets (bug 1557928) SM build bustages on a CLOSED TREE
Backed out changeset 5e5b8a770b18 (bug 1557928)
Backed out changeset 6096454af6f1 (bug 1557928)
Backed out changeset 618afaab2634 (bug 1557928)
Backed out changeset ef396dbaecf3 (bug 1557928)
2019-06-13 04:07:17 +03:00