Commit Graph

63025 Commits

Author SHA1 Message Date
Tooru Fujisawa
3f2d05cb80 Bug 1228841 - Part 3: Remove conditional catch and fix Reflect.parse tests for conditional catch. r=jwalden,evilpie 2017-12-05 09:42:40 +09:00
Tooru Fujisawa
244783eb02 Bug 1228841 - Part 2: Remove testcases specific to conditional catch in js/. r=evilpie 2017-12-05 09:42:40 +09:00
Tooru Fujisawa
1a88626bef Bug 1228841 - Part 1: Remove conditional catch consumers in js/. r=evilpie 2017-12-05 09:42:39 +09:00
Bogdan Tara
ebe0a1a20c Merge inbound to mozilla-central r=merge a=merge 2017-12-04 22:20:49 +02:00
manikishanghantasala
ac51063f3e Bug 1162614 - fix incorrect function name in Debugger.Script.md; DONTBUILD, r=tromey
MozReview-Commit-ID: EHjdqDxMXyC

--HG--
extra : rebase_source : a7e9f29d31d66a2d457957fb89053ba50a8cfd0f
2017-12-05 08:37:12 -07:00
Matthew Gaudet
3b05d35ff6 Bug 1419372 - Optimize in Operator for typed arrays. r=jandem
Add inline cache entry for TypedArray exists checks. Requires adding
a new CacheIR opcode LoadTypedElementExistsResult, as well as a macro
assembler implementation for that opcode.
2017-11-30 11:21:36 -05:00
Jan de Mooij
fdcdfff048 Bug 1422726 - Optimize addEnumerableDataProperty by adding a fast path for the most common case. r=bhackett
--HG--
extra : rebase_source : 4f12ef98636ea4523c01ff75f3be79ee905d160a
2017-12-04 14:56:06 +01:00
Nathan Froyd
ec3249906a Bug 1422607 - move PREPROCESS_OPTION to moz.configure; r=chmanchester 2017-12-04 08:14:06 -05:00
Nathan Froyd
3a307d4ebb Bug 1422540 - move --enable-gczeal to moz.configure; r=nalexander 2017-12-03 13:40:03 -05:00
Jan de Mooij
f6cb1d686e Bug 1417844 part 7 - Remove JSVersion. r=evilpie 2017-12-05 11:07:52 +01:00
Jan de Mooij
84728f75af Bug 1417844 part 6 - Remove more JSVersion code from XPConnect. r=kmag 2017-12-05 11:07:01 +01:00
Nathan Froyd
609fb452b4 Bug 1422380 - move --enable-jitspew to moz.configure; r=nalexander 2017-12-02 13:43:40 -05:00
Nathan Froyd
01a91d775d Bug 1421792 - move --enable-trace-logging to moz.configure; r=nalexander 2017-12-02 13:43:41 -05:00
Benjamin Bouvier
518bd67cdd Bug 1421244: Remove RegionLock; r=lth
MozReview-Commit-ID: DdHaiSGuSfw

--HG--
extra : rebase_source : deb59e2acc63c0f5286bb14e1a9e3476d05d96ea
extra : amend_source : 02a4a6ed02303693dbc6a8494d69455306dd15e6
2017-12-01 16:30:54 +01:00
Benjamin Bouvier
939fff3f0e Bug 1421244: Remove more ARMv6 dead code; r=lth
MozReview-Commit-ID: FkeXdjIcffl

--HG--
extra : rebase_source : eb168dfa352f94153f78616dfb1efa537c797ddb
2017-11-30 12:55:06 +01:00
Benjamin Bouvier
7c8fe68f05 Bug 1421244: Remove supports for atomics on ARM < v7; r=lth, sr=luke
MozReview-Commit-ID: LQKX0y49mlq

--HG--
extra : rebase_source : da2704c5f9d064e940f30a709a1d107da3fec446
2017-11-29 13:24:10 +01:00
Nathan Froyd
e511fa1e4b Backout f9231cda92d8 (bug 1421792) on suspicion of causing inscrutable moz.configure lint errors; r=bustage
Do this on a CLOSED TREE, of course.
2017-12-01 22:04:58 -05:00
Nathan Froyd
ed33603f94 Bug 1421792 - move --enable-trace-logging to moz.configure; r=nalexander 2017-12-01 21:29:27 -05:00
Nathan Froyd
d7b5304b9d Bug 1421791 - move --enable-{ion,simulator} definitions to moz.configure; r=nalexander
--enable-ion was only used by --enable-simulator and related options, so
there wasn't much point in making two separate commits.

This translation is a little more verbose than the original
old-configure code, but I think it is more readable and easier to
follow.  We also don't port over --enable-simulator=no, as there doesn't
seem to be much point in doing so.
2017-12-01 21:29:27 -05:00
Nathan Froyd
1198705b7d Bug 1421687 - move JS_*UNBOX* definitions to moz.configure; r=nalexander 2017-12-01 21:29:28 -05:00
Valerie R Young
1b7f664804 Bug 1421064 - Do not fail if options do not exist r=sfink
--HG--
extra : rebase_source : 2fba2a4048194369f33928cee3d917185fc3ec75
2017-11-28 07:21:00 -08:00
Valerie R Young
7ad8075610 Bug 1421064 - Add automatic shell.js includes to export script r=sfink
--HG--
extra : rebase_source : da4dff06b9a3d019f8c3cd57ac6bea3ef13539e5
2017-11-30 08:10:00 -08:00
Valerie R Young
1413967ab3 Bug 1421064 - Update export script to accept multiple src dirs r=sfink
--HG--
extra : rebase_source : 29b3ca01e5437d70f6fc007b68be116b207d0553
2017-11-30 08:09:00 -08:00
Kannan Vijayan
f8d39a38ec Bug 1415313 - Canonicalize f32s coming out of a TypedObject. r=jorendorff 2017-12-01 08:50:49 -05:00
Gurzau Raul
0b613c3887 Merge inbound to mozilla-central r=merge a=merge 2017-12-01 12:56:06 +02:00
Sebastian Hengst
5e55af8f82 merge mozilla-central to autoland. r=merge a=merge 2017-12-01 01:30:16 +02:00
Sebastian Hengst
7cbd9c3050 merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-12-01 01:25:54 +02:00
Brindusan Cristian
6a74eec204 Merge inbound to mozilla-central r=merge a=merge 2017-12-01 00:22:25 +02:00
Ted Campbell
c10183b277 Bug 1421445 - Add NOP-slide before JIT code buffers on AMD Bobcat. r=jandem
In order to try and mitigate crashes on 64-bit FF 57+ on AMD Bobcat
CPUs, insert NOPs before the JIT code buffers. On earlier versions of
these processors, hardware bugs cause crashes to occur in locations
before the JIT code stub. For simplicity, the JitCode* pointer is
shifted even on machines that are unaffected. With the previous patch
fixing over allocation, we end up being size-neutral.

