Commit Graph

26049 Commits

Author SHA1 Message Date
Ehsan Akhgari
d10ae4744e Bug 860867 - Disable loop vectorization optimizations in the JS engine for clang to prevent it from generating bad code; r=glandium 2013-04-26 08:43:19 -04:00
Jan de Mooij
2dd6c83ac5 Bug 863018 part 2 - Add JSShortString path back to ConcatStrings and LConcat. r=luke 2013-04-26 14:08:54 +02:00
Jan de Mooij
0e3d13fe17 Bug 863018 part 1 - Fix regalloc issue with useFixed/tempFixed and safepoints. r=bhackett 2013-04-26 14:05:08 +02:00
Aryeh Gregor
e78504c9a9 Bug 859817 - Remove implicit conversions from raw pointer to already_AddRefed; r=Ms2ger 2013-04-22 14:15:59 +03:00
Aryeh Gregor
b7c3e8030b Bug 859817 - Make NS_NewAtom return already_AddRefed; r=bz 2013-04-22 14:13:22 +03:00
Ms2ger
229df37509 Merge m-c to m-i. 2013-04-26 12:32:27 +02:00
Jan de Mooij
69125d563b Bug 865406 - Disable IonMonkey LICM if a script bails out frequently. r=h4writer 2013-04-26 12:10:28 +02:00
Ms2ger
2b71cc307b Bug 862446 - Use CallArgs in XPC_WN_Helper_{Call,Construct}; r=bholley 2013-04-26 08:48:40 +02:00
Ms2ger
cc2268408a Bug 852135 - Part d: Move nsDOMAttributeMap to WebIDL bindings, remove CI and QS; r=bz 2013-04-26 08:48:27 +02:00
Steve Fink
2c15ee7168 No bug, DONTBUILD. Updates to the static rooting analysis, including transition from Makefile to python script.
Although this patch contains some updates to Makefile.in, I am no longer using it at all. I now run analyze.py for better control, though note that it depends on loading in some configuration settings that are hardcoded to my environment.

This patch also contains a number of updates to the annotations.

