Commit Graph

61744 Commits

Author SHA1 Message Date
Ryan VanderMeulen
3078aab482 Merge m-c to autoland. a=merge 2017-09-14 10:51:57 -04:00
Ted Campbell
9b5f5a54bb Bug 1398601 - Fix wunused-variable errors when MOZ_DIAGNOSTIC_ASSERT isn't available. a=RyanVM
MozReview-Commit-ID: 1kvKcQBqog9
2017-09-14 06:35:00 -04:00
sourav3
33964bd527 Bug 1397856 replacing Sprinter with js::GenericPrinter r=nbp,Yoric
MozReview-Commit-ID: FQ89BijH5VV
***
Bug 1397856 removing empty line

MozReview-Commit-ID: EwJSL3K6ree

--HG--
extra : rebase_source : 5a99b5a0878493a8c0182ce2d4b7b24037d358fa
2017-09-14 02:17:02 +08:00
Wes Kocher
ff68b95b87 Merge inbound to central, a=merge
MozReview-Commit-ID: ClVRh99eIUo
2017-09-14 00:03:28 -07:00
Sebastian Hengst
123fb86836 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-14 00:15:34 +02:00
Sebastian Hengst
006a58c35d merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 2iVDKexRjxu
2017-09-13 23:58:43 +02:00
Sebastian Hengst
7dd2b068b5 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-13 13:35:21 +02:00
Sebastian Hengst
e4a2f44531 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9SALJlvWgoZ
2017-09-13 13:32:44 +02:00
Nicolas B. Pierron
4c0e094907 Bug 1398105 - CallInfo::pushFormals is now responsible for allocating space fun.apply arguments. r=jandem 2017-09-13 09:37:19 +00:00
André Bargull
4a4936b05a Bug 1398751 - Part 2: Add fast path to convert int32 value to a code point. r=evilpie 2017-09-12 21:22:29 +02:00
André Bargull
43d9783cff Bug 1398751 - Part 1: Add fast-path for typed arrays in js::GetElements to speed-up Function.apply with typed arrays. r=evilpie 2017-09-11 22:06:39 +02:00
Florian Quèze
c3c302fe33 Bug 1398198 - browser_startup.js should show the stack when a JS file was loaded earlier than expected, r=felipe,mccr8. 2017-09-13 21:19:53 +02:00
David Teller
44b7cab271 Bug 1397717 - Using GenericPrinter for DEBUG-only C++ dump() APIs;r=nbp
We have a host of DEBUG-only dump()-style APIs that output either to
stderr or to a FILE*. Unfortunately, this means that we cannot use
these dumps e.g. for unit tests. This patch ports most of the dump()
APIs to use GenericPrinter, which is more flexible.

Some parts of the code have not been ported, in particular
TypeInference, which still uses stderr.

MozReview-Commit-ID: A5WGOPyIPTa

--HG--
extra : rebase_source : 2c092256569d7f0d5656acea9c6d7dbaf32667be
2017-09-07 15:22:38 +02:00
Phil Ringnalda
606b8426bb Backed out 5 changesets (bug 1398601) for unexpected crashtest assertions
Backed out changeset b728872f4d9a (bug 1398601)
Backed out changeset 05957a92b1a5 (bug 1398601)
Backed out changeset f5c26c3407c0 (bug 1398601)
Backed out changeset eddc38b0afd0 (bug 1398601)
Backed out changeset 776a65d43a5e (bug 1398601)

MozReview-Commit-ID: 9lfUtdlZy7F
2017-09-12 20:11:49 -07:00
Ted Campbell
6e873f3700 Bug 1398601 - Don't allow NSVO in js::CreateObjectsForEnvironmentChain r=jorendorff
Seeing an NSVO in CreateObjectsForEnvironmentChain indicates the shared
global namespace is about to be polluted, so fix those bugs and turn
this to a diagnostic.

MozReview-Commit-ID: 7OUef76geJL

--HG--
extra : rebase_source : 07d826101a498c54faab5c99dc475818cad58c4b
2017-09-09 20:37:18 -04:00
Ted Campbell
df5f95b7e2 Bug 1398601 - Add testcase for loading subscripts within a JSM r=kmag
MozReview-Commit-ID: I09eoUnQYCG

--HG--
extra : rebase_source : e9f9efb194e2e6e9b18820e3535eeef47234ea4c
2017-09-10 14:57:04 -04:00
Ted Campbell
7845fe7c7a Bug 1398601 - Fix subscript loader when using JSM global sharing r=kmag
When using the subscript loader with JSM global sharing, it was possible
that subscript would pollute the global of all JSMs in the sharing.

MozReview-Commit-ID: 1ah5JUAZwBA

--HG--
extra : rebase_source : 202904e30b582c788ec440c406607ba98b8836e6
2017-09-10 14:23:32 -04:00
Ted Campbell
eb7051b3b5 Bug 1398601 - Add global/non-syntactic prefix to subscript loader cache r=kmag
We want to be able to store scripts compiled with or without
non-syntactic support in cache when we toggle JSM global sharing. In
current code this script is cloned on execution, but with JSM global
sharing we have would hit assertions.

