Commit Graph

52485 Commits

Author SHA1 Message Date
Jan de Mooij
5b0fc89a9e Bug 1233925 - Treat functions with rest more like functions with lazy arguments. r=nbp
--HG--
extra : rebase_source : e293afa27bafaf3985684a01c31118c2ec518e56
2016-01-06 21:05:21 +01:00
Terrence Cole
eca54a7ace Backout 9dfd86b06459c257390c2514380a09456b008e33 (Bug 1235923) for build bustage on a CLOSED TREE.
--HG--
extra : rebase_source : 412366ba75e73e2338a9ec21a96c40bd466fa6db
2016-01-06 12:05:08 -08:00
Terrence Cole
97c4c6520f Backout 7621c3ea95cb11e1c376a9f705accc0f90057c0a (bug 1235923) for build bustage on a CLOSED TREE.
--HG--
extra : rebase_source : 6c54aa7e1af75c270ab2b6833b56c780c537e297
2016-01-06 12:05:06 -08:00
Terrence Cole
d38e840e6f Bug 1235923 - Part 2: Use new Root tracing APIs in Gecko; r=smaug 2015-12-30 11:31:16 -08:00
Terrence Cole
e03a483cfa Bug 1235923 - Part 1: Add C++ APIs for unbarriered pointer tracing; r=sfink 2015-12-30 10:10:29 -08:00
Nicolas B. Pierron
0234a0f219 Bug 1234736 - IonMonkey: Recover Math.imul as an int32 operation. r=h4writer 2016-01-06 14:37:56 +00:00
Tooru Fujisawa
79ad276266 Bug 1180290 - Part 4: Add tests for builtin getter name. r=till 2016-01-05 03:21:24 +09:00
Tooru Fujisawa
2bbe10c9ea Bug 1180290 - Part 3: Use canonical name in native getter. r=till 2016-01-05 03:21:24 +09:00
Tooru Fujisawa
0063cbce8a Bug 1180290 - Part 2: Handle prefix in DefinePropertyById. r=till,smaug 2016-01-05 03:21:24 +09:00
Tooru Fujisawa
b81d79019c Bug 1180290 - Part 1: Add prefix parameter to IdToFunctionName. r=till 2016-01-05 03:21:23 +09:00
Tooru Fujisawa
4ba7961236 Bug 1067049 - Implement arguments[@@iterator]. r=evilpie 2016-01-06 17:53:21 +09:00
Steve Singer
5b29198d9d Bug 1232150 - Add atomics for ppc/ppc64. r=lth
--HG--
extra : rebase_source : 87b1a27b663075006ef8b6e3e62d1b168bc3a6f5
2016-01-05 09:26:58 -05:00
Jeff Walden
abd0ec462b Bug 1236525 - Return false instead of true in a case of JSAPI failure. r=bah 2016-01-05 18:58:20 -08:00
Shu-yu Guo
d3a8744d8e Bug 1216261 - Fix OOM handling of DebugScopes. (r=jonco) 2016-01-05 18:36:36 -08:00
Shu-yu Guo
f782f9d407 Bug 1234717 - Fix upvar TDZ for block-scoped functions. (r=jorendorff) 2016-01-05 18:36:36 -08:00
Shu-yu Guo
bae1958503 Bug 1234414 - Consider the initial values at block entry to be within block note bounds. (r=jorendorff) 2016-01-05 18:36:35 -08:00
Nathan Froyd
8070cbc00f Bug 1236571 follow-up - fix bustage on a CLOSED TREE; r=me 2016-01-05 16:36:11 -05:00
Sander Mathijs van Veen
4415ae87d1 Bug 1232977 - Remove redundant bitand with uint{8,16} and an all-bits-set mask. r=nbp, r=sunfish 2016-01-04 07:21:00 -05:00
Jan de Mooij
593cb191d9 Bug 1231224 part 9 - Clean up StackSlotAllocator, fix Vector append warning with MOZ_WARN_UNUSED_RESULT. r=bhackett
--HG--
extra : rebase_source : 5c26f019ba4ccff839408a624fa1df0b5346eb3f
2016-01-05 20:50:15 +01:00
Jan de Mooij
2323ed20f3 Bug 1212298 - Use inner script instead of outer script in CodeGenerator::visitCallDirectEval. r=shu
--HG--
extra : rebase_source : aab4d02c2035772e33aabd48e5aff91162d8c623
2016-01-05 20:49:14 +01:00
Nathan Froyd
26acea99b2 Bug 1236571 - convert easy cases of nsAutoArrayPtr<T> to UniquePtr<T[]> in js/xpconnect/; r=gabor
The other cases are tied up with the startup cache, and will need more
extensive refactoring.
2015-12-06 09:20:16 -05:00
Jeff Walden
0e7b5200f4 Bug 1235640 - Correctly perform assignment-target detection and marking on a name (arguments, eval, or some other name) used as the target of a for-in/of loop. r=shu
--HG--
extra : rebase_source : 3071b43b19d4a35de0f8e898fa237ab3f5f8fbb3
2015-12-30 13:09:37 -06:00
Luke Wagner
66e19ee927 Bug 1236530 - Make ExecutableAllocator::reprotectRegion fallible and handle in asm.js (r=jandem)
--HG--
extra : commitid : 5ewGl5aKzjO
extra : rebase_source : 866ee6464c890cfa303165817c755cf37a83e45c
2016-01-05 10:58:12 -06:00
Luke Wagner
7f24b008d5 Bug 1236552 - Odin: handle unfinished AsmJSModuleObject in addSizeOfMisc (r=bbouvier)
--HG--
extra : commitid : Ee4mi50AffD
extra : rebase_source : c2c7fd9cd67a99616284edda0e9b2c432b0ab2bc
2016-01-05 10:57:35 -06:00
Luke Wagner
7b6e86c042 Bug 1236541 - Odin: when enabling profiling, only patch actual callsites (r=bbouvier)
--HG--
extra : commitid : AnWF570Bh1x
extra : rebase_source : 4125ae135393f0ee2217e6728db073c421596314
2016-01-05 10:56:17 -06:00
Luke Wagner
8bd0a5ea87 Bug 1236484 - Odin: remove invalid assert (r=bbouvier)
--HG--
extra : commitid : 1GUqJlpiaIE
extra : rebase_source : e37ae3e19d6709555ef4183b3be57e4579469b58
2016-01-05 10:55:25 -06:00
Terrence Cole
bb224242a8 Bug 1235598 - Part 2: Use TraceEdge exclusively in Gecko; r=smaug
--HG--
extra : rebase_source : 27afd7eecd5a13f8d28b888b64d5e44b3c4a74a5
2015-12-30 08:52:14 -08:00
Terrence Cole
14bc095b59 Bug 1235598 - Part 1: Add better SpiderMonkey API support for tracing in C++; r=sfink
--HG--
extra : rebase_source : 777e1dd17331f38b482fc12ef1e2d96ec61fb02d
2015-12-30 08:52:12 -08:00
Jakob Stoklund Olesen
02332a2395 Bug 1236522 - Handle MIRType_Bool32x4 in StringFromMIRType. r=nbp
Add a case for MIRType_Bool32x4 to the switch and remove the default case so we
get compiler warnings in the future when adding more MIR types.
2016-01-05 08:51:43 -08:00
Ben Kelly
2c33490365 Bug 1236619 Fix compilation failure with warnings-as-errors with some compilers. r=njn 2016-01-05 08:09:01 -08:00
Lars T Hansen
47eed284d1 Bug 1231333 - part 1, JS engine: only allow futexWait in workers. r=luke
--HG--
extra : rebase_source : 4191fb11e5a2cbd417a6d1b8a548364e30ff7eb9
2015-12-23 13:40:54 +01:00
Jon Coppeard
261fc79f61 Bug 1233109 - Push hunk missed from previous commit to fix build bustage r=me 2016-01-05 15:29:55 +00:00
Jon Coppeard
012dbf7d7b Bug 1233109 - Alias fewer bindings at module toplevel r=shu 2016-01-05 15:07:59 +00:00
Jon Coppeard
b8c54bceff Bug 1233109 - Make the getters in Import/ExportEntryObject const r=shu 2016-01-05 15:07:58 +00:00
Jon Coppeard
82b5f8d44d Bug 1233109 - Check for duplicate exported names using the data in the ModuleBuilder and remove ModuleBox::exportNames r=shu 2016-01-05 15:07:58 +00:00
Jon Coppeard
fc10a4b5bf Bug 1233109 - Call into the ModuleBuilder as we parse rather than traversing the AST again afterwards r=shu 2016-01-05 15:07:58 +00:00
Jon Coppeard
7fa52a1973 Bug 1233109 - Refactor module parsing to instantiate ModuleBuilder earlier r=shu 2016-01-05 15:07:58 +00:00
Jon Coppeard
ba32e6eac5 Bug 1236564 - Fix various minor issues with getting/setting GC parameters r=terrence 2016-01-05 15:07:58 +00:00
Benjamin Bouvier
d9a9a55a72 Bug 1234280: Handle oom in CodeGeneratorShared::allocateData; r=jandem
--HG--
extra : commitid : Drbq42mi2jg
extra : rebase_source : 14a7d646151b9983ede0060cb8573b0edec6586c
2015-12-24 09:51:30 +01:00
Carsten "Tomcat" Book
ae7a25d2a4 Merge mozilla-central to mozilla-inbound 2016-01-05 12:01:44 +01:00
Carsten "Tomcat" Book
2262c1271c merge mozilla-inbound to mozilla-central a=merge 2016-01-05 11:58:56 +01:00
Benjamin Bouvier
caee5ab97b Bug 1221361: Mark SetARMHwCapFlags as unsafe for fuzzing; r=jolesen
--HG--
extra : rebase_source : 31d5492d1262019f39c5b295feed2ad02b09c2cb
2015-12-24 09:08:31 +01:00
Bogdan Postelnicu
4486adb46d Bug 1235041 - Cast value to uint64_t in order to prevent int overflow when value is greater than 2^12. r=jonco
--HG--
extra : rebase_source : df473012e5b66abc80513cbd2e83e7fe7129a853
2015-12-24 02:57:00 -05:00
Tom Tromey
e385bd20d9 Bug 1235636 - rewrite PCToLineNumber; r=fitzgen 2016-01-04 09:18:56 -07:00
Nicholas Nethercote
6d93e1b2e4 Bug 1232224 - Streamline setting of compile warnings in configure.in. r=glandium,cpeterson.
The main changes are to the warnings, which are as follows.