--HG--
extra : rebase_source : ebd4deb590fb9fde4532bdf45214ffca117e1c3a
2013-04-25 09:16:37 -07:00
Jon Coppeard
76bca799d9 Bug 864848 - Mark Rooted<> as stack only r=terrence 2013-04-25 11:55:30 +01:00
Jan de Mooij
8b11c72674 Bug 849526 - Workaround Clang issue with the conservative stack scanner. r=dvander
--HG--
extra : rebase_source : 4b4baa63b7413a022a41f28ea62e280f7905f1c5
2013-04-26 09:42:35 +02:00
Boris Zbarsky
eb0cabfa76 Bug 864727 part 1. Root the global before calling WrapObject in XPCConvert. r=bholley
I sort of wish GetGlobalJSObject just returned a handle.
2013-04-25 12:29:52 -04:00
Andrew McCreight
68f54b836e Bug 865397 - Nicen up "id got defined" assertion. r=bholley 2013-04-25 08:42:44 -07:00
Nicholas Nethercote
47bf2c68a4 Bug 857382 (part 2) - Prefix zone addresses in about:memory with "0x" for consistenty with other addresses. r=billm.
--HG--
extra : rebase_source : a8c669c0bf27fa0b1d90c9b7862ca43dfe4a80bd
2013-04-21 13:55:05 -07:00
Bill McCloskey
26c023ee24 Bug 856670 - Bring JS C stack limit closer to actual OS limits (r=bsmedberg) 2013-04-25 21:02:22 -07:00
Bill McCloskey
d5ad35af09 Bug 864462 - Fix OOM in write barrier verifier (r=terrence) 2013-04-25 21:02:15 -07:00
Nicholas Nethercote
95b4815f0e Bug 634839 (part 1) - Remove unnecessary headers (as found by include-what-you-use) from js/src/jsfoo.cpp files. r=luke. 2013-04-23 23:44:36 -07:00
Sean Stangl
125147afcd Bug 812265 - Temporarily comment out standalone JS executable renaming. r=luke 2013-04-25 18:28:48 -07:00
Brian Hackett
21da402f62 Bug 864216 - Only create IonScriptCounts for asm.js code if rt->profilingScripts, r=luke. 2013-04-25 18:18:29 -06:00
Norbert Lindenberg
dcb042cb32 Bug 724533 - Integrate ICU into the Mozilla build (but don't actually build it, until a compile-time flag gets flipped). r=glandium 2013-04-25 15:27:22 -07:00
Sean Stangl
24b2d5d2eb Bug 618485 - Prefer word types that exist. no_r=red 2013-04-25 17:05:20 -07:00
Brian Hackett
a281609df4 Bug 865153 - Remove resume point uses in dead blocks when restarting loop processing, r=h4writer. 2013-04-25 09:08:36 -06:00
Tim Lunn
27624c0743 Bug 842889 - Include MOZILLA_VERSION in JS_GetImplementationVersion(). r=waldo 2013-04-25 16:40:33 -07:00
Landry Breuil
18ebde5d14 Bug 618485 - Add jsuword view to jsval_layout on 64-bit big-endian. r=luke 2013-04-25 16:18:03 -07:00
Ian Stakenvicius
9c4af6dfd6 Bug 809430 - Add symbol versions. r=glandium 2013-04-25 15:35:40 -07:00
Tim Lunn
7fa89a1cba Bug 812265, Part 4/4 - Fix MOZ_JS_LIBS. r=glandium 2013-04-23 17:21:50 -07:00
Tim Lunn
2758a2a859 Bug 812265, Part 3/4 - Use version number in filename of shell and js-config. r=glandium 2013-04-23 17:05:28 -07:00
Tim Lunn
73525f9e59 Bug 812265, Part 2/4 - Setup versioning and pkg-config support. r=glandium 2013-04-23 16:55:13 -07:00
Ian Stakenvicius
eb3d5e29cb Bug 812265, Part 1/4 - Remove JS_VERSION. r=dmandelin 2013-04-23 15:45:04 -07:00
Boris Zbarsky
7041704c76 Bug 861493. When passing arguments to an Xray for a WebIDL constructor, make sure to do the argument unwrapping before entering the content compartment. r=bholley,waldo
There are several changes here:

1) Adds some MutableThis methods to Optional, Nullable, and dictionaries to
   effectively allow doing a const_cast without knowing the actual type being
   templated over.  I needed this because I do not in fact know that type in
   the relevant code.  I'm open to suggestions for a better name for this
   method.
2) Adds some operator& to RootedJSValue to make it look more like a JS::Value,
   and in particular so I can JS_WrapValue the thing in it.
3) Adds a Slot() method to NonNullLazyRootedObject, just like NonNull has.
4) Adds an operator& to LazyRootedObject to make it look more like JSObject* so
   I can JS_WrapObject the thing in it.
5) Implements the actual rewrapping of the arguments into the content compartment.
6) Fixes a small preexisting bug in which we didn't look at named constructors
   in getTypesFromDescriptor (this was causing my tests to not compile).
7) Changes Xrays to not enter the content compartment when calling a WebIDL
   constructor.