MozReview-Commit-ID: 4LqBfOzv6Qy
2017-11-30 10:39:06 -05:00
Ted Campbell
77e7cddb35 Bug 1421445 - Don't waste space allocating jit code buffer. r=jandem
When computing worst-case alignment padding, we don't take into account
the buffer already being partially aligned. This saves one word per
JitCode buffer allocation.

MozReview-Commit-ID: ZMwBzp97xy
2017-11-30 10:38:57 -05:00
Cosmin Sabou
5c4663243d Backed out 23 changesets (bug 1419771) for frequently failing service workers related devtools tests, e.g. devtools/client/aboutdebugging/test/browser_service_workers_push.js. r=backout on a CLOSED TREE
Backed out changeset 2242edc902a5 (bug 1419771)
Backed out changeset 9cc3c29a9e36 (bug 1419771)
Backed out changeset c39ee002c825 (bug 1419771)
Backed out changeset caf7428013f2 (bug 1419771)
Backed out changeset c03970363433 (bug 1419771)
Backed out changeset 7f9de012861e (bug 1419771)
Backed out changeset ed146ac42a7f (bug 1419771)
Backed out changeset a8154698f782 (bug 1419771)
Backed out changeset 8a54c1c8d45d (bug 1419771)
Backed out changeset e32cd55b4c96 (bug 1419771)
Backed out changeset b7f342f436ef (bug 1419771)
Backed out changeset 60464b3e468f (bug 1419771)
Backed out changeset 108806f14ad8 (bug 1419771)
Backed out changeset 65998b0740f3 (bug 1419771)
Backed out changeset 0d23880842d8 (bug 1419771)
Backed out changeset 862aeaa2fefd (bug 1419771)
Backed out changeset cbc192478bf5 (bug 1419771)
Backed out changeset c58ef2a91bad (bug 1419771)
Backed out changeset 2b0a4bfd654f (bug 1419771)
Backed out changeset f182eba574f9 (bug 1419771)
Backed out changeset d9999a624097 (bug 1419771)
Backed out changeset 4050a1b8db2b (bug 1419771)
Backed out changeset a1a68e6500d9 (bug 1419771)
2017-11-30 22:35:32 +02:00
Cosmin Sabou
044c09018c Backed out 2 changesets (bug 1421445) for Valgrind test failures r=backout on a CLOSED TREE
Backed out changeset 39f221c258fc (bug 1421445)
Backed out changeset 797d9e71b648 (bug 1421445)
2017-11-30 22:33:01 +02:00
Jon Coppeard
295da27e19 Bug 1421319 - Split out GCManagedDeletePolicy into its own header r=sfink 2017-11-29 11:29:13 +00:00
Jan de Mooij
748dad0399 Bug 1417961 - Fix Baseline debug mode OSR to delazify type monitor chains correctly. r=tcampbell
--HG--
extra : rebase_source : 56b5cce9c4613faafea4779c11fbb150a8aae998
2017-11-30 15:53:38 +01:00
Lars T Hansen
d14121a251 Bug 1420104 - rabaldr, remove more ifdefs, simplify more. r=bbouvier
Removing some more porting interfaces here because they are not
necessary.  This was informed by ongoing ARM64 work (hence there's a
generalization here for ARM64) but is really independent of it.

MozReview-Commit-ID: 6L8qZaOzUFi

--HG--
extra : rebase_source : ff4f1aef90049eb99517a7d7077c063a225d5825
2017-11-28 09:13:52 +01:00
Nick Fitzgerald
a97cf09f2d Bug 1421043 - Remove strange whitespace characters in SavedStacks.h comment. r=jimb 2017-11-27 12:41:00 -05:00
Lars T Hansen
e7c5bdd063 Bug 1420104 - rabaldr, clean up temp register managements and some ifdefs. r=bbouvier
A few ifdefs that were on platform names were really supposed to be on
JS_PUNBOX64.

Changes temp register management so that functions in the platform
layer now allocate and return the temp registers when appropriate and
return invalid registers when not appropriate.  This cleans up a bit
of code in the platform-independent layer.

MozReview-Commit-ID: K69Bj1gUNbZ

--HG--
extra : rebase_source : 39a536cfad462707689e3dc3cdc9e64ed3f598fc
2017-11-23 12:37:22 +01:00
Lars T Hansen
9435161143 Bug 1420104 - rabaldr, fix operand order when loading from CPU stack and locals. r=bbouvier
Change the methods on the BaseFrame so that they take the source first
and destination last.  Generally rename operands so that they are
called 'src' and 'dest', when meaningful.

MozReview-Commit-ID: K3tldAmfice

