Commit Graph

57698 Commits

Author SHA1 Message Date
Jeff Walden
101a97496d Bug 1296814 - Introduce Parser::warningAt for warnings at specified offsets. r=arai
--HG--
extra : rebase_source : 8860a1c0892bbce10ab367d58d0bf632785821bc
2016-11-13 00:12:28 -08:00
Jeff Walden
75f5a2dd55 Bug 1296814 - Report for-loop-decl-with-initializer errors using a specified offset instead of a node's offset. r=arai
--HG--
extra : rebase_source : c2b6fcd8aa21fe747ee2568a8c6d0d38da68db2a
2016-11-13 00:12:28 -08:00
Jeff Walden
29058eaa77 Bug 1296814 - Report bad-class-member errors using a specified offset instead of a node's offset. r=arai
--HG--
extra : rebase_source : 68379c893ea8d05b544a045d378e94f1be4b9305
2016-11-13 00:12:28 -08:00
Jeff Walden
e72e3de588 Bug 1296814 - Remove Parser::reportBadReturn and report simpler errors that don't use the offset of a node as location. r=arai
--HG--
extra : rebase_source : bb602d66d581b46a5b321137013d05e09ce60350
2016-11-13 00:11:39 -08:00
Jeff Walden
43a9efa314 Bug 1296814 - Introduce Parser::errorAt to reduce reporting an error at a particular offset to its bare essentials. r=anba
--HG--
extra : rebase_source : 350bdbf12b6eb64ff262c81765cbd624c8439d80
2016-11-13 00:10:54 -08:00
Jeff Walden
8b088449b9 Bug 1296814 - Inline Parser::checkFunctionDefinition into its sole caller. r=anba
--HG--
extra : rebase_source : 8b2176785d79551596bdedca51d81bba78335a79
2016-11-13 00:10:34 -08:00
Jeff Walden
bc4b5f070b Bug 1296814 - Inline GeneratorKindFromPropertyType and AsyncKindFromPropertyType into their sole caller. r=me as trivial, and/or as response to review comment on previous patch
--HG--
extra : rebase_source : b99198bf8c6db1d3a9bfd656145e307bbce3b347
2016-11-13 00:10:08 -08:00
Jeff Walden
2fdbf4afb3 Bug 1296814 - Move the Parser::checkFunctionDefinition call, out of Parser::functionDefinition, into its few Statement-related callers. r=anba
--HG--
extra : rebase_source : cfcaa227d7e1d9ae8e4c00313a986a40547f1771
2016-11-13 00:05:10 -08:00
Jeff Walden
e383cddaf8 Bug 1296814 - Move a little bit of Parser::functionDefinition into callers. r=anba
--HG--
extra : rebase_source : df7937ee20727126f4e6255afbf1bf2dab2f1584
2016-11-12 21:30:55 -08:00
Jeff Walden
cd0a258caa Bug 1296814 - Move FunctionDeclaration-as-consequent/alternative handling out of Parser::functionStmt into Parser::consequentOrAlternative. r=anba
--HG--
extra : rebase_source : 80a8b7e18a08dd9dfe2e9b95622ef0d80df73db8
2016-11-08 10:35:11 -08:00
Jeff Walden
80e3524951 Bug 1296814 - Track strict mode errors in |for (var i = ... in ...)| correctly when syntax-parsing. r=anba
--HG--
extra : rebase_source : a6aaf4e07b9aa9962a38a2eb6adedec320a84a2d
2016-11-07 15:23:19 -08:00
Jeff Walden
94f6d08b5a Bug 1296814 - Track strict mode errors in unary deletions correctly when syntax-parsing. r=anba
--HG--
extra : rebase_source : 61e00449a07bcca21fdf8b10efad43906a119e1d
2016-11-07 15:23:18 -08:00
Jeff Walden
d141fe456e Bug 1296814 - Specify an explicit offset when warning about "use asm" found in the directive prologue of a script (rather than a function body). r=anba
--HG--
extra : rebase_source : 40239791b101a8a53f924d71944e412a0b5dbb31
2016-11-07 15:23:18 -08:00
Jeff Walden
1eb4cc8925 Bug 1296814 - Introduce Parser::error(unsigned errorNumber, ...) to reduce reporting errors at the current offset to its bare essentials. r=arai
--HG--
extra : rebase_source : 1990d7abb343aea9b63b90ee22535346d83345c0
2016-11-07 15:23:18 -08:00
Jeff Walden
a89de50724 Bug 1296814 - Introduce Parser::warning. r=anba
--HG--
extra : rebase_source : 7f1337a59f5aa5938722e9ac4f1aa42190eac762
2016-11-07 15:23:18 -08:00
Jeff Walden
3867d8ce13 Bug 1296814 - Introduce Parser::extraWarning. r=anba
--HG--
extra : rebase_source : a9bee3683754ea661a13a4438d0e79f6b711702b
2016-11-07 15:23:17 -08:00
Jeff Walden
a57eb68e02 Bug 1296814 - Remove the |bool strict| argument from the report-at-current-offset Parser function. r=arai
--HG--
extra : rebase_source : f35d5cb3543c93560f563ea23363f6f08ad5bdbc
2016-11-07 15:23:17 -08:00
Jeff Walden
2afe6227ce Bug 1296814 - Split out Parser::strictError for the two calls that don't pass |bool strict = false|, so that |bool strict| can be removed from the current signature. r=arai
--HG--
extra : rebase_source : 061e1d88515399cb8824d3d12857e84c1c0e8b00
2016-11-07 15:23:17 -08:00
Jeff Walden
3b14786056 Bug 1296814 - Split Parser::report into Parser::zeport (a temporary name) that uses the current offset, and Parser::reportWithNode that derives it from a Node. r=arai
--HG--
extra : rebase_source : 4943a81cf142960826ca07cadbac7797bbce3612
2016-11-07 15:23:17 -08:00
Jeff Walden
8d34045c4f Bug 1296814 - When |continue x| is found outside of a loop, report an error that points at |continue|, not at |x|. r=arai
--HG--
extra : rebase_source : 0ede7c8dee7f9b4a2de756ac880826d37560b0b1
2016-11-07 15:23:16 -08:00
Jeff Walden
c2e73e8629 Bug 1296814 - Don't use ParseHandler::getPosition in a FullParseHandler-specialized function -- just use pn_pos directly. r=anba
--HG--
extra : rebase_source : 784b33df6e6cab03e12f62058c8baa7dc417e9f4
2016-11-07 15:23:16 -08:00
Jeff Walden
7f88dac912 Bug 1296814 - Give correct position information to prototype mutation when syntax-parsing. r=arai
--HG--
extra : rebase_source : c83a02756108b82402d269a9fb0901d40069a3f0
2016-11-07 15:23:16 -08:00
Jeff Walden
0d2eccb89a Bug 1296814 - Give correct position information to pending errors during potential destructuring patterns. r=arai
--HG--
extra : rebase_source : 27538a0a1acea83b6385d34a8826e27d5f4a9968
2016-11-07 15:23:16 -08:00
Jeff Walden
86485c20b3 Bug 1296814 - Implement TokenStream::peekOffset for cases where peekTokenPos was used only to get an offset. r=anba
--HG--
extra : rebase_source : 1f556413cec5d53d35f2ff8def283fb23ddf47b5
2016-11-07 15:23:18 -08:00
Kausam
6594918046 Bug 1310045 - When a non-property-name token is observed instead of a property name in an object/class literal or destructuring pattern, indicate the unexpected token the way most unexpected tokens are indicated using JSMSG_UNEXPECTED_TOKEN. r=jwalden
--HG--
extra : rebase_source : 51331ed501dd653bca17b5134d975cee9cd08eec
2016-11-06 15:52:46 +05:30
Jeff Walden
a6268015a3 Bug 1315815 - Don't treat async or await as a keyword when they contain escapes. r=anba
--HG--
extra : rebase_source : 2122a2add6fe01a4fa52e4bc76e516d765dcc565
2016-11-07 15:21:36 -08:00
Jeff Walden
9819dd23b6 Bug 1305566 - Add testing of names in the destructuring context to the main reserved-word/keyword test. r=test
--HG--
extra : rebase_source : 4047a0378a1f01ebe9fbb3830afd9d0bf8b1af8f
2016-09-09 16:12:19 -07:00
David Major
7304bbd490 Bug 1314169: Move the WasmFaultHandler to last priority on Windows ASan builds. r=luke
Win64 ASan relies on a VectoredExceptionHandler to create shadow memory regions on demand. If WasmFaultHandler gets the exception first, it can itself fault while looking at shadow memory, leading to an infinite recursion.