- Kept -Wall.

- Part of -Wall or on by default; remove all mentions:
  * -Waddress
  * -Wchar-subscripts
  * -Wcomment
  * -Wconversion-null
  * -Wendif-labels
  * -Wenum-compare
  * -Wimplicit-function-declaration
  * -Wint-to-pointer-cast
  * -Wmissing-braces
  * -Wmultichar
  * -Wnonnull
  * -Wparentheses
  * -Wpointer-sign
  * -Wpointer-to-int-cast (C only)
  * -Wreorder
  * -Wreturn-type
  * -Wsequence-point
  * -Wsign-compare (C++ only)
  * -Wswitch
  * -Wtrigraphs
  * -Wuninitialized
  * -Wunknown-pragmas
  * -Wunused-label
  * -Wunused-value
  * -Wwrite-strings (C++ only)

- Part of -Wextra; kept where present, added where missing:
  * -Wempty-body
  * -Wignored-qualifiers (not added for C++ code; many fixes needed to enable)
  * -Wtype-limits

- Part of -pedantic; kept where present, added where missing:
  * -pointer-arith

- C++ only, kept:
  * -Wno-invalid-offsetof
  * -Woverloaded-virtual

- Clang-only, kept:
  * -Wnon-literal-null-conversion (affected by a clang bug; see the big comment
    in the code)
  * -Wrange-loop-analysis (C++ only)
  * -Wno-unused-local-typedef