--HG--
extra : rebase_source : 167fd38a59fa11f0f3d3a11a899f255b54c0313c
2017-11-23 11:38:22 +01:00
Lars T Hansen
9f52612a66 Bug 1420104 - rabaldr, fix operand order when loading from value stack. r=bbouvier
Change the layer in BaseCompiler that operates on Stk& values so that
it always takes source first and destination last.  Generally rename
operands so that they are called 'src' and 'dest', to further reduce
confusion.

MozReview-Commit-ID: 4sldPz1mYtw

--HG--
extra : rebase_source : ec8b3db539485e1dacad310fc1500f7e85de0261
2017-11-23 10:35:11 +01:00
Lars T Hansen
95c4bf2498 Bug 1420104 - rabaldr, reorganize and tidy up. r=bbouvier
Clean up the handling of invalid registers by adding predicates to the
register wrapper types as well as static constructors to construct
invalid register values.

Move code around so that register management code is separated from
the value stack code.

Generally clean up and use abstractions that load constants and
perform register-to-register moves.

MozReview-Commit-ID: KpJisW1HEV2

--HG--
extra : rebase_source : a21aee1fced94f3ffc2e6e8af892caeb89a4a235
2017-11-23 10:13:33 +01:00
shindli
c040137399 Merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-11-30 12:01:52 +02:00
Andreea Pavel
ca1cd48e2d Backed out 1 changesets (bug 1421319) for Spidermonkey build bustage e.g. ecma_6/TypedArray/map-and-filter.js r=backout a=backout on a CLOSED TREE
Backed out changeset 52b19d5cd4d0 (bug 1421319)
2017-11-30 04:15:27 +02:00
Bogdan Tara
df97c78dbf Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-11-30 01:10:06 +02:00
Bogdan Tara
d8635b15e4 Merge inbound to mozilla-central r=merge a=merge on a CLOSED TREE 2017-11-30 00:41:09 +02:00
Ted Campbell
77ee839bdc Bug 1418894 - Use marker values in XDR data to detect corruption. r=nbp
MozReview-Commit-ID: D6PxPBdgtPP
2017-11-29 16:40:32 -05:00
Ted Campbell
c9e3f6d398 Bug 1418894 - Harden XDR data decoding. r=nbp
This patch adds better error detection to XDR decoding to reduce memory
corruption in the event that XDR data is corrupt (which is not
*supposed* to happen).

Add missing default cases. Make out-of-range values fail the decode by
asserting in debug, and returning a TranscodeError in release. Mix a
magic value into enum value before transcoding to buffer (to reduce
chance of garbage data being decoded).

MozReview-Commit-ID: 1wPkho9dm8c
2017-11-29 16:40:30 -05:00
Jan de Mooij
d05bff2588 Bug 1414849 - Remove a bogus assert. r=tcampbell
--HG--
extra : rebase_source : 0b24d51ff49564d43dc8cd86d076fa17ab342608
2017-11-29 16:03:50 +01:00
Jan de Mooij
59cae193e5 Bug 1415883 - Fix some issues in ShiftFromList. r=arai
--HG--
extra : rebase_source : a05f9755046f54dfbc2b9ec1c41a298db5e127f9
2017-11-29 16:03:12 +01:00
Jon Coppeard
47f73350d6 Bug 1421319 - Split out GCManagedDeletePolicy into its own header r=sfink 2017-11-29 11:29:13 +00:00
Jan de Mooij
fd27c36b82 Bug 1420961 part 4 - Add missing markId call to Reify function. r=jonco 2017-11-29 11:42:14 +01:00
Jan de Mooij
37d8d3bd88 Bug 1420961 part 3 - Remove JSITER_ENUMERATE and flags arguments. r=evilpie 2017-11-29 11:41:41 +01:00
Jan de Mooij
94ab7abbe5 Bug 1420961 part 2 - Replace if-statement with an assert in js::GetIterator. r=evilpie 2017-11-29 11:41:10 +01:00
Jan de Mooij
5e9cba3e6b Bug 1420961 part 1 - Make NativeIteratorNext infallible. r=evilpie 2017-11-29 11:40:30 +01:00
Dorel Luca
f622b80073 Merge mozilla-central to mozilla-inbound r=merge 2017-11-29 12:34:02 +02:00
Dorel Luca
be78e6ea9b Merge inbound to mozilla-central r=merge a=merge 2017-11-29 12:26:15 +02:00
Yoshi Huang
5dfaa64c5f Bug 1421152 - Add a checked cast method to TenuredCell. r=jonco 2017-11-29 14:56:50 +08:00
Luke Wagner
d33cebae08 Bug 1415291 - Baldr: factor out ToTableIndex() (r=bbouvier)
MozReview-Commit-ID: 9T8pJS5ajgT
2017-11-28 22:58:21 -06:00
Tiberius Oros
18ea9ecad9 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE
--HG--
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug-618078-network-exceptions.html => devtools/client/webconsole/new-console-output/test/mochitest/test-network-exceptions.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.html => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.js => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.js^headers^ => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.js^headers^
extra : rebase_source : e126b0ab427161de0acd67cdfb9a1434415412dc
2017-11-29 02:25:59 +02:00
Jesse Schwartzentruber
5b3e545888 Bug 1419798 - Only build fuzzing interfaces if clang or AFL compilers are used. r=glandium
MozReview-Commit-ID: H1I9wdqTV4n

--HG--
extra : rebase_source : 18eb2536a5db80c585828ae44329f1a00d82209a
2017-11-22 11:21:09 -05:00
Bogdan Tara
a14227d83a Merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-11-30 01:08:24 +02:00
Oriol Brufau
e5cfd8f778 Bug 1421412 - Log a failure when there is a generator function in asm.js r=bbouvier
MozReview-Commit-ID: BiesfIMyH9j

