Commit Graph

64166 Commits

Author SHA1 Message Date
Jeff Walden
b9b5100ca5 Bug 1446237 - Rename some String.cpp and Unicode.h functions to have better, and different, names -- for clarity particularly in scumbag unified builds with scumbag global |using namespace|. r=anba
--HG--
extra : rebase_source : b962da57aaf5bef373c8cac376d4d8791b1b7c3b
2018-03-15 18:39:05 -07:00
Jeff Walden
cce3d887e8 Bug 1446237 - Adjust make_unicode.py for its new location in vm/ and for the introduction of js/src/tests/non262/. r=sfink, r=jorendorff
--HG--
rename : js/src/vm/CaseFolding.txt => js/src/util/CaseFolding.txt
rename : js/src/vm/DerivedCoreProperties.txt => js/src/util/DerivedCoreProperties.txt
rename : js/src/vm/SpecialCasing.txt => js/src/util/SpecialCasing.txt
extra : rebase_source : 82c08bf19bf324d355d78abf62ed48adee5fe693
2018-03-15 18:39:02 -07:00
Jon Coppeard
40256267a8 Bug 1447308 - Fix bustage r=me 2018-03-20 18:21:41 +00:00
Jon Coppeard
f0fd915638 Bug 1447308 - Fix LifoAlloc::isEmpty() check r=nbp 2018-03-20 18:14:44 +00:00
Jon Coppeard
1d25717185 Bug 1447307 - Fix clearing whole cell store buffer r=sfink 2018-03-20 18:13:47 +00:00
Jon Coppeard
ff9605ca1e Bug 1447074 - Improve assertions for the whole cell store buffer r=sfink 2018-03-20 18:10:27 +00:00
Jon Coppeard
6d800ba596 Bug 1447073 - Check that helper threads never allocate in the nursery r=sfink 2018-03-20 17:59:02 +00:00
Steve Fink
073e868441 Bug 1367833 - Do not suppress analysis during minor GC, r=jonco
--HG--
extra : rebase_source : 8434a9a355037d27f0b857292f60c6bcf6df136b
extra : amend_source : 6f41be5f0fac7a08a56a8a373a3fb4841bde41af
2018-03-19 12:00:19 -07:00
Jason Orendorff
1400452236 Bug 1437537 - Fix assertion when forcing a return while paused on JSOP_EXCEPTION. r=jimb.
--HG--
extra : rebase_source : ef5b7c1dbfbccb7b053d1e3c9ee6c10b3f5cb72f
2018-03-07 16:40:33 -06:00
Jason Orendorff
cb5662a301 Bug 1443583 - Part 5: Simplify DebuggerFrame_getScript. r=jimb.
The patch for bug 684529, seven years ago, left this unnecessarily complicated.
Reviewed by me, naturally.

--HG--
extra : rebase_source : f7e4467ad9d8d0edef2f9d604af194ed37352f2a
2018-03-06 11:05:59 -06:00
Jason Orendorff
b1d5f27af3 Bug 1443583 - Part 4: Remove unused typedef DebuggerFrameReferent. r=jimb.
(Part 3 was refactored into part 2.)

--HG--
extra : rebase_source : 3f0aae443fea300e2500490797c36fe2e2a5c788
2018-03-06 11:04:56 -06:00
Jason Orendorff
b456584c13 Bug 1443583 - Part 2.7: Remove AbstractFramePtr::Tag_ScriptFrameIterData. r=jimb.
--HG--
extra : rebase_source : 0f7ba9a5a3ff10b135d208e84c817ee8b0f41977
2018-03-13 13:14:32 -05:00
Jason Orendorff
f476ac382d Bug 1443583 - Part 2.6: Make DebuggerFrame_freeScriptFrameIterData a method of DebuggerFrame. r=jimb.
Most of the work is to smooth out the types.