MozReview-Commit-ID: 2pVTTxLpx6S

--HG--
extra : rebase_source : 5913a43a2dfddf74187f08ab9c53babe377bd706
2017-09-12 18:05:08 -04:00
Ted Campbell
1a1154fa13 Bug 1398601 - Support target objects in js::ExecuteInJSMEnvironment r=jorendorff
This allows js::ExecuteInJSMEnvironment to take a target object argument
as used by the subscript loader. This adds WithEnvironments with a
corresponding lexical on top of the ordinary NonSyntacticVariablesObject
environment chain.

MozReview-Commit-ID: JhHEfV92Zpv

--HG--
extra : rebase_source : d1ef9564d30a25fd9e1cf1ca7e95bf40c780dcdf
2017-09-10 14:03:42 -04:00
Sebastian Hengst
45bab258b7 merge mozilla-central to autoland. r=merge a=merge 2017-09-14 00:11:28 +02:00
Boris Chiou
07f634028f Bug 1392161 - Part 1: Update Servo binding functions for CSSPixelLength. r=emilio
MozReview-Commit-ID: 2x4Y9py4Pfv

--HG--
extra : rebase_source : 347e46b6a92794e8d12273ed963e54dbb2da1c8e
2017-09-13 14:27:25 +08:00
Sebastian Hengst
be553422dd merge mozilla-central to autoland. r=merge a=merge 2017-09-13 11:30:55 +02:00
Ted Campbell
da1faf0918 Bug 1398601 - Don't allow NSVO in js::CreateObjectsForEnvironmentChain r=jorendorff
Seeing an NSVO in CreateObjectsForEnvironmentChain indicates the shared
global namespace is about to be polluted, so fix those bugs and turn
this to a diagnostic.

MozReview-Commit-ID: 7OUef76geJL

--HG--
extra : rebase_source : b1cbf5d87622668c7a8ffaa413cada06a16f66fd
2017-09-09 20:37:18 -04:00
Ted Campbell
21a47b7f15 Bug 1398601 - Add testcase for loading subscripts within a JSM r=kmag
MozReview-Commit-ID: I09eoUnQYCG

--HG--
extra : rebase_source : f423ba10de2fcd6034e6ee98e1dc0d99731ea882
2017-09-10 14:57:04 -04:00
Ted Campbell
8b2e8b3fe5 Bug 1398601 - Fix subscript loader when using JSM global sharing r=kmag
When using the subscript loader with JSM global sharing, it was possible
that subscript would pollute the global of all JSMs in the sharing.

MozReview-Commit-ID: 1ah5JUAZwBA

--HG--
extra : rebase_source : 45a3974cb80ede0cb3beea92f895679c5ea7aa4b
2017-09-10 14:23:32 -04:00
Ted Campbell
0388c3314f Bug 1398601 - Add global/non-syntactic prefix to subscript loader cache r=kmag
We want to be able to store scripts compiled with or without
non-syntactic support in cache when we toggle JSM global sharing. In
current code this script is cloned on execution, but with JSM global
sharing we have would hit assertions.

MozReview-Commit-ID: 2pVTTxLpx6S

--HG--
extra : rebase_source : b123de20f216161c408bba75c8c0fd81be0508df
2017-09-12 18:05:08 -04:00
Ted Campbell
0260bcbae4 Bug 1398601 - Support target objects in js::ExecuteInJSMEnvironment r=jorendorff
This allows js::ExecuteInJSMEnvironment to take a target object argument
as used by the subscript loader. This adds WithEnvironments with a
corresponding lexical on top of the ordinary NonSyntacticVariablesObject
environment chain.

MozReview-Commit-ID: JhHEfV92Zpv

--HG--
extra : rebase_source : d1ef9564d30a25fd9e1cf1ca7e95bf40c780dcdf
2017-09-10 14:03:42 -04:00
Benjamin Bouvier
5ece948831 Bug 1399239 - Remove unused srcBodyStart. r=luke
MozReview-Commit-ID: 6p4OIQz7dPb
2017-06-22 18:44:28 +02:00
Benjamin Bouvier
ca6eb53ca6 Bug 1370886 - Test for source script offset behavior in asm.js. r=luke 2017-09-12 22:11:24 +02:00
André Bargull
d9f89f0c1a Bug 1398226 - Remove the indirection through NewDependentString when creating inline-strings in StaticStrings::getUnitStringForElement. r=jandem
--HG--
extra : rebase_source : df0913779dcd2a91cfc57d814875e15fa2416edc
2017-09-08 19:13:36 +02:00
André Bargull
ec9b149486 Bug 1393089 - Part 7: Don't force source buffer allocation when copying TypedArrays. r=jandem 2017-09-09 13:11:58 +02:00
André Bargull
98ca75f7ee Bug 1393089 - Part 6: Reduce code duplications by sync'ing TypedArray constructor to latest spec. r=jandem 2017-09-09 13:07:39 +02:00
André Bargull
4e65110524 Bug 1393089 - Part 5: Remove no longer used variable and avoid one unnecessary rooting. r=jandem 2017-08-28 16:26:19 +02:00
André Bargull
5b3e719951 Bug 1393089 - Part 4: Remove unused context arguments from ElementSpecific and initTypedArraySlots. r=jandem 2017-08-23 18:14:34 +02:00
André Bargull
d0d8a2d66f Bug 1393089 - Part 3: Directly assign result to variable instead of going through another temp variable. r=jandem 2017-08-23 18:10:47 +02:00
André Bargull
8e6b238125 Bug 1393089 - Part 2: Avoid "prototype" lookup for ArrayBuffer when copying typed arrays. r=jandem 2017-08-25 17:00:39 +02:00
André Bargull
cd100c7978 Bug 1393089 - Part 1: Change AllocateArrayBuffer constructor argument to HandleObject. r=jandem 2017-08-23 17:58:10 +02:00
André Bargull
c1a618c582 Bug 1398273 - Rename LegacyIterator to PropertyIterator in jsiter. r=luke
And remove more unused legacy iterator stuff.