--HG--
extra : rebase_source : 7dc3124c2195ca2d5f21e33f4fe0cbfa12963ac9
2017-11-29 17:09:18 +01:00
Edgar Chen
9f4324f41e Bug 1416999 - Remove document.registerElement; r=smaug
MozReview-Commit-ID: HiX07Vbljhk

--HG--
rename : dom/base/test/chrome/registerElement_ep.js => dom/base/test/chrome/custom_element_ep.js
rename : dom/base/test/chrome/frame_registerElement_content.html => dom/base/test/chrome/frame_custom_element_content.html
rename : dom/base/test/chrome/test_registerElement_content.xul => dom/base/test/chrome/test_custom_element_content.xul
rename : dom/base/test/chrome/test_registerElement_ep.xul => dom/base/test/chrome/test_custom_element_ep.xul
rename : dom/base/test/test_document_register.html => dom/base/test/test_custom_element.html
rename : dom/tests/mochitest/webcomponents/test_document_register.html => dom/tests/mochitest/webcomponents/test_custom_element_define.html
rename : dom/tests/mochitest/webcomponents/test_document_register_parser.html => dom/tests/mochitest/webcomponents/test_custom_element_define_parser.html
rename : dom/tests/mochitest/webcomponents/test_template_custom_elements.html => dom/tests/mochitest/webcomponents/test_custom_element_template.html
extra : rebase_source : cd2ebf166e8bd9c49910387c9136d7b83b51598d
2017-11-16 12:23:15 +08:00
Dorel Luca
79499f4044 Merge mozilla-central to autoland r=merge on a CLOSED TREE 2017-11-29 12:31:25 +02:00
Andrew McCreight
f5c90d1f80 Bug 1422432 - Remove PrintJSStack(). r=mrbkap
MozReview-Commit-ID: 8ObqjMxAzIR

--HG--
extra : rebase_source : 91fdc59e435ccdb007c0a1b37b85bc4ddd0b189e
2017-12-01 16:16:11 -08:00
Jeff Walden
3fea56de3a Bug 1422101 - Add some sanity-checking code to some of the name-resolution manipulation. r=arai in private conversation
--HG--
extra : rebase_source : fadcc901d523069f1cbc3daca68396f8efff269b
2017-11-30 11:34:26 -08:00
Narcis Beleuzu
2d0c93c273 Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-12-01 00:47:21 +02:00
Matthew Gaudet
700aa2f9ba Bug 1421685 - Correct scope chain reference in Baseline. r=tcampbell 2017-11-29 12:18:41 -05:00
Margareta Eliza Balazs
cb71a3c4fe Merge mozilla-central to mozilla-autoland. r=merge a=merge CLOSED TREE 2017-11-30 12:55:54 +02:00
Zibi Braniecki
cc1a11fe27 Bug 1421453 - Extend Intl.RelativeTimeFormat to support type option. r=Waldo
MozReview-Commit-ID: BUdmtVSF5La

--HG--
extra : rebase_source : 47f5dbc9111eede3b7cdf905cc207d8dcaded119
2017-11-28 14:45:04 -08:00
Lars T Hansen
a1a47e4c9a Bug 1419034 - rabaldr, factor out the stack frame logic. r=bbouvier
This patch does several interconnected things with Rabaldr's stack
frame.

First, it abstracts the stack frame logic from BaseCompiler into
BaseStackFrame; BaseCompiler now only knows very little about the
frame, and what it is allowed to know is documented (mostly that there
is a static part and a dynamic part and that masm.framePushed() is
always correct).  In particular, BaseCompiler must use BaseStackFrame
to push and pop values from its value stack, it can't use masm
directly.  This abstraction is important for ARM64, where we can't
freely push and pop, because SP must be aligned on a 16-byte boundary.
BaseStackFrame is also in charge of allocating locals to frame slots
and to access the locals.  Crucially, these abstractions do not
require us to use a frame pointer.

Second, it removes all uses of the StackPointer variable (not defined
on ARM64) and most uses of masm.getStackPointer() from BaseCompiler;
the few that are left are well-defined cross-platform and are not
sensitive to the layout of the frame, only its size.

Third, it makes BaseLocalIter the property of BaseStackFrame (but
defined outside the latter since the iter class is accessed
externally).

MozReview-Commit-ID: 5BWCTeK1NOR

--HG--
extra : rebase_source : 5955d2cc47e94d855c117fd1f508c94398d6a990
extra : source : 3c874514716acf7b55fb2c0805e138b636071c88
2017-10-18 12:16:30 +01:00
Lars T Hansen
5a943ee471 Bug 1421565 - Propagate allocation failure. r=bbouvier
These guards were mistakenly removed when bug 1377576 landed, because
I misunderstood how the allocators for these five node types could
fail - they can return nullptr for reasons other than allocation
failure.

MozReview-Commit-ID: 4A0GdFRkeHn

--HG--
extra : rebase_source : 3b5ac3aa6a0ca37e0e664c0addc96ece7b3e143c
2017-11-30 12:22:10 +01:00
Andrea Marchesini
a8cc2c7114 Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 1 - dump enabled, r=asuth 2017-11-30 18:16:44 +01:00
Dorel Luca
20ddc8dfae Backed out 7 changesets (bug 1377007) for failing build bustage on Linux pgo and faling Cpp's jsapi-tests r=backout on a CLOSED TREE
Backed out changeset 9428a4ed7dec (bug 1377007)
Backed out changeset 4407b43a8aff (bug 1377007)
Backed out changeset 65a37a7f78a5 (bug 1377007)
Backed out changeset 276fe6d9b716 (bug 1377007)
Backed out changeset 1de46e60ffba (bug 1377007)
Backed out changeset 893e303e17ec (bug 1377007)
Backed out changeset 081a241e25d4 (bug 1377007)
2017-12-04 18:01:09 +02:00
David Teller
b03980beee Bug 1377007 - AutoSpider now exposes the directory of js/src;r=jonco
MozReview-Commit-ID: 6hROX8YpnCn