Unfortunately, due to an ordering problem, we also have to disable the MemoryProtectionExceptionHandler when we do this.

MozReview-Commit-ID: aHwnBFI6dG

--HG--
extra : rebase_source : 77365c9f3afc9077a52df547c3372653a9d36afb
2016-11-14 10:37:47 -06:00
Nicolas B. Pierron
384aa6e996 Bug 1316830 - FoldLinearArith: Do not set new additions as truncated by default. r=h4writer 2016-11-14 15:18:07 +00:00
Nicolas B. Pierron
40ea799982 Bug 1314614 - Replace GetCurrentProcessId calls by getpid. r=h4writer 2016-11-14 11:18:14 +00:00
Luke Wagner
392e723d67 Bug 1317033 - Baldr: hoist mprotect out of MacroAssembler::patchCall/FarJump (r=sunfish)
MozReview-Commit-ID: Nejpro1fxc
2016-11-13 13:21:49 -06:00
Luke Wagner
19ae114a83 Bug 1317033 - Baldr: allow 2*num-cores outstanding tasks (r=sunfish)
MozReview-Commit-ID: 5G8ZBUoHBt9
2016-11-13 13:21:03 -06:00
Luke Wagner
382fd64a5c Bug 1317033 - Baldr: give OpIter Vectors an inline capacity (r=sunfish)
MozReview-Commit-ID: L22p9PXHF0O
2016-11-13 13:20:28 -06:00
Tooru Fujisawa
54c85b62f0 Bug 1317085 - Part 3: Add testcase for relazification. r=till 2016-11-13 07:59:38 +09:00
Tooru Fujisawa
31a2eca03e Bug 1317085 - Part 2: Throw error when cloning async function. r=till 2016-11-13 07:59:38 +09:00
Tooru Fujisawa
aa70f76e14 Bug 1317085 - Part 1: Handle async function flag in XDR. r=till 2016-11-13 07:59:38 +09:00
Tom Schuster
e5bfbcecf4 Bug 1316913 - Warn about ArrayBuffer.slice. r=till 2016-11-12 19:26:25 +01:00
Tooru Fujisawa
93aa351fcb Bug 1021835 - followup: Skip test that needs drainJobQueue in jsreftest. r=bustage
--HG--
extra : amend_source : 4b870064639a2721616d69fa4ffc5499cbdf1984
2016-11-13 01:36:57 +09:00
Tooru Fujisawa
2da73f6075 Bug 1021835 - Part 4: Add testcases for primitive iterator. r=evilpie 2016-11-13 00:40:29 +09:00
Tooru Fujisawa
08f43c0396 Bug 1021835 - Part 3: Use "iterator" instead of "iterable" in the error message for iterator. r=evilpie 2016-11-13 00:40:29 +09:00
Tooru Fujisawa
81b6c3004f Bug 1021835 - Part 2: Do not convert iterable[@@iterator]() value to object in ForOfIterator::init. r=till 2016-11-13 00:40:29 +09:00
Tooru Fujisawa
aead8a332b Bug 1021835 - Part 1: Emit JSOP_CHECKISOBJ after GetIterator in byte code. r=evilpie 2016-11-13 00:40:28 +09:00
Luke Wagner
57bcef4db9 Bug 1316651 - Baldr: rename Expr to Op (r=sunfish)
MozReview-Commit-ID: Bsn7uC1axkh
2016-11-11 13:53:15 -06:00
Luke Wagner
1197e12f31 Bug 1316651 - Baldr: change decoding of enumerated values (r=sunfish)
MozReview-Commit-ID: AUGzgO2rqyQ
2016-11-11 13:52:10 -06:00
Andrea Marchesini
2aba798852 Bug 1303518 - Remove the chrome only constructor for File, r=qdot 2016-11-11 18:56:44 +01:00
Luke Wagner
542fd41920 Bug 1313180 - Baldr: fix accidental disabling of asm.js when wasm is disabled (r=sunfish)
MozReview-Commit-ID: 3Fc7ywvmLif
2016-11-11 11:46:29 -06:00
Carsten "Tomcat" Book
cc5d30c616 Merge mozilla-central to mozilla-inbound
--HG--
extra : rebase_source : 658b3ffdfa71afff2d44129f50e50e2fbecbd06e
2016-11-11 16:43:07 +01:00
Jan de Mooij
877f6fdac6 Bug 1099054 - Fix bogus error messages caused by the decompiler falling back to the current pc. r=nbp 2016-11-11 12:52:33 +01:00
Lars T Hansen
0c67869ab8 Bug 1316843 - annotate TODO items with bugzilla references. r=me DONTBUILD
--HG--
extra : rebase_source : 39297b8f8443b18efd52ce40264dd2bccaa3bc01
extra : amend_source : 0c7881dcb6ee8282d0d6340c1b6001f96d46d42b
2016-11-11 12:47:27 +01:00
Tom Tromey
7a77ebc473 Bug 1254295 - add "flushregs" advice to unwinder instructions; r=nbp
MozReview-Commit-ID: A0jtO5yj4Og

--HG--
extra : rebase_source : acfd6020ea2f298583eefa5907ec08024622f423
2016-10-31 11:38:46 -06:00