--HG--
extra : rebase_source : ced16a162ccf88ebabe978eb147144e9e397128b
extra : intermediate-source : 1f5a232b063b6bdd63dfd4c6c580f6e67408d135
extra : source : a01b5c2d22d1d3063e9ef57706486c8a26658896
2018-03-13 12:41:23 -05:00
Jason Orendorff
77f4e69c96 Bug 1443583 - Part 2.5: Change DebuggerFrame objects so that the private data is a FrameIter::Data*, not a raw form of an AbstractFramePtr. r=jimb.
--HG--
extra : rebase_source : e97f899d3b4c3c68bc3deea852a0c63cfc16ed5e
2018-03-13 12:40:36 -05:00
Jason Orendorff
4fcac4c2a3 Bug 1443583 - Part 2.4: Remove unused macros. r=jimb.
--HG--
extra : rebase_source : cb00251a0812be7771fc829e87efd3528d983b96
2018-03-13 11:31:33 -05:00
Jason Orendorff
ecc854d2c4 Bug 1443583 - Part 2.3: Change DebuggerFrame construction to require a FrameIter unconditionally. r=jimb.
--HG--
extra : rebase_source : d24bd9ee3ddbab3304f45eb7a94b1869d79c99a1
2018-03-13 11:20:30 -05:00
Jason Orendorff
4f04aa7100 Bug 1443583 - Part 2.2: Fix indentation throughout Debugger.cpp. r=jimb.
--HG--
extra : rebase_source : 2eb4e64bff4e2fd70d0611e785b4651301a175dc
2018-03-13 10:42:22 -05:00
Jason Orendorff
0e320c4557 Bug 1443583 - Part 2.1: Rename Debugger getScriptFrame methods to getFrame (JSNative frames do not exist anymore). r=jimb.
--HG--
extra : rebase_source : 91341424baa54c3d7b65f269194d4e848e326d8f
2018-03-13 10:18:27 -05:00
Jason Orendorff
8158b74b03 Bug 1443583 - Part 1: Rename JSTrapStatus -> js::ResumeMode. r=jimb.
--HG--
extra : rebase_source : e0e7672dcfb9ccbdea3ab6a6fc8cac3b37e4286f
2018-03-05 12:59:09 -06:00
Jim Blandy
9cb86413b0 Bug 1444604: Part 7: Reconcile LiveSavedFrameCache with evalInFramePrev by tweaking SavedFrame parent links. r=jorendorff
--HG--
extra : rebase_source : 8557ad889ee61fc20119b4bf83cee707563fd9d6
extra : histedit_source : 0195982580d3bf8b8bff470210d025b2fc3e9764
2018-03-14 12:54:04 -07:00
Jim Blandy
2776d2837b Bug 1444604: Part 6: Add LiveSavedFrameCache::findWithoutInvalidation. r=jorendorff
--HG--
extra : rebase_source : bbe26f26f0ae8e0f30e6505e1614c3ae4a320300
extra : histedit_source : fa29282837885902c7a5413cce34ef71e8b444d3
2018-03-15 16:26:09 -07:00
Jim Blandy
a6797c105e Bug 1444604: Part 5: Downcast FramePtrs to InterpreterFrames. r=jorendorff
--HG--
extra : rebase_source : 1fc182ca25629cc18d3cf1a9669c50d0050857a6
extra : histedit_source : ba30e28c2f6340937aee1abf0f873801b315edb2
2018-03-15 16:19:21 -07:00
Jim Blandy
edecd0bbfd Bug 1444604: Part 4: Construct FramePtrs from AbstractFramePtrs. r=jorendorff
--HG--
extra : rebase_source : 27cb8cb393ad666b38b320d9920021de16b74593
extra : histedit_source : ba96218ef2580dc2491e66137b961246068aa8fa
2018-03-15 16:14:31 -07:00
Jim Blandy
8889589772 Bug 1444604: Part 3: Let SavedStacks::insertFrames construct its own FrameIter. r=jorendorff
--HG--
extra : rebase_source : d7b624c36285c9dca7c657e9e4d269dd80bf9393
extra : histedit_source : 0ee2ff7716f25e154ecc36457a64bdb8f70b4aa6
2018-03-15 16:06:55 -07:00
Jim Blandy
34609554ab Bug 1444604: Part 2: Simplify condition in FrameIter::operator++. r=jorendorff
InterpreterFrame::isDebuggerEvalFrame implies ..::evalInFramePrev, so there's no
need to check both.