- This no longer exists?  I kept it to be safe:
  * -Winline-new-delete

A consequence of this is that, when --enable-warnings-as-errors is on, in
directories which have ALLOW_COMPILER_WARNINGS specified we no longer have any
fatal warnings. (We previously did have all the explicitly-mentioned
-Werror=foo ones.) This is a sensible change; if we are going to allow warnings
in a directory we should allow all of them, not just some of them.

Other changes:

- Some C warnings incorrectly used the CXX macros. Fixes that.

- Moves comments about warnings closer to the lines where they are defined, to
  make it easier to keep the comments consistent with the code.

- Reorders things a little, e.g. so that all enabled warnings are before all
  disabled warnings.

The C and C++ warnings are now very similar, in both configure.in and
js/src/configure.in.

--HG--
extra : rebase_source : 6f8db0fecda1315504a29fbcafb6fdee3053d8a5
2015-12-16 18:39:50 -08:00
Tooru Fujisawa
6eb62d6549 Bug 1235656 - Part 2: Remove alias to selfhosted builtin from Utilities.js. r=till 2016-01-04 06:59:55 +09:00
Tooru Fujisawa
2ede3916c0 Bug 1235656 - Part 1: Set canonical name in self-hosted builtins. r=till 2016-01-04 06:59:52 +09:00
Hannes Verschore
4370e997ad Bug 1233343: SharedStubs: Count frames pushed correctly on ARM when entering an ion stub frame, r=jandem 2016-01-04 22:27:12 -05:00
Nicholas Nethercote
a9f31c44eb Bug 1232219 (part 4) - Enable -Wunused for C code, except where it's too annoying. r=glandium.
--HG--
extra : rebase_source : febc9aac7ec5e3699742e728065c370dcee4f0f3
2015-12-16 22:59:42 -08:00
Chris Peterson
c9b006d167 Bug 1235717 - Enable clang's -Wunreachable-code warnings. r=glandium 2015-12-28 00:17:02 -07:00