--HG--
extra : rebase_source : 8d8e5c5a9e471d5294ade810b2a6dcbe92e66130
2017-10-24 12:38:31 +02:00
Dragan Mladjenovic
d58de42ec0 Bug 1421192 - Baldr: Ensure that sAlreadyInSignalHandler is initialized. r=luke
--HG--
extra : rebase_source : 8e3b5cb5e4e2b1e1b1f14f2e08f64d5d44af88f2
2017-11-28 01:17:00 -05:00
Jan de Mooij
e001275fd0 Bug 1419758 - Don't attach a constructing stub if the callee doesn't have JIT code yet. r=bbouvier 2017-11-28 16:53:01 +01:00
André Bargull
d184181ecb Bug 1406095 - Add fast path for native objects to Object.values/entries. r=jandem 2017-11-28 02:37:21 -08:00
Dragan Mladjenovic
25fa761c4b Bug 1420838 - Stub out wasm baseline atomics for MIPS. r=lth
--HG--
extra : amend_source : 6a26587f4a6871b9363ffc55f08a94578f148260
2017-11-28 03:02:00 -05:00
Benjamin Bouvier
2ed1a0e2c0 Bug 1410429: add missing env_ prefix when testing isAsmJS; r=me on a CLOSED TREE 2017-11-28 14:36:02 +01:00
Benjamin Bouvier
51f094641f Bug 1410429: Fix arm bustage for atomics; r=me
MozReview-Commit-ID: G4QXDVlQEDw

--HG--
extra : rebase_source : de1cadc09bb9aae6f070dd4d0bba3d66ff3af578
2017-11-28 14:00:49 +01:00
Benjamin Bouvier
d397e88daf Bug 1410429: Don't compute the effective address for null offsets; r=lth
MozReview-Commit-ID: F3MeFIa8GqM

--HG--
extra : rebase_source : 28590e339d13337ed51c5822f8559947cbbe4864
2017-11-28 12:20:08 +01:00
Benjamin Bouvier
ebfc5de25a Bug 1410429 - Odin: Fold base pointer into offsets whenever possible; r=luke
MozReview-Commit-ID: ERmQ9YKDzFH

--HG--
extra : rebase_source : 6ac4ea8263419168cb359d36e384b88dce859ad0
2017-10-19 16:52:09 +02:00
Jon Coppeard
42d4137dfd Bug 1419002 - Extend JS_BROKEN_GCC_ATTRIBUTE_WARNING up to GCC 8.0 r=Waldo 2017-11-28 10:47:49 +00:00
André Bargull
27c04d3eaa Bug 1422362: Remove unused parameters from various methods in js/src. r=tcampbell 2017-12-01 10:04:31 -08:00
David Teller
1981a6b902 Bug 1377007 - Tests: Parsing ECMA2-level tests with binjs;r=arai,jorendorff
MozReview-Commit-ID: 2DysquT2BdD

--HG--
extra : rebase_source : b49c071497fc79e5e3933b004ba946e4ef52dd1b
2017-09-19 20:50:21 +02:00
David Teller
ee82ed4a0f Bug 1377007 - JS shell bindings for binjs-ref;r=arai,jorendorff
MozReview-Commit-ID: 4kKbxpqXVSU

--HG--
extra : rebase_source : caabe344f20a1af6d092a50738e5f8931738e0ba
2017-09-18 16:41:00 +02:00
Nick Fitzgerald
f73f7eecaf Bug 1421056 - Changes to the js Rust crate needed for Starling. r=till
Changes include: whitelisting more things in `bindgen`, exposing the builtin
micro-task queue, and more conversion implementations.
2017-11-27 15:58:00 -05:00
Luke Wagner
a02f536d6d Bug 1419224 - Baldr: make signal-during-signal detection more robust (r=lth)
MozReview-Commit-ID: 27Qmnazdhht
2017-11-27 17:56:31 -06:00
André Bargull
218f82fd82 Bug 1319843 - Part 2: Validate current locale matches cached locale for Number.toLocaleString() and String.localeCompare(). r=gandalf 2017-11-24 05:09:49 -08:00
André Bargull
15df3c49ab Bug 1319843 - Part 1: Avoid string allocations when checking for default locales and time zones. r=gandalf 2017-11-24 05:09:22 -08:00
David Teller
b6e2e4872e Bug 1377007 - Implementing basic binjs-ref parser in SpiderMonkey;r=arai,jorendorff
This patch implements a Binary AST parser matching the latest
binjs-ref parser at this date. The subset of JS recognized matches
ES5, with an AST based on a slightly customized Babylon AST.

At this stage, the parser trusts its input, insofar as it does not
check directives or bindings. Followup patch will introduce checking
of these directives/bindings.

MozReview-Commit-ID: 1nt230rt02R

--HG--
extra : rebase_source : 1500f15c296342dcacd65d9ab12800bdea3a1258
2017-09-11 16:54:48 +02:00
Yoshi Huang
f0347242dc Bug 1328948 - add is(), as() to Cell. r=jonco 2017-11-27 14:52:21 +08:00
Paul Bone
630a7646a7 Bug 1420333 - Add a new non-incremental reason for buffered grey roots r=jonco
--HG--
extra : rebase_source : 7eb24710849c774c11e52b9a34ed9e5acc4e5bcd
2017-11-24 16:52:36 +11:00
Brindusan Cristian
64077545fa Merge inbound to mozilla-central r=merge a=merge 2017-11-25 23:18:37 +02:00
Emilio Cobos Álvarez
d431af965c Bug 1420301: Update clang-sys to work around a compiler bug. r=rillian
See: https://github.com/rust-lang/rust/issues/46239