8) Adds some friend API to report things as not being functions.
2013-04-25 19:03:05 -04:00
Luke Wagner
921dcb548d Bug 851627 - Make LifoAlloc::release run in O(1) (r=sstangl) 2013-04-25 12:28:29 -07:00
Jeff Walden
b3074a2427 s/JS_TRUE/true/g; s/JS_FALSE/false/g. Following up on a request in bug 858677, r=lumpy
--HG--
extra : rebase_source : 992fe9e7f92924d03abeb5f8839bfd0bca8650f1
2013-04-24 22:29:46 -07:00
Brian Hackett
1d9b09d62c Bug 865626 - Disallow generating extra barrier instructions when compiling Array.push, r=dvander. 2013-04-25 15:22:04 -06:00
Brian Hackett
760ae6b90d Bug 865635 - Use MMonitorTypes instead of MTypeBarrier for type write barriers, r=dvander. 2013-04-25 14:44:44 -06:00
Brian Hackett
c9972461db Bug 864957 - Consolidate locks used to avoid operation callback related races, r=djvj,luke. 2013-04-25 13:55:33 -06:00
Jeff Walden
43e64486da Minor style fixes to ObjectImpl.h. No bug, r=sparky 2013-04-18 16:21:48 -07:00
Jeff Walden
dde72f3f7f Bug 858381 - Implement non-writable array lengths, and add a boatload of tests. r=jorendorff and r=bhackett for the major parts of this, r=jandem for the methodjit changes, r=jimb on a debugger test change, r=nmatsakis for the parallel test. (More details available in the bug, where individual components of the fix were separately reviewed.)
More random details:
Various JIT components required updating for this.  In the case of some
methodjit bits, this meant simply disabling those optimizations.  This
patch also, passing, improves the Array.prototype.push method's
fast-path to work for any number of provided arguments, not just one.
The patch also fixes a few pre-existing bugs in how array length setting
works and includes the appropriate tests.  (If anyone notices, it's
because they were a test in a test suite.)  I also added a ParallelArray
test that verifies that arrays with non-writable length function
correctly in parallel code.  We bail before getting there now, because
Object.defineProperty isn't parallel-friendly, but if it ever becomes
so, hopefully the test will start failing.  Hello, is this thing on?
2013-03-19 17:12:06 -07:00
Daniel Holbert
fb5bb1a70d Bug 865396: Insert space between string literal and macro arg, to fix GCC 4.8 Wliteral-suffix build warning. r=sfink 2013-04-24 20:54:24 -07:00
Brian Hackett
1acf20a733 Bug 865192 - Remove unnecessary toPhi() coercion, r=dvander. 2013-04-24 20:07:00 -06:00
Shu-yu Guo
a39c388ab6 Bug 861904. (r=sstangl) 2013-04-24 18:41:03 -07:00
Shu-yu Guo
aa3f42ee31 Bug 858582 - Prevent callsite cloning of callsite clones. (r=bhackett) 2013-04-24 18:41:01 -07:00
Luke Wagner
925b241539 Bug 857700 - Fix race condition in AsmJSMachExceptionHandler (r=vlad)
--HG--
extra : rebase_source : bba872fdedfc119468ad586eca97b00881a5dee9
2013-04-18 21:45:33 -07:00
Bobby Holley
f4fb2c0693 Bug 865260 - Use IsXrayWrapper rather than ObjectIsNativeWrapper in nsWindowSH. r=bz
There are some other uses of ObjectIsNativeWrapper in other scriptable helpers
that are tempting to remove as well, but it's probably just better to wait for
that stuff to just go away. Given that the issue we're running into here is
Window-specific, there's not a pressing need to fix the other stuff.
2013-04-24 15:21:26 -07:00
Till Schneidereit
cbcc26a5b0 Bug 856246 - support specifying thread count in jit-test metalines. r=terrence 2013-04-24 15:46:37 +01:00
Till Schneidereit
8125daee22 Bug 851788 - prevent jsd_SetExecutionHook from operating on self-hosted functions. r=jimb 2013-04-23 12:58:24 +01:00
Jon Coppeard
944a8fc0d8 Bug 861887 Review comments for prev patch r=bholley
--HG--
extra : rebase_source : 7f91680f5f7249c9fb09708eb790bdc19c779c67
2013-04-24 14:22:21 +01:00
Felix S. Klock II
bd1d278cbd Bug 863234 - Fix inlineDump handling for MParDump. r=nmatsakis 2013-04-18 15:38:13 +02:00
Jan de Mooij
7af1562988 Bug 858551 part 2 - Optimize calls from Ion to Baseline code. r=djvj 2013-04-24 12:43:24 +02:00
Jon Coppeard
ca8a10bd6b Bug 864002 - IonMonkey: Assertion failure: (ptrBits & 0x7) == 0, at ./dist/include/js/Value.h:733... r=djvj 2013-04-24 11:34:38 +01:00