MozReview-Commit-ID: sIuSKhDVSl

--HG--
extra : rebase_source : 2524060f87ac650973ff0cd28b0498a87698455d
extra : amend_source : 8412a79dd813f8c4f93067dd2bcbe01c806cb672
2018-03-13 08:31:09 -07:00
Jim Blandy
557744de26 Bug 1444604: Part 1: Check for overrunning the LiveSavedFrameCache even in release builds. r=jorendorff
The LiveSavedFrameCache's invariant that every frame with its
hasCachedSavedFrame bit set has an entry in the cache should ensure that
LiveSavedFrameCache::find never runs off the bottom of the cache. But we should
check for an empty cache even in release builds, so that violations of this
invariant don't cause unconstrained memory accesses.

MozReview-Commit-ID: 1b9vx9nvVeY

--HG--
extra : rebase_source : f244b9b852ce1c31c6f9715fa5a64867355c290c
extra : amend_source : d4e54c6e9de245985cb07f80eb476fc777539e2f
2018-03-12 18:08:57 -07:00
Ted Campbell
02515b0066 Bug 1445970 - Fix ARM64 simulator on MSVC / Windows. r=jandem,lth
More of the same MSVC fixes. Also fix static asserts and memory fence
intrinsics.

MozReview-Commit-ID: Gyv9AUtNCXr
2018-03-20 10:26:46 -04:00
Ted Campbell
5380b50497 Bug 1445970 - Fix ARM simulator on MSVC / Windows. r=jandem
- Bitfield packing requires same base type. Use uint32_t and add
  required conversions.
- Enums with high-bit set, must be explictly marked unsigned if that is
  what we expect.
- MSVC warns about implicit 32/64 shift confusion, so be explicit.
- MSVC doesn't support asm() syntax.
- masm.ma_sub requires a ScratchRegisterScope
- MSVC sometimes gets confused by DebugOnly<T>
- MSVC warns about "-1U", so fix that.

MozReview-Commit-ID: BETAqbHKvUl
2018-03-20 10:26:30 -04:00
Jason Orendorff
c987b27ac5 Bug 1444894 - Add a compartment assertion to js::BaselineCompile. r=nbp,jorendorff 2018-03-20 13:41:12 +00:00
Jon Coppeard
84e70f499e Bug 1203273 - Add a canary to check gray buffers are valid r=sfink a=abillings 2018-03-20 10:19:37 +00:00
shindli
7b0e5ad3eb Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-20 12:16:52 +02:00
shindli
55e9f63bac Merge inbound to mozilla-central. a=merge 2018-03-20 12:11:27 +02:00
Jan de Mooij
44692ee3e1 Bug 1446348 - Poison TI data more eagerly. r=tcampbell
--HG--
extra : rebase_source : 660f3f8eaeb64501da000b569f93b8993bee2a73
2018-03-20 09:49:40 +01:00
Ted Mielczarek
4b813d4c4a bug 1255485 - Remove NSDISTMODE=copy from Makefiles. r=nalexander
MozReview-Commit-ID: GJV2O6zvEx2
2017-11-22 15:30:06 -05:00
Ted Mielczarek
dcdf597820 bug 1255485 - build PROGRAMs directly in dist/bin instead of copying them. r=nalexander
Historically we built all our binaries in directories in the objdir, then
symlinked them into dist/bin. Some binaries needed to be copied instead
so that certain relative path lookups work properly, so we resorted to
sprinkling `NSDISTMODE=copy` around Makefiles.

This change makes it so we build PROGRAMs (not any other sort of targets)
directly in dist/bin instead. We could do the same for our other targets
with a little more work.

There were several places in the tree that were copying built binaries to
some other place and needed fixup to match the new location of binaries.