--HG--
extra : rebase_source : dd7bdee142dcbead8c0b630b39800723879c6e76
2017-09-08 22:53:35 +02:00
Marcin Juszkiewicz
81532b11c7 Bug 1357593 - Skip JS tests on all 64-bit archs. r=sfink
Tests that are skipped on x86_64 should be skipped on all 64-bit
architectures.

Taken from Fedora:
http://pkgs.fedoraproject.org/cgit/rpms/mozjs38.git/tree/fix-64bit-archs.patch

--HG--
extra : rebase_source : f30355a0671709b42fe84485895d9d82db68b67e
2017-07-09 21:05:00 -04:00
Miran.Karic
16bfa2b23b Bug 1399060 - MIPS[64]: Fix simulator build failures. r=bbouvier
MIPS simulator build started failing recently. Also a recent change caused build failure in MIPS64. This fixes both problems.
2017-09-12 03:37:00 -04:00
Jan de Mooij
620a246cc7 Bug 1397071 - Call InitElemOperation in IonSetPropertyIC::update to support more cases. r=anba 2017-09-12 16:55:32 +02:00
Jan de Mooij
283dac3723 Bug 1394835 part 5 - Split NativeDefineProperty in separate accessor vs data functions. r=evilpie 2017-09-12 16:41:12 +02:00
Nicolas B. Pierron
cde6bc62c4 Bug 1398507 - Use a fallible allocator for LoopAliasInfo allocations. r=tcampbell 2017-09-12 13:32:59 +00:00
Kerem Kat
04ea64f4c8 Bug 1199710: ExitFrameTokenValues enum is refactored into enum class ExitFrameToken. r=nbp 2017-09-12 13:05:10 +00:00
Jon Coppeard
6cb248b546 Bug 1368420 - Allocate Map and Set objects in the nursery r=jandem 2017-09-12 11:45:48 +01:00
Jon Coppeard
7e256267c4 Bug 1368420 - Allocate Map and Set iterators in the nursery r=jandem 2017-09-12 11:45:48 +01:00
Sebastian Hengst
ecf716b8bb merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: CmMBcpJapLy
2017-09-12 11:35:15 +02:00
Mike Hommey
8cdad036f1 Bug 1398965 - Fold memory/mozjemalloc into memory/build. r=njn
The files relevant to the memory allocator are currently spread between
memory/mozjemalloc and memory/build, and the distinction was
historically from sharing some Mozilla-specific things between
mozjemalloc and jemalloc3. That distinction is not useful anymore, so
we fold everything together.

As we will likely rename the allocator at some point in the future, it
is preferable to move away from the mozjemalloc directory rather than in
its direction.

--HG--
rename : memory/mozjemalloc/Makefile.in => memory/build/Makefile.in
rename : memory/mozjemalloc/mozjemalloc.cpp => memory/build/mozjemalloc.cpp
rename : memory/mozjemalloc/mozjemalloc.h => memory/build/mozjemalloc.h
rename : memory/mozjemalloc/mozjemalloc_types.h => memory/build/mozjemalloc_types.h
rename : memory/mozjemalloc/rb.h => memory/build/rb.h
2017-09-12 13:14:35 +09:00
Phil Ringnalda
7f896e1985 Backed out 4 changesets (bug 1398601) for Windows Marionette crashes @ ExecuteInExtensibleLexicalEnvironment
Backed out changeset 7aac2595bc17 (bug 1398601)
Backed out changeset 7a4bb5a1848a (bug 1398601)
Backed out changeset dd4af7998505 (bug 1398601)
Backed out changeset e9816be61b49 (bug 1398601)

MozReview-Commit-ID: LLJ99dkRQEg
2017-09-11 20:20:16 -07:00
Ted Campbell
a79c4a9eb3 Bug 1398601 - Don't allow NSVO in js::CreateObjectsForEnvironmentChain r=jorendorff
Seeing an NSVO in CreateObjectsForEnvironmentChain indicates the shared
global namespace is about to be polluted, so fix those bugs and turn
this to a diagnostic.

MozReview-Commit-ID: 7OUef76geJL

--HG--
extra : rebase_source : 487ab155a11e41d01b7195ac974b46e3bd2199b6
2017-09-09 20:37:18 -04:00