Tooru Fujisawa
ef88cd8c25
Bug 1535206 - Part 1: Remove BinASTTokenReaderMultipart::readMaybePropertyKey. r=Yoric
...
Depends on D23440
Differential Revision: https://phabricator.services.mozilla.com/D23441
--HG--
extra : moz-landing-system : lando
2019-03-14 07:50:00 +00:00
Tooru Fujisawa
ded14c2a96
Bug 1535206 - Part 0: Fix parameter name. r=Yoric
...
Depends on D23439
Differential Revision: https://phabricator.services.mozilla.com/D23440
--HG--
extra : moz-landing-system : lando
2019-03-14 07:16:19 +00:00
Tooru Fujisawa
a6809018eb
Bug 1535175 - Throw error for empty string in readIdentifierName. r=Yoric
...
Differential Revision: https://phabricator.services.mozilla.com/D23439
--HG--
extra : moz-landing-system : lando
2019-03-14 06:48:43 +00:00
David Major
e5773183d6
Bug 1528074 - Remove MSVC warning flags that clang-cl doesn't understand r=chmanchester
...
Per the previous patch, clang-cl only understands five MSVC-style warning flags: 7219c7e9af/clang/include/clang/Driver/CLCompatOptions.td (L188-L197)
This patch removes the flags that clang-cl doesn't understand.
Differential Revision: https://phabricator.services.mozilla.com/D22588
--HG--
extra : moz-landing-system : lando
2019-03-13 20:19:08 +00:00
Benjamin Bouvier
d8d0687ce1
Bug 1534958: Fix build when BinAST is disabled; r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D23301
--HG--
extra : moz-landing-system : lando
2019-03-13 11:53:20 +00:00
Jan de Mooij
ca10fb8ade
Bug 1530364 - Ensure compartment always has a live global when creating a new global in it. r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D23287
--HG--
extra : moz-landing-system : lando
2019-03-13 08:24:36 +00:00
Tooru Fujisawa
7ed495a3ce
Bug 1505343 - Part 3: Rename Bin{Kind,Field,Variant} to BinAST{Kind,Field,Variant}. r=Yoric
...
Differential Revision: https://phabricator.services.mozilla.com/D23099
--HG--
extra : moz-landing-system : lando
2019-03-13 04:30:22 +00:00
Tooru Fujisawa
397f3d8230
Bug 1505343 - Part 2: Rename BinToken* to BinASTToken*. r=Yoric
...
Differential Revision: https://phabricator.services.mozilla.com/D23098
--HG--
rename : js/src/frontend/BinToken.cpp => js/src/frontend/BinASTToken.cpp
rename : js/src/frontend/BinToken.h => js/src/frontend/BinASTToken.h
rename : js/src/frontend/BinTokenReaderBase.cpp => js/src/frontend/BinASTTokenReaderBase.cpp
rename : js/src/frontend/BinTokenReaderBase.h => js/src/frontend/BinASTTokenReaderBase.h
rename : js/src/frontend/BinTokenReaderMultipart.cpp => js/src/frontend/BinASTTokenReaderMultipart.cpp
rename : js/src/frontend/BinTokenReaderMultipart.h => js/src/frontend/BinASTTokenReaderMultipart.h
extra : moz-landing-system : lando
2019-03-13 04:30:04 +00:00
Tooru Fujisawa
df37d833d7
Bug 1505343 - Part 1: Rename binsource => binast. r=Yoric
...
Differential Revision: https://phabricator.services.mozilla.com/D23097
--HG--
rename : js/src/frontend/BinSource-macros.h => js/src/frontend/BinAST-macros.h
rename : js/src/frontend/BinSource.webidl_ => js/src/frontend/BinAST.webidl_
rename : js/src/frontend/BinSource.yaml => js/src/frontend/BinAST.yaml
rename : js/src/frontend/BinSourceRuntimeSupport.cpp => js/src/frontend/BinASTRuntimeSupport.cpp
rename : js/src/frontend/BinSourceRuntimeSupport.h => js/src/frontend/BinASTRuntimeSupport.h
rename : js/src/frontend/binsource/Cargo.toml => js/src/frontend/binast/Cargo.toml
rename : js/src/frontend/binsource/README.md => js/src/frontend/binast/README.md
rename : js/src/frontend/binsource/build.sh => js/src/frontend/binast/build.sh
rename : js/src/frontend/binsource/moz.build => js/src/frontend/binast/moz.build
rename : js/src/frontend/binsource/src/main.rs => js/src/frontend/binast/src/main.rs
rename : js/src/frontend/binsource/src/refgraph.rs => js/src/frontend/binast/src/refgraph.rs
extra : moz-landing-system : lando
2019-03-13 04:29:44 +00:00
Noemi Erli
d2f8c37768
Backed out 3 changesets (bug 1505343) for build bustages in testBinASTReader.cpp CLOSED TREE
...
Backed out changeset 4ac13d1f0d7c (bug 1505343)
Backed out changeset b2456f6d11c4 (bug 1505343)
Backed out changeset c1e2b7779d6a (bug 1505343)
--HG--
rename : js/src/frontend/BinAST-macros.h => js/src/frontend/BinSource-macros.h
rename : js/src/frontend/BinAST.webidl_ => js/src/frontend/BinSource.webidl_
rename : js/src/frontend/BinAST.yaml => js/src/frontend/BinSource.yaml
rename : js/src/frontend/BinASTRuntimeSupport.cpp => js/src/frontend/BinSourceRuntimeSupport.cpp
rename : js/src/frontend/BinASTRuntimeSupport.h => js/src/frontend/BinSourceRuntimeSupport.h
rename : js/src/frontend/BinASTToken.cpp => js/src/frontend/BinToken.cpp
rename : js/src/frontend/BinASTToken.h => js/src/frontend/BinToken.h
rename : js/src/frontend/BinASTTokenReaderBase.cpp => js/src/frontend/BinTokenReaderBase.cpp
rename : js/src/frontend/BinASTTokenReaderBase.h => js/src/frontend/BinTokenReaderBase.h
rename : js/src/frontend/BinASTTokenReaderMultipart.cpp => js/src/frontend/BinTokenReaderMultipart.cpp
rename : js/src/frontend/BinASTTokenReaderMultipart.h => js/src/frontend/BinTokenReaderMultipart.h
rename : js/src/frontend/binast/Cargo.toml => js/src/frontend/binsource/Cargo.toml
rename : js/src/frontend/binast/README.md => js/src/frontend/binsource/README.md
rename : js/src/frontend/binast/build.sh => js/src/frontend/binsource/build.sh
rename : js/src/frontend/binast/moz.build => js/src/frontend/binsource/moz.build
rename : js/src/frontend/binast/src/main.rs => js/src/frontend/binsource/src/main.rs
rename : js/src/frontend/binast/src/refgraph.rs => js/src/frontend/binsource/src/refgraph.rs
2019-03-13 05:26:34 +02:00
Tooru Fujisawa
67e8bf685b
Bug 1505343 - Part 3: Rename Bin{Kind,Field,Variant} to BinAST{Kind,Field,Variant}. r=Yoric
...
Differential Revision: https://phabricator.services.mozilla.com/D23099
--HG--
extra : moz-landing-system : lando
2019-03-13 02:46:51 +00:00
Tooru Fujisawa
bdf9e9a1bf
Bug 1505343 - Part 2: Rename BinToken* to BinASTToken*. r=Yoric
...
Differential Revision: https://phabricator.services.mozilla.com/D23098
--HG--
rename : js/src/frontend/BinToken.cpp => js/src/frontend/BinASTToken.cpp
rename : js/src/frontend/BinToken.h => js/src/frontend/BinASTToken.h
rename : js/src/frontend/BinTokenReaderBase.cpp => js/src/frontend/BinASTTokenReaderBase.cpp
rename : js/src/frontend/BinTokenReaderBase.h => js/src/frontend/BinASTTokenReaderBase.h
rename : js/src/frontend/BinTokenReaderMultipart.cpp => js/src/frontend/BinASTTokenReaderMultipart.cpp
rename : js/src/frontend/BinTokenReaderMultipart.h => js/src/frontend/BinASTTokenReaderMultipart.h
extra : moz-landing-system : lando
2019-03-13 02:46:32 +00:00
Tooru Fujisawa
9b128e23cc
Bug 1505343 - Part 1: Rename binsource => binast. r=Yoric
...
Differential Revision: https://phabricator.services.mozilla.com/D23097
--HG--
rename : js/src/frontend/BinSource-macros.h => js/src/frontend/BinAST-macros.h
rename : js/src/frontend/BinSource.webidl_ => js/src/frontend/BinAST.webidl_
rename : js/src/frontend/BinSource.yaml => js/src/frontend/BinAST.yaml
rename : js/src/frontend/BinSourceRuntimeSupport.cpp => js/src/frontend/BinASTRuntimeSupport.cpp
rename : js/src/frontend/BinSourceRuntimeSupport.h => js/src/frontend/BinASTRuntimeSupport.h
rename : js/src/frontend/binsource/Cargo.toml => js/src/frontend/binast/Cargo.toml
rename : js/src/frontend/binsource/README.md => js/src/frontend/binast/README.md
rename : js/src/frontend/binsource/build.sh => js/src/frontend/binast/build.sh
rename : js/src/frontend/binsource/moz.build => js/src/frontend/binast/moz.build
rename : js/src/frontend/binsource/src/main.rs => js/src/frontend/binast/src/main.rs
rename : js/src/frontend/binsource/src/refgraph.rs => js/src/frontend/binast/src/refgraph.rs
extra : moz-landing-system : lando
2019-03-13 02:46:12 +00:00
Ryan VanderMeulen
22b25e218e
Merge m-c to autoland. a=merge
2019-03-12 20:23:34 -04:00
Ryan VanderMeulen
b81d22538d
Backed out changeset a14fcb229ddd (bug 1495072) for causing bug 1534806.
...
--HG--
extra : rebase_source : eec6a7f6dd368c0cc405a361d9267b2daaec4f37
2019-03-12 20:20:02 -04:00
Mike Hommey
7b5468921f
Bug 1513605 - Add PIC flags when running the clock_gettime(CLOCK_MONOTONIC) check. r=dmajor
...
Differential Revision: https://phabricator.services.mozilla.com/D23091
--HG--
extra : moz-landing-system : lando
2019-03-12 14:14:43 +00:00
Noemi Erli
0e4b64877d
Backed out 2 changesets (bug 1534392) for failing in ecma262-issue-1461.js CLOSED TREE
...
Backed out changeset 4c52efb1430f (bug 1534392)
Backed out changeset 47e570e51385 (bug 1534392)
2019-03-13 00:43:31 +02:00
Jason Orendorff
f2b312835c
Bug 1534392 - Part 2: Fix error handling in %AsyncFromSyncIteratorPrototype% methods. r=anba
...
This makes %AsyncFromSyncIteratorPrototype%.next/return/throw return a rejected
promise, not throw, when PromiseResolve throws, following the usual convention
for methods that return promises. This follows proposed spec change
<https://github.com/tc39/ecma262/pull/1470 >, which I expect will land with
little controversy.
Differential Revision: https://phabricator.services.mozilla.com/D23030
--HG--
extra : moz-landing-system : lando
2019-03-12 20:49:29 +00:00
Jason Orendorff
e4992d6a26
Bug 1534392 - Part 1: Update step numbers in comments to match current draft spec. r=anba
...
The new steps are official since <https://github.com/tc39/ecma262/pull/1250 >
landed. (Some of these step numbers change again in the next commit.)
Differential Revision: https://phabricator.services.mozilla.com/D23029
--HG--
extra : moz-landing-system : lando
2019-03-12 20:48:57 +00:00
Jason Orendorff
59ad2584d8
Bug 1528792 - Remove redundant code checking for Symbol values in js::ToNumberSlow. r=tcampbell
...
Differential Revision: https://phabricator.services.mozilla.com/D23152
--HG--
extra : moz-landing-system : lando
2019-03-12 15:17:09 +00:00
Jason Orendorff
8d46729792
Bug 1529758 - Add a pref for fields. r=tcampbell
...
This creates a shell command-line option, `--enable-experimental-fields`, and a
Gecko pref, `javascript.options.experimental.fields`.
Both are off by default everywhere, for now.
Differential Revision: https://phabricator.services.mozilla.com/D22045
--HG--
extra : moz-landing-system : lando
2019-03-12 19:14:57 +00:00
Ciure Andrei
0d9d47364c
Backed out changeset 2b5f40fc403b (bug 1529758) for FullParseHandler build bustages CLOSED TREE
2019-03-12 19:28:03 +02:00
Jan de Mooij
0f01965200
Bug 1530937 part 18 - Rename DoNew{Array,Object} to DoNew{Array,Object}Fallback and remove unused NewObject_WithTemplate IC kind. r=tcampbell
...
Depends on D23137
Differential Revision: https://phabricator.services.mozilla.com/D23142
--HG--
extra : moz-landing-system : lando
2019-03-12 14:19:30 +00:00
Jan de Mooij
e0b761d01f
Bug 1530937 part 17 - Remove now unused VMFunction code. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D23137
--HG--
extra : moz-landing-system : lando
2019-03-12 14:47:50 +00:00
Jason Orendorff
51eb0a44fd
Bug 1529758 - Add a pref for fields. r=tcampbell
...
This creates a shell command-line option, `--enable-experimental-fields`, and a
Gecko pref, `javascript.options.experimental.fields`.
Both are off by default everywhere, for now.
Differential Revision: https://phabricator.services.mozilla.com/D22045
--HG--
extra : moz-landing-system : lando
2019-03-12 16:42:41 +00:00
Jan de Mooij
c89f4b00ab
Bug 1530937 part 16 - Convert tailCallVMs. r=tcampbell
...
Tail calls have their own list/array/enum to improve type safety.
Differential Revision: https://phabricator.services.mozilla.com/D23112
--HG--
extra : moz-landing-system : lando
2019-03-12 14:06:22 +00:00
Jan de Mooij
38175a1f96
Bug 1530937 part 15 - Convert callVMs in BaselineIC code. r=tcampbell
...
Differential Revision: https://phabricator.services.mozilla.com/D23108
--HG--
extra : moz-landing-system : lando
2019-03-12 14:04:57 +00:00
Jan de Mooij
091472af63
Bug 1530937 part 14 - Convert callVMs in CacheIR IC code. r=tcampbell
...
Differential Revision: https://phabricator.services.mozilla.com/D23107
--HG--
extra : moz-landing-system : lando
2019-03-12 14:04:39 +00:00
kellykc72
26d5920802
Bug 1530844 - Make push/pop pair for ecx conditional on previous ecx content r=mgaudet
...
The ECX register must contain the SHIFT amount. Before this change, ECX will always be push/pop during a SHIFT operation. However, ECX should only be push/pop if it's original contents are going to be overwritten. We now only push/pop ECX if it contains some arbituary value and hence will be overwritten by the SHIFT operation.
Differential Revision: https://phabricator.services.mozilla.com/D22887
--HG--
extra : moz-landing-system : lando
2019-03-12 13:11:19 +00:00
Ted Campbell
c92f0d2d4d
Bug 1533755 - Add SharedScriptData constructor. r=jwalden
...
This is based on PrivateScriptData approach. We make sure to call all
default constructors even if the compiler will optimize away.
Differential Revision: https://phabricator.services.mozilla.com/D22717
--HG--
extra : moz-landing-system : lando
2019-03-12 02:40:59 +00:00
Ted Campbell
f7d1ebcf87
Bug 1533755 - Use RefPtr for SharedScriptData pointers. r=jandem
...
Leave manual refcounting in the ScriptDataTable for now since it
requires a bit of care to make the automatic types do the right thing
when sweeping.
Differential Revision: https://phabricator.services.mozilla.com/D22718
--HG--
extra : moz-landing-system : lando
2019-03-12 02:40:29 +00:00
Ted Campbell
0fb55c89f0
Bug 1533755 - Cleanups in PrivateScriptData. r=jandem
...
Also add a GCManagedDeletePolicy so that the script data can be dropped
even when we are not sweeping.
Differential Revision: https://phabricator.services.mozilla.com/D22715
--HG--
extra : moz-landing-system : lando
2019-03-12 02:38:51 +00:00
Tooru Fujisawa
c92d5c4af5
Bug 1534516 - Use correct AutoGCRooter::Tag in BinASTParserBase. r=Yoric
...
Differential Revision: https://phabricator.services.mozilla.com/D23083
--HG--
extra : moz-landing-system : lando
2019-03-12 09:16:00 +00:00
Tooru Fujisawa
e932d3f5e5
Bug 1473796 - Part 4: Add FunctionEmitter, FunctionScriptEmitter, and FunctionParamsEmitter. r=jorendorff
...
FunctionEmitter is for function declaration/expression/method/etc in the
enclosing script.
FunctionScriptEmitter is for function script, including body and class fields,
excluding parameters.
FunctionParamsEmitter is for function parameters.
Differential Revision: https://phabricator.services.mozilla.com/D19622
--HG--
extra : moz-landing-system : lando
2019-03-12 06:15:23 +00:00
Tooru Fujisawa
49d1f82b2e
Bug 1473796 - Part 3: Move DestructuringFlavor into its own header. r=jorendorff
...
Differential Revision: https://phabricator.services.mozilla.com/D19621
--HG--
extra : moz-landing-system : lando
2019-03-12 06:05:21 +00:00
Tooru Fujisawa
165217b8e6
Bug 1473796 - Part 2: Do not use TokenPos in BytecodeEmitter::{setFunctionBodyEndPos,setScriptStartOffsetIfUnset}. r=jorendorff
...
Differential Revision: https://phabricator.services.mozilla.com/D19620
--HG--
extra : moz-landing-system : lando
2019-03-12 06:03:48 +00:00
Tooru Fujisawa
eb1819e292
Bug 1473796 - Part 1: Add DefaultEmitter. r=jorendorff
...
Differential Revision: https://phabricator.services.mozilla.com/D19619
--HG--
extra : moz-landing-system : lando
2019-03-12 06:03:30 +00:00
Oana Pop Rus
38d2d04978
Merge mozilla-central to autoland. a=merge CLOSED TREE
2019-03-12 06:53:06 +02:00
Jeff Walden
8c1d08c491
Bug 1534437 - Make JSFlatString::new_ always take ownership of the |chars| passed to it, and add the same sensible ownership handling to a bunch of callers. r=tcampbell
...
Differential Revision: https://phabricator.services.mozilla.com/D23043
--HG--
extra : rebase_source : 60741661edc946794e97736dd013ed6eb9609d56
extra : amend_source : 0379248e2bee7588180739224b8008d927ab03f7
2019-03-08 22:28:08 -08:00
Dorel Luca
0471f46dd2
Backed out changeset 29b1d70e8032 (bug 1534430) for build bustage. CLOSED TREE
2019-03-12 04:00:31 +02:00
Steve Fink
104c0bd83d
Bug 1534430 - Pointer types should default to RootKind::Traceable unless a more specific RootKind has been set via MapTypeToTraceKind r=jwalden
...
Differential Revision: https://phabricator.services.mozilla.com/D23040
--HG--
extra : moz-landing-system : lando
2019-03-12 00:46:17 +00:00
Will Hawkins
484d8eda83
Bug 1526315: Non-integer typed array access can lead to repeated bailouts r=iain
...
Differential Revision: https://phabricator.services.mozilla.com/D21790
--HG--
extra : moz-landing-system : lando
2019-03-11 21:16:19 +00:00
Jeff Walden
1bba596e1d
Bug 1533636 - Remove all remaining calls to XDRState::codeAlign as no longer necessary now that codeChars and XDRAtom don't require buffer alignment. r=tcampbell
...
Differential Revision: https://phabricator.services.mozilla.com/D22655
--HG--
extra : rebase_source : 0b711d049ecd7210406ebf4dd7b527960c220c6b
2019-03-05 17:37:20 -08:00
Jeff Walden
b299df2f1a
Bug 1533636 - Don't bother explicitly aligning when XDRing char16_t data: the operations we use to perform the little/native-endian conversion will correctly translate into, or translate out of, unaligned memory. r=tcampbell
...
Differential Revision: https://phabricator.services.mozilla.com/D22654
--HG--
extra : rebase_source : 2013431c35fff24bb003671dc257005903ff3c07
2019-03-06 13:36:47 -08:00
Jeff Walden
6004ce1971
Bug 1533636 - Introduce fill-and-terminate functions for filling dest chars from source chars and null-terminating, when the filling will not lose information. r=tcampbell
...
Differential Revision: https://phabricator.services.mozilla.com/D22653
--HG--
extra : rebase_source : 5b32a158bbcde63412cf4a53913422aa04fd04dc
2019-03-06 03:24:12 -08:00
Lars T Hansen
48e8a74210
Bug 1533744 - Properly gate anyref. r=luke
...
When I removed the guard on anyref for gcTypesEnabled I should have added a couple
more ifdefs so that anyref is only accepted when the reftypes are enabled.
This patch adds those guards, and expands test cases that check that the feature
is properly disabled to include more possible error messages.
Differential Revision: https://phabricator.services.mozilla.com/D22893
--HG--
extra : moz-landing-system : lando
2019-03-11 16:29:11 +00:00
Dorel Luca
6b4ae50927
Backed out 2 changesets (bug 1533755) build bustage. CLOSED TREE
...
Backed out changeset d5eff5c34ce9 (bug 1533755)
Backed out changeset 35825a8005ab (bug 1533755)
2019-03-11 22:23:28 +02:00
Ted Campbell
d593df20af
Bug 1533755 - Use RefPtr for SharedScriptData pointers. r=jandem
...
Leave manual refcounting in the ScriptDataTable for now since it
requires a bit of care to make the automatic types do the right thing
when sweeping.
Differential Revision: https://phabricator.services.mozilla.com/D22718
--HG--
extra : moz-landing-system : lando
2019-03-11 20:01:08 +00:00
Ted Campbell
ba8d1ed841
Bug 1533755 - Cleanups in PrivateScriptData. r=jandem
...
Also add a GCManagedDeletePolicy so that the script data can be dropped
even when we are not sweeping.
Differential Revision: https://phabricator.services.mozilla.com/D22715
--HG--
extra : moz-landing-system : lando
2019-03-11 20:01:26 +00:00
Emilio Cobos Álvarez
c4573875e2
Bug 1533969 - Fix build error with newer glibc. r=nbp
...
New glibc versions provide a wrapper for gettid, which means that our stuff
fails to build with:
```
/home/emilio/src/moz/gecko/js/src/util/NativeStack.cpp:28:14: error: static declaration of 'gettid' follows non-static declaration
static pid_t gettid() { return syscall(__NR_gettid); }
^
/usr/include/bits/unistd_ext.h:34:16: note: previous declaration is here
extern __pid_t gettid (void) __THROW;
```
Differential Revision: https://phabricator.services.mozilla.com/D22829
--HG--
extra : moz-landing-system : lando
2019-03-11 19:28:37 +00:00