On Windows pdb files are left in the objdir where the program was
originally linked. symbolstore.py needs to locate the pdb file both to
determine whether it should dump symbols for a binary and also to copy
the pdb file into the symbol package. We fix this by simply looking for
the pdb file in the current working directory if it isn't present next
to the binary, which matches how we invoke symbolstore.py.

MozReview-Commit-ID: 8TOD1uTXD5e
2018-01-10 14:26:12 -05:00
Luke Wagner
028218ea86 Bug 1445966 - Baldr: move wasm trap state from JSRuntime to JitActivation (r=bbouvier)
--HG--
extra : rebase_source : 3ce4922fa886a6dfb0d6fbcfab9e94e347d763f6
2018-03-19 12:42:05 -05:00
Ryan VanderMeulen
38359cd40f Bug 1445105 - Remove various MSVC de-optimizations used to work around compiler bugs which are no longer needed. r=dmajor
This reverts the following bugs: 703135, 977538, 1274450, 1403220

--HG--
extra : rebase_source : c63585a915c5b9ea987fd035dbb5ecb21cb6246e
2018-03-19 12:42:01 -04:00
André Bargull
c22fbf595e Bug 1446061 - Follow-up changes from unused parameter removal review. r=tcampbell 2018-03-15 12:23:33 -07:00
Jan de Mooij
22ab8f3704 Bug 1446766 part 3 - Remove unused setReturnDoubleRegs methods. r=nbp 2018-03-19 14:31:53 +01:00
Jan de Mooij
31dc39303a Bug 1446766 part 2 - Move some wasm code from CodeGenerator-shared.cpp to CodeGenerator.cpp. r=bbouvier 2018-03-19 14:31:25 +01:00
Jan de Mooij
989e24aa7d Bug 1446766 part 1 - Use a macro to declare CodeGenerator visit methods. r=nbp 2018-03-19 14:30:50 +01:00
Tooru Fujisawa
1adba8c1fc Bug 1442465 - Part 4.2: Stop unnecessarily awaiting on BrowserTestUtils.removeTab (simple part). r=dao 2018-03-19 11:16:45 +09:00
Jan de Mooij
b0b12232c4 Bug 1446315 followup - Fix MIPS build. r=me DONTBUILD 2018-03-18 14:25:41 +01:00
Emilio Cobos Álvarez
d5f66d9925 Bug 1446668: Remove setUserData crashtests. r=smaug
Reviewers: smaug

Bug #: 1446668

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

MozReview-Commit-ID: wyAvCCWbrS
2018-03-18 01:53:13 +01:00
Emilio Cobos Álvarez
bf8ff28130 Bug 1446668: Remove more dead code after bug 749981. r=smaug
Reviewers: smaug

Bug #: 1446668

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

MozReview-Commit-ID: CWv0odRUxgK
2018-03-18 01:53:13 +01:00
Margareta Eliza Balazs
d13266d3da Merge inbound to mozilla-central. a=merge 2018-03-17 23:52:08 +02:00
Emilio Cobos Álvarez
68cc4d2846 Bug 749981: Remove Node.getUserData / setUserData. r=smaug
Summary: MozReview-Commit-ID: JkUCvVZ4V2Y

Reviewers: smaug

Bug #: 749981

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

MozReview-Commit-ID: KadWzpMjdW
2018-03-17 19:33:07 +01:00
Jan de Mooij
aafdb7cac4 Bug 1446315 - Use a macro to declare all visit functions in Lowering.h. r=nbp 2018-03-17 14:53:37 +01:00
Brian Hackett
eec502d797 Bug 1440531 - Avoid unnecessary downcast, r=jandem. 2018-03-17 06:38:05 -06:00
Petr Sumbera
21f79b398e Bug 1445595 - fixes JSAtom.cpp build on big endian platforms r=nbp
--HG--
extra : histedit_source : 677258e873bc5845a422f5e83ef91e071af1d1f9
2018-03-16 06:29:03 -07:00