MozReview-Commit-ID: EiHsSK0xJ5c
2017-11-25 19:51:48 +01:00
shindli
8581ced055 Backed out changeset 371624be317c (bug 1406095) for hazard failure H r=backout on a CLOSED TREE 2017-11-25 18:02:21 +02:00
Jon Coppeard
ee60cb5f24 Bug 1420412 - Move namespace related data to the module's namespace object r=anba 2017-11-24 15:52:22 +00:00
Jon Coppeard
613b2136ad Bug 1420412 - Use a single slot to store the module environment record r=anba 2017-11-24 15:52:22 +00:00
Jan de Mooij
f767109b78 Bug 1420400 - Optimize/self-host Reflect.get. r=anba
--HG--
extra : rebase_source : de92809515383d0b5afb5937381dbdff683909e9
2017-11-24 15:58:51 +01:00
Jeff Walden
3ed26e8aa6 Bug 1416337 - Limit the function expression-closure extension to apply only to function expressions that constitute an entire AssignmentExpression, so that the next token-get after the function expression closure can safely use Operand. r=arai
--HG--
extra : rebase_source : 0a544870a5dc24e2886c7a944dc22f186d2443a4
2017-11-23 12:52:41 -05:00
Jeff Walden
39e22f3104 Bug 1416337 - Fix bug 1298809's test to function correctly on beta/release. r=evilpie
--HG--
extra : rebase_source : a07772569667e0a08870f0b980559f6d2a8113e9
2017-11-23 12:52:33 -05:00
Jeff Walden
669e1b4c27 Bug 1416337 - Implement an ExpressionClosure::{Forbidden,Allowed} enum parameter in the parser, to distinguish places where our function-expression-closure syntax (normal function, just with an AssignmentExpression as body, not a braced StatementList) is permitted. (|function() foo| used to be supported anywhere PrimaryExpression was allowed, but ambiguity as to whether a binary operator is part of the function's body, or part of the AssignmentExpression the function-expression-closure was embedded in, led us to change this.) Don't actually use this parameter yet -- just pass it in the right places. r=arai
--HG--
extra : rebase_source : edf20eb3c660cf4d55895913a57f95427e94c474
2017-11-23 12:52:29 -05:00
Jeff Walden
8e7a4fd6d7 Bug 1416337 - Split FunctionSyntaxKind's Expression initializer into AssignmentExpression and PrimaryExpression flavors (even if for the moment only the latter is ever used or generated). r=arai
--HG--
extra : rebase_source : 27a4d4cdfb9d7b112ac9559f730b73d1e28f3d91
2017-11-23 12:52:24 -05:00
Gurzau Raul
21905d169e Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-11-24 00:38:13 +02:00
Tiberius Oros
da0a72a9d7 Merge inbound to mozilla-central r=merge a=merge 2017-11-24 00:28:29 +02:00
Andi-Bogdan Postelnicu
7d6a963fda Bug 1419637 - do not call memset on a non-trivial type. r=jandem
MozReview-Commit-ID: DSTv14zw8Tp

--HG--
extra : rebase_source : 1583062b44bc51761b47398c7dad6165f146777c
2017-11-23 10:57:10 +02:00
Ted Campbell
9f7b5bb1af Bug 1418841 - Fix DeletePolicy of WasmInstanceScope::Data. r=jonco
MozReview-Commit-ID: EgLb7uTE52G
2017-11-22 22:42:43 -05:00
Ted Campbell
20193a2f37 Bug 1397049 - Fix debugger 'this' in functions with let. r=jorendorff
When the debugger evaluates code in the debuggee frame, the parser may
fail to detect we are in a function context and will compute 'this'
incorrectly as a result. This patch fixes the environment chain
traversal around DebugEnvironmentProxy to more accurately determine the
binding type of 'this' within a function.

MozReview-Commit-ID: GzRDOJLK8fx
2017-11-22 21:30:53 -05:00
shindli
fb855aa7ba Backed out 16 changesets (bug 1402519) for conflicts during merge r=backout on a CLOSED TREE
Backed out changeset 07fcf163241a (bug 1402519)
Backed out changeset c6d2ad45d8e2 (bug 1402519)
Backed out changeset 8a3caca61294 (bug 1402519)
Backed out changeset 01425eae2c48 (bug 1402519)
Backed out changeset cf298d3815de (bug 1402519)
Backed out changeset e1964f4389cd (bug 1402519)
Backed out changeset f405337f3569 (bug 1402519)
Backed out changeset a76356fd3359 (bug 1402519)
Backed out changeset d3bb350d1c34 (bug 1402519)
Backed out changeset 9d3bfd9f932c (bug 1402519)
Backed out changeset e3dd6e5b073f (bug 1402519)
Backed out changeset e801b0c00134 (bug 1402519)
Backed out changeset 8a4139fa5dca (bug 1402519)
Backed out changeset 8d01c14ac1ca (bug 1402519)
Backed out changeset 24e0dcd01898 (bug 1402519)
Backed out changeset f8fdf450613f (bug 1402519)
2017-11-23 00:11:44 +02:00
Jan de Mooij
6e5bc11c14 Bug 1419785 - Avoid repeated calls to ParsePatternSyntax by using RegExpShared more. r=arai 2017-11-22 22:18:59 +01:00
Gabriele Svelto
84827e1a1e Bug 1402519 - Remove MOZ_CRASHREPORTER directives from js; r=nbp
MozReview-Commit-ID: DPa3IW4nwlM

--HG--
extra : rebase_source : c48dbb8144dfd501a193d8117a265d968ca2790b
2017-10-10 12:10:33 +02:00
Gabriele Svelto
5ff191810d Bug 1402519 - When the crash reporter code is disabled at configure time replace it with a dummy implementation; r=ted.mielczarek
MozReview-Commit-ID: F5QbaI1LlmZ

--HG--
extra : rebase_source : f05c929911d27dc1598bc040df54022cd90aa06a
2017-11-14 14:49:33 +01:00
Gabriele Svelto
151a3ecbc9 Bug 1402519 - Remove MOZ_CRASHREPORTER directives from js; r=nbp
MozReview-Commit-ID: DPa3IW4nwlM

--HG--
extra : rebase_source : e192284ff71410ac17ed388d8708e88013ad3378
2017-10-10 12:10:33 +02:00
Gabriele Svelto
014408d0f5 Bug 1402519 - When the crash reporter code is disabled at configure time replace it with a dummy implementation; r=ted.mielczarek
MozReview-Commit-ID: F5QbaI1LlmZ

--HG--
extra : rebase_source : 37aacdebc4307a21ff4f2ae27d1b031adc25737c
2017-11-14 14:49:33 +01:00
Dragan Mladjenovic
4a5b7d07f3 Bug 1419784 - [MIPS] Implement missing parts of Bug 1419497. r=jandem 2017-11-22 13:09:04 -05:00
Petr Sumbera
fb96ead697 Bug 1419321 - Linking on Solaris is missing -L${DIST}/bin. r=chmanchester 2017-11-21 01:13:01 -08:00
Dragan Mladjenovic
69e4deda92 Bug 1418990 - [MIPS32] Reset MacroAssembler::framePushed when doing stack realignment in JitRuntime::generateVMWrapper. r=jandem
--HG--
extra : source : 2b6b5af4a1f22a7862facee78d7b982ed2726b0f
2017-11-21 10:49:02 -05:00
Dragan Mladjenovic
ed9b200c0d Bug 1417595 - [MIPS] Implement missing parts of Bug 1417398. r=jandem
--HG--
extra : rebase_source : e8ef79983ac2264c598ad8401a2effee58d497cb
2017-11-22 12:08:14 -05:00
Lars T Hansen
bd16ff17c7 Bug 1391636 - Move a guard from TestingFunctions into Wasm proper. r=me
--HG--
extra : rebase_source : 3e1f82f709e1a33d51e1903a93730d57aacdcfe4
2017-11-22 10:29:24 +01:00
Lars T Hansen
e4d4db8b09 Bug 1412852 - Make the JS shell SAB mailbox transmit the length. r=luke
--HG--
extra : rebase_source : 94d597b370b4092ac0c4934fa4c9b320d42773e8
2017-11-08 16:35:45 +01:00
Lars T Hansen
91c6f34281 Bug 1412852 - Test cases for structured cloning of wasm memory objects. r=luke
--HG--
extra : rebase_source : c5ca6f534cc953d4b6750dce9897fbe302f0b97e
2017-10-31 16:36:05 +01:00
Lars T Hansen
3f9a90d355 Bug 1412852 - Structured clone WebAssembly.Memory objects. r=sfink
--HG--
extra : rebase_source : 0f96caf022c5d0ec51e5c9710468ed8015acf4aa
2017-10-31 13:38:28 +01:00
Lars T Hansen
770a864e0b Bug 1377576 - Rename from AsmJSAtomic etc to WasmAtomic etc, rs=bbouvier
--HG--
extra : rebase_source : 03b9d81335549ca5589852c69b7bb3d2a14b828b
2017-10-25 10:36:09 +02:00
David Teller
6cbd331d9e Bug 1377007 - GC for binjs-ref parser;r=sfink
MozReview-Commit-ID: EjZZ1ofm52t

--HG--
extra : rebase_source : f45fc9709f0c2d18baccdc27cba3476b7a610b61
2017-09-05 14:51:30 +02:00
David Teller
a848a751c3 Bug 1377007 - Implementation of the Token Reader dedicated to testing;r=arai,jorendorff
This patch ports to SpiderMonkey the tokenizer currently implemented
in the external binjs-ref tool.

While this tokenizer will clearly not be the tokenizer eventually
shipped to end-users (whether in Firefox or in binjs-ref), the plan is
to keep it both in binjs-ref and in SpiderMonkey (Nightly only) as a
tool for helping test the higher layers of Binjs.

MozReview-Commit-ID: 1i6XnVIf8p5

--HG--
extra : rebase_source : cad7016695ca6a5f35c3a9911264fa4fc470b949
2017-09-13 15:30:19 +02:00
David Teller
9e9a48523b Bug 1377007 - Adding a SpiderMonkey compilation flag for BinAST;r=ted
MozReview-Commit-ID: qJ6SY8YlQ2

--HG--
extra : rebase_source : 7aedde8309069cdaa2f9626b2c6a118626a3ed1b
2017-10-18 10:49:47 +01:00
Ting-Yu Lin
80fee1a237 Bug 1418224 Part 3 - Add shape-outside: <image> support to style system. r=heycam
Some Gecko style system files are modified to prevent assertions and
crashing, and to keep test failures on stylo disabled builds to minimum.

MozReview-Commit-ID: GuxAeCTz0xx

--HG--
extra : rebase_source : 2342085d13a50535836be46d75a731641d0fc49e
2017-11-17 16:34:37 +08:00
Narcis Beleuzu
c396d718bd Merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-12-01 00:46:03 +02:00
Andrew McCreight
874c474f4b Bug 1421104 - De-COM nsIXPConnect::DebugPrintJSStack. r=mrbkap
This is only called in a single place, and does not use any fields of
nsXPConnect, so remove it from the XPIDL interface and inline the
method to the one caller. It also fixes an error message to no longer
refer to a non-existant interface. Otherwise, the behavior should be
unchanged.

MozReview-Commit-ID: LwrosnHj2ip

--HG--
extra : rebase_source : 69c1ef142ee309ece75d1d2cc083417abf6f827b
2017-11-29 13:11:07 -08:00
Masatoshi Kimura
f84b7d9880 Bug 1420427 - Stop using native charset in URLPreloader. r=kmag
MozReview-Commit-ID: 5CidUcXLCjP

--HG--
extra : rebase_source : 1710f3cb72f8061d9413b71058a76021027969a0
2017-11-28 00:21:00 +09:00
Lars T Hansen
5ba214f6ce Bug 1377576 - Test cases for wasm atomics. r=bbouvier
--HG--
extra : rebase_source : 5e9d5a6e483168ce43eef5a829f9645e76400241
extra : source : bfb316f2fcbdfc2d3fe60b26edf925ef78844610
2017-07-05 13:03:31 -07:00
Lars T Hansen
5763314f03 Bug 1377576 - Ion support for wasm atomics. r=bbouvier
--HG--
extra : rebase_source : ff63a3d9dcc25bde8a2ed4b851ff55f81ce28483
2017-07-03 17:20:01 -07:00
Lars T Hansen
781ac30170 Bug 1377576 - Baseline support for wasm atomics. r=bbouvier
--HG--
extra : rebase_source : fa977896399159ceb9fa67a79fd09c5c05c890ce
2017-07-05 14:00:34 -07:00
Lars T Hansen
3f2dc16e8c Bug 1377576 - Preparatory refactoring and extensions for wasm atomics. r=bbouvier
--HG--
extra : rebase_source : df6cc42f7eb87d37910bc99915186b9041769c5d
2017-07-05 12:22:13 -07:00
Lars T Hansen
ed9daf9bed Bug 1377576 - Assembler/MacroAssembler support for wasm atomics. r=sunfish
--HG--
extra : rebase_source : caabe3a694bbf4b185827e53b4e7f0fc375f0627
2017-09-01 16:12:06 +02:00
Lars T Hansen
c4733b7699 Bug 1377576 - Test cases for thread ops: verification, text-to-binary, binary-to-text. r=sunfish
--HG--
extra : rebase_source : e94bdaf980ee56e386e8bd80c60503e25b72bcd2
2017-07-02 12:34:06 -07:00
Lars T Hansen
89c0c36edb Bug 1377576 - Define binary-to-text machinery. r=sunfish
--HG--
extra : rebase_source : f079f8226eb85edb5dc38799d56518e279302abe
2017-07-02 15:17:04 -07:00
Lars T Hansen
1d113a7273 Bug 1377576 - Define text-to-binary machinery. r=sunfish
--HG--
extra : rebase_source : 118443ce0658cd9a38b830c8eb75797ecc300b8d
2017-07-02 10:11:05 -07:00
Lars T Hansen
c936ef670f Bug 1377576 - Define atomic ops, add to verifier and test cases, stub out in compilers. r=sunfish
--HG--
extra : rebase_source : 57048fb9cadd3d5af55cc1acf35bb1010ba5cde4
2017-07-01 11:42:33 -07:00
Lars T Hansen
fdb9af32b7 Bug 1389464 - Test case for wasm atomics gating. rs=luke
--HG--
extra : rebase_source : b89db9ff61d409e6fa61333072b9126f809038d8
2017-11-21 10:20:39 +01:00
Lars T Hansen
294fc71f14 Bug 1389464 - Wasm atomics gating on shared memory enabled. rs=luke
--HG--
extra : rebase_source : 9d25de4caddb76d50b009c92b26ac73e726493f8
2017-11-21 09:35:43 +01:00
Lars T Hansen
8231a18136 Bug 1389464 - Test cases for wasm shared memory. r=luke
--HG--
extra : rebase_source : f56daf7f6faf67f7e8ba554c4c604710005aa1e6
2017-10-30 13:19:37 +01:00
Lars T Hansen
8c0ce19d4c Bug 1389464 - Implement shared memory for WebAssembly. r=luke
--HG--
extra : rebase_source : 769c681c38b563368d2829960c7b7c2b1abd9f76
2017-09-22 10:49:19 +02:00
Lars T Hansen
299fba9d2c Bug 1389464 - Parse attributes for shared memory. r=luke
--HG--
extra : rebase_source : 0d90ac1c0d39063e2fdced24a2fd2682a661351f
2017-07-05 13:43:31 -07:00
Lars T Hansen
247ae88e1b Bug 1389464 - Preparatory cleanup. r=luke
--HG--
extra : rebase_source : 2bdea9f5cd04af5d1c5be645aad6586ba85c49e9
2017-09-01 14:03:36 +02:00
Lars T Hansen
8f157de25d Bug 1389464 - Share memory mapping code between SharedArrayRawBuffer and WasmArrayRawBuffer. r=luke
--HG--
extra : rebase_source : 160a7d3ea16d47bc266748001edf16af2da08ab2
2017-10-26 13:32:15 +02:00
Jan de Mooij
cbb37dbb2b Bug 1417399 - Remove unnecessary checks for lazy link stub in LazyLinkTopActivation. r=nbp
--HG--
extra : rebase_source : 1be7cb018b682833c2e182fa1c62d4e18769e283
2017-11-22 13:06:02 +01:00
Jan de Mooij
038ba8c7c4 Bug 1419359 part 2 - Handle lazy functions better in TryAttachCallStub. r=bbouvier
--HG--
extra : rebase_source : 2ef20f581101b2fdfde2b1f63f25fc78db611e24
2017-11-22 13:04:51 +01:00
Jan de Mooij
3778149268 Bug 1419359 part 1 - Get rid of frame iterator in LazyLinkTopActivation. r=bbouvier
--HG--
extra : rebase_source : 12f52628e2bb424bbdac7afa63de6e56f29fd583
2017-11-22 13:04:17 +01:00
Jan de Mooij
07aeac9fbf Bug 1419497 part 2 - Optimize pre-barriers in jit code by handling more cases without calling into C++. r=jonco 2017-11-22 09:40:00 +01:00