Commit Graph

22358 Commits

Author SHA1 Message Date
Jacob Bramley
0f3cd6ceaf Bug 625701: Sensible fixed width branching. (r=cdleary) 2011-01-14 09:00:56 -08:00
Chris Leary
1a66e5bee4 Bug 625718: Correct SETPROP label offsets. (r=jbramley) 2011-01-14 07:49:59 -08:00
Chris Leary
056facaa7c Bug 625701: Fixed-width IC cmp/branch is required for x86. (r=dvander) 2011-01-14 02:57:21 -08:00
Chris Leary
4b37828aec Merge mozilla-central into tracemonkey. 2011-01-14 01:45:33 -08:00
Chris Leary
72a8c1a6b6 Bug 588021: Remove vestigial ifdefs. (r=dmandelin) 2011-01-13 22:42:48 -08:00
Chris Leary
d4f5d475e9 Bug 588021: Port ELEM PICs for ARM. (r=dmandelin) 2011-01-13 22:42:28 -08:00
Chris Leary
24d8b5461c Bug 588021: Port CALLPROP PIC for ARM. (r=dmandelin) 2011-01-13 22:42:07 -08:00
Chris Leary
cad74eb0f9 Bug 588021: Port SETPROP PIC for ARM. (r=dmandelin) 2011-01-13 22:41:42 -08:00
Jacob Bramley
40fdd878d3 Bug 588021: Port NAME PIC for ARM. (r=cdleary) 2011-01-13 22:41:16 -08:00
Jacob Bramley
19407e2b09 Bug 588021: Port BINDNAME PIC for ARM. (r=cdleary) 2011-01-13 22:40:58 -08:00
Chris Leary
8dc586ec63 Bug 588021: Port GETPROP PIC for ARM. (r=dmandelin) 2011-01-13 22:40:15 -08:00
Chris Leary
9e386e7eeb Bug 588021: Refactor MICs to work on ARM, ICRepatcher interface. (r=dmandelin, u=jbramley,cdleary) 2011-01-13 22:39:43 -08:00
Chris Leary
fc21ef8fcb Bug 588021: Cross-platform PIC labels. (r=dmandelin, u=cdleary,dvander,jbramley) 2011-01-13 22:39:11 -08:00
Jacob Bramley
2a3e7b6d4f Bug 588021: Make stub calls with stub veneer on ARM. (r=cdleary) 2011-01-13 22:38:52 -08:00
Nicholas Nethercote
39684e1437 Bug 625333 - tracer generated code reads stack memory it didn't write. r=lw. 2011-01-13 19:14:46 -08:00
Nicholas Nethercote
02b1116cec Backed out changeset 1548012fa682 due to leaks found by Valgrind. 2011-01-13 19:04:03 -08:00
Gregor Wagner
bd787e50ed Bug 624224 - cleanup compartment sweep code r=brendan 2011-01-13 16:58:27 -08:00
Sean Stangl
4dffcaf9d9 Fix --disable-tracejit build. (rs=dvander) 2011-01-13 19:03:05 -05:00
Gregor Wagner
4ba60cb773 Bug 625484 - rename defaultCompartment r=gal 2011-01-13 14:42:36 -08:00
Andreas Gal
5f17a91711 Default new contexts to a NULL compartment (bug 623800, r=dmandelin). 2011-01-13 14:11:15 -08:00
David Mandelin
66315defbc Bug 613399: set isMatch on empty-match backtrack return in PCRE, r=cdleary 2011-01-12 18:56:52 -08:00
Ben Turner
b1d60e9bef Bug 620984 - 'Firefox 4.0b8 Crash Report [@ DEBUG_CheckWrapperThreadSafety(XPCWrappedNative const*) ]'. r=jst, a=blocking. 2011-01-13 13:09:35 -08:00
Andreas Gal
c28f277607 Maintain identity and proto of .wrappedJSObject wrappers (bug 620486, r=mrbkap). 2011-01-13 13:03:44 -08:00
Chris Leary
7959a558fa Disable bug 617935 large allocation test on WINNT. (r=philor) 2011-01-13 00:44:57 -08:00
Chris Leary
33858e1651 Try to fix jsreftest report results on win32. 2011-01-12 23:21:08 -08:00
Andreas Gal
c04fd6628e Follow-up fix for bug 625250. 2011-01-12 18:56:23 -08:00
David Mandelin
b9d69588f9 Bug 621068: don't run deadbeef assertion in case of deep bail, r=dvander 2011-01-12 18:46:17 -08:00
Andreas Gal
50d252b93f Finalize typed arrays via the background thread (bug 625250, r=njn). 2011-01-12 18:40:29 -08:00
Bill McCloskey
8498598448 Bug 623050 - Move tracerState to compartment (r=gal) 2011-01-12 16:56:23 -08:00
Chris Leary
3a00d228c6 Fix opt failures using gczeal. (r=Waldo) 2011-01-12 15:29:06 -08:00
Chris Leary
4a86a8d49b Bug 620327: Spruce up js_regexp_ToString. (r=Waldo) 2011-01-12 15:29:03 -08:00
Chris Leary
123d5c9b50 Bug 617935: Check string lengths using StringBuffer. (r=lw) 2011-01-12 15:28:58 -08:00
Jeff Walden
27bd32aa27 Bug 625191 - Root Bindings used in JS_CompileUCFunctionForPrincipals. rs=gwagner
--HG--
extra : rebase_source : af09c008781d39de0e756422e0ac56e5f88c71c6
2011-01-12 17:09:06 -06:00
timeless
354e7a64db Bug 620961 - FoldXMLConstants should initialize str. r=brendan, a=sayrer 2011-01-12 14:58:54 -08:00
Bill McCloskey
2147249795 Bug 617904 - Reset profile info in methodjit when tracejit is flushed (r=dmandelin) 2011-01-12 10:09:48 -08:00
Dan Witte
208aae2699 Add commit for bug 605421 to libffi.patch. NPOB, a=aidan 2011-01-18 16:00:36 -08:00
Rafael Ávila de Espíndola
afd9226645 Bug 623117 - JetPack class Handle depends on invalid unqualified lookup into dependent bases of class templates; r=mrbkap a=bsmedberg 2011-01-18 15:15:35 -05:00
Chris Leary
04ffe6d2a0 Merge tracemonkey to mozilla-central. (a=blockers) 2011-01-18 11:19:21 -08:00
Ehsan Akhgari
e9a8047947 Bug 626138 - Bug 616841 has broken non-libxul builds when trying to build xpcshell, with undefined symbol "xpc_LocalizeContext(JSContext*)". r=bz a=bustage 2011-01-18 13:35:10 +01:00
Igor Bukanov
92884882fd Bug 619529 - avoid any exposure of XML's AttributeName and AnyName objects. r=brendan 2011-01-09 00:01:52 +01:00
Chris Leary
55bc290dc1 Merge mozilla-central into tracemonkey. 2011-01-12 00:07:40 -08:00
Chris Leary
eea64cc8c6 Bug 624971: RegExp sticky path assertion failure. (r=lw) 2011-01-11 22:27:29 -08:00
Steve Fink
645725bd16 Bug 624316 - Unwrap wrapped functions before returning them to JSD to see the contained script and name, r=gal, a=blocker
--HG--
extra : rebase_source : cd15aed41ace6f368ef5f149cd88f32c9dfd1aa5
2011-01-11 14:24:52 -08:00
Brendan Eich
740ecbadaf Fix JSOP_ARGSUB to abort on frame with arguments object (624547, r=dvander). 2011-01-11 12:47:34 -08:00
Luke Wagner
4b39d607a6 Bug 624080 - Avoid weird OSX10.5 compile error in jsclone (r=jorendorff)
--HG--
extra : rebase_source : ee0bc7810bf1108642bec02c154d7795de53d584
2011-01-10 12:29:50 -08:00
Luke Wagner
13113dac01 Bug 624218 - Fix PodCopy assert (r=jorendorff)
--HG--
extra : rebase_source : 5b969a4c98cc3a3a22432b45d6787c93e8a4ea5b
2011-01-11 15:20:07 -08:00
Luke Wagner
9abddb6362 Bug 620640 - Allow there to be more than 1 pending global slot to set (r=jorendorff)
--HG--
extra : rebase_source : 72562e0a3868f8cb65918c3c23f42d364e43ce41
2011-01-11 15:19:57 -08:00
Jeff Walden
5a102cb6a1 Back out 567f16dd81f3, an existing test is bad, and by appearances poisoning of Boolean.prototype, Number.prototype, and String.prototype will make it hard to quickly fix. r=the O in ROYGBIV 2011-01-11 16:29:09 -06:00
Jeff Walden
f5c2dd5fbb Back out 72ac46e9f64e for orange. r=bustage 2011-01-11 15:04:36 -06:00
David Anderson
6390a68543 Fix assert in typed array IC (bug 624518, r=cdleary). 2011-01-11 12:16:44 -08:00
Blair McBride
67d8229557 Merge. a=merge 2011-01-12 14:15:32 +13:00
Rafael Ávila de Espíndola
98c8b70b2a Bug 622138 - Mark Depends on invalid unqualified lookup in templates for TypedMarker. r=igor, a=benjamin 2011-01-12 14:10:39 +13:00
Blake Kaplan
aa3212f666 Bug 612025 - Windows can be xray-wrapped too. r=gal@uci.edu, a=blocker 2011-01-11 17:09:53 -08:00
Andreas Gal
87663422bc Bug 609287. Fix Assertion failure: OperationInProgress(cx, proxy). r=jorendorff@mozilla.com, jwalden@mit.edu, a=blocker. 2011-01-11 17:09:53 -08:00
Blake Kaplan
548d97c032 Bug 624540 - Assertion failure: compartment mismatch in cycle collector during xpcom-shutdown. r=gal, a=blocking2.0+ 2011-01-11 17:01:10 -08:00
Jeff Walden
7c3850ddd4 Bug 623301 - Properly root arguments names during a call to Function(). r=brendan
--HG--
extra : rebase_source : 4c397e75a23eca275c6fea1b50d675ff23fea2ba
2011-01-05 16:50:30 -06:00
Jeff Walden
64a0827408 Bug 624640 - Reset gczeal at the end of each browser JS test. r=bc
--HG--
extra : rebase_source : b8ee7d18c481017a12ce9987e663b04eab0b8138
2011-01-11 13:18:12 -06:00
Jeff Walden
78fbd0d0a9 Bug 557371 - Make JSON.stringify behavior on Boolean, String, and Number objects to-spec. r=jorendorff
--HG--
extra : rebase_source : f329e9274b79abd264cf254d6d95a1b97f466ab9
2010-12-31 11:41:23 -06:00
David Anderson
cbd130ea26 Fix a slot bug when objects become dictionaries (bug 618129, r=brendan). 2011-01-11 11:47:07 -08:00
David Mandelin
650525ad33 Bug 624041: skip elements deleted via shift or reverse in iteration, r=igor 2011-01-10 18:39:46 -08:00
David Mandelin
25ae2aa4b3 Backed out changeset 000cb7431848 -- bad commit messaage 2011-01-11 11:42:29 -08:00
David Mandelin
ce67065786 [mq]: fix-iter.diff
* * *
[mq]: fix-iter2.js
* * *
[mq]: itertest.js
2011-01-10 18:39:46 -08:00
Brendan Eich
9efbd7aca3 Fix C++ violation tolerated by GCC and MSVC, caught by Clang (623303, rs=luke). 2011-01-11 11:12:59 -08:00
Brendan Eich
021b60877e Remove partial flat closure hold-over that has O(n^2) complexity (617430, r=dmandelin). 2011-01-10 18:12:46 -08:00
Nicholas Nethercote
feb48abc3c Fix some compiler warnings. r=gcc. 2011-01-10 20:33:53 -08:00
Nicholas Nethercote
25cb1c9fb8 Bug 621816 - "Assertion failure: unexpected constantly false guard detected" with typed array. r=vlad. 2011-01-10 20:26:20 -08:00
Bill McCloskey
a7631e3393 Bug 607539 - Change how profiler aborts work (r=dmandelin) 2011-01-10 20:18:09 -08:00
Bill McCloskey
40817af4b8 Bug 606890 - Factor array reads and equality into profiler decision (r=dmandelin) 2011-01-10 20:14:35 -08:00
Bill McCloskey
7b54c48064 Bug 606890 - Change how profiler recognizes "expensive" inner loops (r=dmandelin) 2011-01-10 20:12:31 -08:00
David Anderson
a063bfc056 Disallow for-in initializers that use let (bug 617288, r=brendan). 2011-01-10 16:58:22 -08:00
David Anderson
bd14d6e121 Fix rare double-prologue execution in tracer integration logic (bug 624100, r=luke). 2011-01-10 16:33:30 -08:00
Brendan Eich
9be24d9daf Try a back-out to cure XPCOM leaks (WTF?). 2011-01-10 16:30:00 -08:00
Jason Orendorff
2fb44252ac Bug 615859 - Deserialize with null argument crashes/asserts (shell-only). r=Waldo. 2011-01-10 17:46:20 -06:00
Brendan Eich
af7cae8943 Remove partial flat closure hold-over that has O(n^2) complexity (617430, r=dmandelin). 2011-01-08 23:56:31 -08:00
Jason Orendorff
437a5b8cb2 Add test case for bug 617171, recently fixed under bug 618007.
--HG--
extra : rebase_source : f3b3018abb75de48f3430e881cbeb3ff7ec9a2f9
2011-01-10 16:36:45 -06:00
Jim Blandy
9a144ea618 Bug 547712: Disable remaining scatter-based test. r=jorendorff
This test fails intermittenly, and uses now-unsupported functionality.

The test relies on the JS shell's 'scatter' function, which runs multiple
threads in the same compartment, so it's not even an API or behavior we
want to support any more. There is a more drastic patch in the bug that
removes scatter and deletes the tests that use it (all currently skipped),
but that probably should wait until after FF4. This is less drastic, and
avoids intermittent failures until we are ready to clean house.
2011-01-10 14:29:32 -08:00
Bill McCloskey
bf5b72e325 Bug 606890 - Profile short loops twice (r=dmandelin) 2011-01-10 14:27:30 -08:00
David Mandelin
123828cfe4 Bug 619004: fix JS shell split object mark function, r=jorendorff 2011-01-10 12:14:34 -08:00
Andreas Gal
f4c8022172 Rename Proxy enumerateOwn to keys (bug 600642, r=jorendorff,brendan). 2011-01-10 11:42:11 -08:00
Andreas Gal
fb7ccc9f25 Add API to enable/disable per-compartment GCs (bug 624229, r=shaver). 2011-01-09 22:57:21 -08:00
Daniel Holbert
5f44c1fb89 Bug 624011: #ifdef out a debugging struct in C code, since it uses a type that's not C-kosher. r=lw 2011-01-09 10:42:52 -08:00
Daniel Holbert
b3a6cb56ed Bug 622647: (basically NPODB) Add 'ifdef MOZ_ENABLE_LIBXUL' guard around libxul-only function, to fix 'not used' build warning in non-libxul builds. r=dwitte 2011-01-06 11:54:59 -08:00
Gregor Wagner
e95fc08cbe Bug 624168 - inconsistency in crossCompartment wrapper data structure r=gal 2011-01-08 20:06:29 -08:00
Mike Shaver
1c96467849 Bug 624205: fix warning due to mismatched export declarations on MarkContext. 2011-01-08 18:55:54 -08:00
David Anderson
19da7b603a Remove unsound global optimizations (bug 618007, r=brendan). 2011-01-08 16:27:48 -08:00
David Anderson
a869e7d227 Use the right shape when watching objects (bug 624050, r=jimb). 2011-01-08 15:28:31 -08:00
Gregor Wagner
3614636778 Enable per-compartment garbage collection (bug 605662, r=gal). 2011-01-07 23:44:57 -08:00
Jim Blandy
019b7543b8 Bug 609832: Fix message wording. r=brendan 2011-01-07 21:46:21 -08:00
Paul Biggar
189e70029f Bug 623859 - Add missing OOM checks during array allocation (r=lw) 2011-01-07 18:55:35 -08:00
Brendan Eich
e46b1cc3ac Get rid of JSOP_{GET,CALL}UPVAR and simplify code greatly (592202, r=jorendorff). 2010-12-29 23:46:50 -08:00
Jim Blandy
1e88e69991 Bug 609832: Function statements should be banned (for now) in ES5 strict mode. (r=cdleary) 2011-01-07 17:56:22 -08:00
Blake Kaplan
073e29798e Bug 616992 - Give nsDOMConstructors a precreate hook so that we don't accidentally create more than one wrapper object for them. r=jst@mozilla.com, gal@uci.edu, a=blocker 2011-01-11 12:15:52 -08:00
Edwin Smith
60d70b77c1 Bug 620406 - Constant folding branch condition leads to assert in Assembler.cpp (r=nnethercote+)
--HG--
extra : convert_revision : 5797090820d1645fad3c0ee05865cecf8b6b190c
2010-12-21 20:30:32 -05:00
Jason Orendorff
1490428c37 Tracer generates bad code for {__proto__: ...}, leading to a crash. Bug 626464, r=brendan.
--HG--
extra : rebase_source : 369a705d51e2bd24f63c0e4f6465a6dba44972df
2011-01-17 17:33:45 -06:00
Luke Wagner
68eefec80e Bug 626118 - Fix RegExp ref-counting leak; record already-incremented-ness in type (r=cdleary) 2011-01-17 14:58:53 -08:00
Andreas Gal
fbd83bbc4f Allow entering a compartment with a pending exception (bug 626267, r=luke). 2011-01-17 14:21:03 -08:00
Jason Orendorff
e4e610a0d6 Return the new shape from methodWriteBarrier instead of searching for it again. Bug 623863, r=brendan. 2011-01-17 11:30:08 -06:00
Jason Orendorff
96fbd99178 Add tracer support for JSOP_UNBRANDTHIS with primitive this. Bug 625399, r=Waldo. 2011-01-17 11:19:26 -06:00
Cameron Kaiser
e6e72b40a9 Bug 623277 - Failed to build with --disable-methodjit r=dmandelin, a=NPOTB 2011-01-08 22:42:00 -08:00
Jim Blandy
a9577c45b8 Bug 624199: Move code for decompiling strict mode code directives to where it works for JS_DecompileScript, too. r=brendan 2011-01-15 13:48:26 -08:00
Jim Blandy
3289f9eb57 Bug 624199: Correctly skip emitting bytecode for useless string literals and complain, while not flagging directives. r=brendan
Never emit bytecode for expression statements consisting of a single string
literal. Complain about them as useless code only if they are not part of a
Directive Prologue. The comments in recognizeDirectivePrologue explain the
details.

Fix bad names of directive-prologue-related parse node member functions.
2011-01-15 13:48:26 -08:00
Andreas Gal
c71d128474 Temporary restore old shark start/stop functions (bug 625993, r=bz). 2011-01-14 19:02:11 -08:00
Andreas Gal
949f18ab0c Makefile rules fix for bug 625962. 2011-01-14 18:42:58 -08:00
Jim Blandy
8243d96f08 Bug 501908: Avoid O(n^2) behavior when recycling large trees. r=igor
It turns out that the careful effort RecycleTree and NewOrRecycledNode make
to disassemble the recycled tree lazily is wasted: every recycling call
ends up calling UnlinkFunctionBoxes and walking the entire parse node tree
to fix up funbox and method links. There's no locality; you might as well
queue up the parse nodes while you're at it. And the stack doesn't stay
shallow.

This patch replaces the (very clever) lazy recycling with eager recycling,
using a work stack chained through the nodes themselves to avoid creating
deep C++ stacks when recycling deep parse trees. We put off cleaning up the
method lists and funbox tree until just before function analysis, at which
point we do so in a single linear pass. Putting this off to the end avoids
quadratic behavior, as noted in the comments.

The patch localizes the process of adding nodes to the free list in a
single function, ensuring that we don't recycle used/defn nodes. It also
poisons newly freed nodes.

The patch also more clearly distinguishes between function nodes that have
been fully deleted, and function nodes that have been mutated (by
js_FoldConstants) into other kinds of nodes. See the comments before
Parser::cleanFunctionList.

I believe the patch also improves the care with which we handle nodes that
cannot be recycled immediately (those that appear in JSAtomLists, or are
referred to by JSFunctionBoxes). In some cases, those nodes may be picked
up and fiddled with later, so it is important that they not refer to nodes
around them that did get recycled.
2011-01-14 18:09:09 -08:00
Jim Blandy
780bba0f9f Bug 501908: Pass a JSTreeContext to analyzeFunctions, not bits and pieces. r=igor
Proper function recycling may mean eliminating the tree context's entire
function list; it's misleading to pass in the function list, rather than
side-effecting the tc in place.

Let analyzeFunctions take care of testing whether we have any functions to
analyze, instead of making each caller do it. In the next patch in the
series, we won't know whether the function list is really clear or not in
the callers anyway.

Avoid passing tcflags around by non-const reference; SpiderMonkey style is
to use pointers for parameters the callee may mutate, to make call sites
more evidently potential mutations.
2011-01-14 18:09:09 -08:00
Andreas Gal
f5c9522e86 Make Shark work with 64-bit MacOSX builds and rename to start/stopProfiling() (bug 625962, r=sayrer). 2011-01-14 17:58:40 -08:00
David Anderson
232e3ee3c3 Merge backout. 2011-01-14 17:49:43 -08:00
David Anderson
1343e908cb Backed out changeset 121ac4c0d553 2011-01-14 17:48:42 -08:00
Blake Kaplan
4f05b0d1e1 Fix DumpJSStack on dummy frames to not try to treat arbitrary memory as the |this| value. r=gal NPOTB 2011-01-14 17:28:53 -08:00
David Anderson
08b7658fb4 Get rid of value snapshotting in value iterators (bug 624421, r=luke,gal). 2011-01-14 17:15:21 -08:00
David Anderson
0dca4cbca5 Fix PunboxAssembler interface returning wrong labels (bug 625757, r=cdleary). 2011-01-14 15:42:42 -08:00
Jason Orendorff
2c574f0bc2 Bug 559653 - Record assignment before the interpreter goes, mostly. This reduces record_SetPropHit to a narrower callback, record_AddProperty. r=brendan.
--HG--
rename : js/src/jsapi-tests/testSetPropertyWithNativeGetterStubSetter.cpp => js/src/jsapi-tests/testSetProperty.cpp
2011-01-14 16:18:53 -06:00
Chris Leary
ac34fb9cee Merge tracemonkey changeset. 2011-01-14 12:35:20 -08:00
Chris Leary
19ed1e45c7 Merge last good mozilla-central revision into tracemonkey. 2011-01-14 12:34:23 -08:00
David Anderson
0a0981d8fc Update NativeIterators properly in the method JIT (bug 625377, r=luke). 2011-01-14 12:16:53 -08:00
Brendan Eich
2c74ffd9ca Cope with localStorage reifying __iterator__ with null value, and the like (573875, r=gal). 2011-01-14 08:03:45 -08:00
Chris AtLee
0800495bd3 Bug 621199, bump nightly version to 4.0b10pre now that 4.0b9 branched, r=rail a=release CLOSED TREE 2011-01-11 17:31:38 +13:00
Gregor Wagner
961d66c760 Bug 624168 - inconsistency in crossCompartment wrapper data structure r=gal CLOSED TREE 2011-01-08 20:06:29 -08:00
Gregor Wagner
5992bb7f55 Enable per-compartment garbage collection (bug 605662, r=gal). CLOSED TREE 2011-01-07 23:44:57 -08:00
Chris Leary
c1800dcccc Merge tracemonkey into mozilla-central. (a=blockers) 2011-01-08 00:48:44 -08:00
David Mandelin
c03fce3947 Bug 622691 followup: invert statement order in AutoUnlockDefaultCompartment to get update inside lock, r=gal, a=blocking 2011-01-06 11:30:15 -08:00
Chris Leary
456e877764 Merge tracemonkey to mozilla-central. (a=blockers) 2011-01-07 11:49:49 -08:00
Taras Glek
92c52b6a86 Bug 609785 - turn cache urls into file paths r=bsmedberg a=approval2.0 2011-01-07 11:04:27 -08:00
Michael Wu
c2c8d3894b Bug 609785 - Use resource:/// for loading omnijar components, r=bsmedberg a=approval2.0 2011-01-07 11:04:19 -08:00
Mike Shaver
303567b028 Bug 623915: about:memory reporter for string char data, r=lw 2011-01-07 03:03:34 -08:00
Jeff Walden
550585b968 Bug 622167 - Properly handle infinite recursion of heavyweight functions. r=dvander 2011-01-06 02:22:21 -06:00
Jeff Walden
32f74752c1 Bug 622321 - While { x: 1, x: 1 } is a syntax error only in strict mode, any other name collision between property assignments in an object literal is a syntax error regardless whether the literal is in strict mode code or not. r=dmandelin
--HG--
extra : rebase_source : 04493a7d56924ab968d5524b8bee57ecde37068a
2011-01-01 02:41:00 -06:00
Luke Wagner
49037a53bc Don't swallow errors in FindTearOff (bug 612225, r=gal). 2011-01-07 02:15:14 -08:00
Andreas Gal
b9019854fa Compartment mismatch with pending exception (bug 621845, r=lw,jorendorff). 2011-01-07 02:03:14 -08:00
Chris Leary
6806325137 Merge tracemonkey and mozilla-central. 2011-01-07 00:17:35 -08:00
Ben Turner
9b0dc88cb6 Bug 622042 - 'IndexedDB: Rework events and requests'. r=sicking, a=sicking. 2011-01-06 22:21:36 -08:00
Ben Turner
5f9dd9d69f Bug 618484 - 'Allow ChromeWorkers access to XPCOM objects'. r=jst+jorendorff, a=blocking. 2011-01-06 22:21:30 -08:00
Mike Shaver
5816101b08 missed a file, sigh 2011-01-06 22:17:13 -08:00
Mike Shaver
d2606fc67e Bug 623281: about:memory reporting for method JIT space usage, r=dvander
--HG--
extra : rebase_source : 39276fb0279b528f5e17122a980e243ff92fde27
2011-01-04 22:48:46 -08:00
Robert Sayre
1ac2d80563 Backed out changeset 013bde94ad94 2011-01-06 21:41:59 -05:00
Jeff Walden
f068c1f307 Bug 622321 - While { x: 1, x: 1 } is a syntax error only in strict mode, any other name collision between property assignments in an object literal is a syntax error regardless whether the literal is in strict mode code or not. r=dmandelin
--HG--
extra : rebase_source : 394e4533d1855687f0ec41240aab8f853b568df2
2011-01-01 02:41:00 -06:00
Brendan Eich
f9d0ddbe68 Fix joined method leak via arguments.callee.caller (586482, r=igor). 2011-01-04 12:27:18 -08:00
Eric Hennigan
7a7ab3fa3e Bug 622503 - Build failure when JS_TRACER is not defined r=gal, gregor 2011-01-06 06:13:48 -08:00
Chris Leary
156cf3168b Bug 587288: 1. Non-atomic RegExp refcount, compartment checks. (r=gal) 2011-01-05 18:44:30 -08:00
Chris Leary
6255efce92 Bug 587288: 0. Compartmentalize regexp allocator, remove ExecutablePool atomic refcounts. (r=gal) 2011-01-05 18:44:30 -08:00
David Anderson
b443abe346 Backed out changeset 48a2416b7f41 2011-01-05 22:11:18 -08:00
David Anderson
8b5a9105c8 Abort recording on some more global operations (bug 597940, r=luke). 2011-01-05 19:53:08 -08:00
Andreas Gal
6d6e6a903d Disallow non-native global objects (609990, r=brendan). 2011-01-05 19:56:42 -08:00
David Anderson
b4d33227f7 ICs for typed arrays (bug 594247, r=cdleary,vlad). 2011-01-05 19:16:41 -08:00
David Mandelin
6f64880260 Bug 622691: fix unlock order in AutoLockDefaultCompartment, r=gal 2011-01-05 17:26:31 -08:00
David Mandelin
98169843b9 Bug 611432: assert that compartments stay the same before and after a JM activation, r=gal 2011-01-05 17:21:31 -08:00
Andrew Drake
70bac840dd Bug 621055: check interrupt flag in exception handlers, r=sstangl 2011-01-05 17:13:28 -08:00
Nicholas Nethercote
1413dab049 Bug 621022 - Assertion failure: LIR type error (start of writer pipeline): arg 1 of 'eqi' is 'immd' which has type double (expected int). r=brendan. 2011-01-05 15:47:46 -08:00
David Anderson
3d87e6117d Don't record setting upvars from nested trees (bug 620662, r=luke). 2011-01-05 15:21:59 -08:00
Bill McCloskey
e385787097 Bug 607539 - Fix inner loop handling in profiler (r=dmandelin) 2011-01-05 14:10:41 -08:00
Bill McCloskey
b55ffcc6a1 Bug 607539 - Small profiler cleanups (r=dmandelin) 2011-01-05 14:09:38 -08:00
timeless@mozdev.org
c18a09b990 Bug 603363 AutoCXPusher::mCX is unused in JetpackParent.cpp
r=gregor
2011-01-05 11:03:00 -08:00
Stuart Longland
0231923a05 Bug 607190 - Add "mips" and "mipsel" to CPU_ARCH checks. r=khuey a=bsmedberg 2011-01-06 15:42:54 +01:00
Blake Kaplan
90a196eb79 Bug 618871 - Try again to fix accessing content constructors from chrome through Xray wrappers. r=jst@mozilla.com, a=blocker 2011-01-05 20:28:19 -08:00
Oleg Romashin
324dd7dfc7 Bug 622797 - #ifndef does not work for config/system-headers config r=ted a=npodb 2011-01-07 14:18:37 +02:00
Jason Orendorff
9303fea272 Unbox iterator after deep bail. Bug 618574, r=dvander. Second landing, including a fix thanks to luke. 2010-12-16 14:59:50 -08:00
Jeff Walden
54c64fb818 Really disable not-yet-fixed tests by commenting them out, not incorrectly marking (all) of them as failing. r=orange 2011-01-04 21:15:06 -06:00
Steve Fink
d5939d7e8a Bug 619479 - Fix the mapping between PC offsets and source notes (r=dmandelin, a=blocker) 2010-12-16 15:35:30 -08:00
Steve Fink
e052c80510 Test loosely connected to bug 617870 - check whether JSD's topLevelHook and functionHook callbacks are invoked properly (r=test) 2010-12-10 11:39:46 -08:00
Jeff Walden
8248eb690c Disable strict mode eval being special for the moment due to a previously-unrecognized error in the patch for it -- will fix shortly. r=orange
--HG--
extra : rebase_source : 43f2fe851b8bfeedd8c41b8fdc1b53c9e3e79814
2011-01-04 17:50:20 -06:00
Dave Herman
6c3fb1e8ce bug 569487, r=gal: Reflect.parse(): custom builder object. NPOTB 2011-01-04 15:39:45 -08:00
Paul Biggar
f520fe8287 Merge backout. 2011-01-04 14:08:41 -08:00
Paul Biggar
bb80a7580e Backed out changeset 22fc8e6cdc46 due to windows shell breakage. 2011-01-04 14:05:55 -08:00
Paul Biggar
222056b574 Bug 588424 - Turn --enable-threadsafe (and JS_THREADSAFE) permanently on. (r=jimb) 2011-01-04 12:10:15 -08:00
Chris Leary
cba55906d2 Merge mozilla-central into tracemonkey. 2011-01-04 10:51:14 -08:00
Serge Gautherie
8056d8607f Bug 610936 - Require SP1 of VC8 EE to build (successfully); (Bv1-JS) Obsolete VC7.1 and VC8 without its SP1.
r=ted.mielczarek a2.0=benjamin.
2011-01-04 17:47:02 +01:00
Igor Bukanov
2b916d4cc7 Bug 622015 - r=brendan 2011-01-04 15:01:45 +01:00
Brendan Eich
a22d44e287 Backing out last push. 2011-01-03 23:07:46 -08:00
Ben Newman
c1b99a219d Bug 620242 - [@ JetpackActorCommon::RecList::remove] mishandles node, r+a=jst 2010-12-22 14:20:00 -08:00
Bill McCloskey
eeda171c78 Bug 606423 - Guard against invalid index when unblacklisting (r=dmandelin,a=blocker) 2010-12-30 16:23:36 -08:00
Bill McCloskey
f226252af3 Bug 621072 - Don't bake JS_THREAD_DATA(cx)->interruptFlags into traces (r=igor,a=blocker) 2010-12-23 15:14:33 -08:00
Bill McCloskey
bb3dabf630 Bug 621032 - Move iterationCounter from JSThreadData to TraceMonitor (r=igor,a=blocker) 2010-12-23 15:10:36 -08:00
Bill McCloskey
adced14c97 Bug 621032 - Move MathCache from JSThreadData to JSCompartment (r=igor,a=blocker) 2010-12-29 17:59:02 -08:00
Bill McCloskey
86878c6cca Bug 584860 - TraceMonitor cleanups (r=igor,a=blocker) 2010-12-29 17:55:24 -08:00
Bill McCloskey
f3b6a7abb0 Bug 584860 - Move TraceMonitor into compartment (r=gal,a=blocker) 2010-12-29 17:53:58 -08:00
David Mandelin
96e25b9462 Backout merge, a=backout 2010-12-29 17:47:55 -08:00
David Mandelin
10246a201e Backed out changeset e5e50e5a2816 -- done with diagnostic 2010-12-29 17:47:42 -08:00
David Mandelin
3ec04b2b3d Backout merge, a=backout 2010-12-29 17:46:32 -08:00
David Mandelin
5d791e34cf Backed out changeset c35a4e6ea3ca -- done with diagnotics. 2010-12-29 17:46:14 -08:00
Bill McCloskey
e9078dcf59 Bug 621716 - Abort profiling when tracejit flushes (r=dmandelin, a=blocker) 2010-12-28 15:48:14 -08:00
David Mandelin
21b5c13ed0 Bug 595975 diagnostic 2: shape markers and object data, r=billm, a=blocker
--HG--
extra : rebase_source : ddc486824d5f4a4e3dfe114ccde7e4841033ebaa
2010-12-28 14:50:01 -08:00
David Mandelin
320486a62c Bug 595975: diagnostic patch to collect Shape contents, r=billm, a=blocker 2010-12-27 17:36:03 -08:00
Phil Ringnalda
9a7ac744a0 Bug 621348 - Disable regress-336410-2.js on debug Linux where it times out, r=bclary, a=test
--HG--
extra : rebase_source : 77767e9f0d492523e075f970ccdc2811818bb042
2010-12-26 08:00:18 -08:00
Bob Clary
5a4654f7b2 Bug 615011 - Disable jsreftest/tests/jsreftest.html?test=js1_5/extensions/regress-336409-2.js on Linux debug where it times out, r=philor, a=test
--HG--
extra : rebase_source : ebd9e129d0d6e9b15bff6f70c3725a1bd29d0f36
2010-12-22 22:11:00 -08:00
Neil Rashbrook
59075a58ed Bug 616810 Remove extraneous CRs r=khuey a=bsmedberg 2011-01-05 23:46:04 +00:00
timeless@mozdev.org
04bec7eea4 Bug 620905 rules.mk generally fails to set ELOG to print-failed-commands.sh for make -s
r=khuey a=bsmedberg
2011-01-05 14:17:10 -08:00
timeless@mozdev.org
0a61d86586 Bug 620907 js/src/build/unix is missing print-failed-commands.sh
r=khuey a=bsmedberg

--HG--
rename : build/unix/print-failed-commands.sh => js/src/build/unix/print-failed-commands.sh
2011-01-05 14:17:10 -08:00
Oleg Romashin
8c0f97be0d Bug 618789 - Allow ARMv7 builds for ARM code (rather than Thumb-2 code). r=mitchell.field a=approval2.0 2011-01-14 07:35:38 +02:00
Sudarsana Nagineni
e4f91b3664 Bug 605421 - libffi: VFP hard-float calling convention support r=dwitte a=approval2.0 2011-01-13 17:38:19 +02:00
David Anderson
1e94966653 Fix PunboxAssembler interface returning wrong labels (bug 625757, r=cdleary, a=betaN+). 2011-01-14 15:42:42 -08:00
Dave Townshend ext:(%20and%20Chris%20Jones%20%3Cjones.chris.g%40gmail.com%3E)
230d82e708 Bug 616841, part 2: "Localize" the JS component JSContext. r=bz 2011-01-14 16:03:21 -06:00
Chris Jones
1fa69fd283 Bug 616841, part 1: Refactor use of JSLocaleCallbacks to make them easier to share among various JSContexts. r=bz sr=mrbkap 2010-12-06 14:45:00 -06:00
Brendan Eich
229566f088 Bug 586482 - arguments.callee.caller not equal to proto-delegated joined function object method (r=igor). 2010-11-11 10:06:56 -08:00
Nicholas Nethercote
df40e316b2 Bug 620532 - TM: integer promotion/demotion doesn't distinguish signed vs unsigned sufficiently. r=gal. 2011-01-03 20:13:55 -08:00
Nicholas Nethercote
1eb1015b14 Bug 610070 - Large amount of heap allocation from js::PropertyTable::init. r=brendan. 2011-01-03 17:14:55 -08:00
Dave Herman
8eee2503fb backing out due to red 2011-01-03 16:46:25 -08:00
Dave Herman
33f1a57622 bug 569487, r=gal: Reflect.parse(): custom builder object 2011-01-03 16:31:57 -08:00
Brendan Eich
a5a48a76e1 Bug 620750 - "arguments;" sneaks into decompilation (r=luke). 2011-01-03 16:26:33 -08:00
Luke Wagner
fa16e1dab7 Bug 622318 - Fix inverted deep bail check in moreiter (r=dvander)
--HG--
extra : rebase_source : 28ce8907129fecfa7d6397b3b1ffc151fbff0528
2011-01-03 13:36:48 -08:00
David Mandelin
591a3b383a Fix MSVC warnings. 2011-01-03 13:25:17 -08:00
Luke Wagner
a70eaceedc Bug 621202 - The base of a dependent string need not be flat (r=njn) 2011-01-03 12:07:20 -08:00
Luke Wagner
622b8f669f Bug 584423 - Put JSOP_UNBRANDTHIS in the prolog to satisfy the decompiler (r=brendan) 2011-01-03 09:06:33 -08:00
Luke Wagner
89c1e5e929 Bug 619970 - Use the correct magic-value code in GetElement (r=waldo) 2011-01-03 09:06:26 -08:00
Luke Wagner
67b2c7016d Bug 612329 - Don't cache code-ptr in Invoke gatling gun (r=waldo) 2011-01-03 09:06:30 -08:00
Luke Wagner
73304bf703 Bug 614752 - Make js_ReportIsNotFunction allow deviation from simulated sp in either direction (r=brendan) 2011-01-03 09:06:35 -08:00
Andrew Paprocki
d18fce93b0 Bug 618485 - Add jsval_layout def for 64-bit big-endian (r=lw) 2011-01-03 09:16:16 -08:00
Luke Wagner
113389128d Bug 616454 - Fix jsval/NaN-handling in structured clone reader (r=jorendorff) 2011-01-03 09:06:32 -08:00
Jan de Mooij
19705438b8 Generate jump table for JSOP_TABLESWITCH (bug 591972, r=dvander) 2010-12-15 19:19:11 +01:00
Bill McCloskey
4594ce19ad Bug 622060 - Fix off-by-one error in num_toLocaleString (r=bz) 2010-12-31 11:30:24 -08:00
Jan de Mooij
6542ae33fd Bug 621512 - JM: jsop_length should use urshift32 instead of rshiftPtr (r=sstangl). 2010-12-31 01:18:27 -08:00
Bill McCloskey
ce630590e3 Bug 606423 - Guard against invalid index when unblacklisting (r=dmandelin,a=blocker) 2010-12-30 16:27:03 -08:00
Tom Schuster
32dc9e74f4 Add tests for bug 352085, bug 472534, bug 496985, bug 566661, and bug 350712. rs=jwalden
--HG--
extra : rebase_source : eacda0a882d754d4210940625ee7fd3a7c446610
2010-12-30 16:40:24 -06:00
Jeff Walden
7bbe4069c1 Followup to bug 614493 to fix GCC overwarning about 'uninitialized' variables in js_XDRScript. r=warnings
--HG--
extra : rebase_source : ce0062c356524ee14dedf39e67c6aa1880259afb
2010-12-30 16:40:21 -06:00
Dave Herman
496300db44 rs=cdleary: test case showing that bug 591450 is no longer asserting 2010-12-30 15:25:35 -08:00
Bill McCloskey
a7bdde18cb Bug 618422 - Fix MSVC warning in profiler (r=dmandelin) 2010-12-30 14:16:13 -08:00
David Mandelin
340aa6ac81 Bug 617139: extend stack check further to allow for GC during exception generation for too much recursion, r=igor, a=blocker 2010-12-30 13:30:12 -08:00
Tom Schuster
698339e641 Bug 557353 - JM: PIC for object-wrapped string length. r=dvander 2010-12-30 13:25:03 -06:00
Jeff Walden
0db837d47a Bug 622053 - Streamline and greatly clarify Call object PropertyOp getters and setters, for easier reading and more bounds-checking assertions than the none (!) we had before. r=dmandelin 2010-12-29 22:21:18 -06:00
Jeff Walden
1fe4d7a5ad Bug 614493 - Move top-level binding storage (and argument, variable, and upvar counts) out of JSFunction and into js::Bindings, itself stored in JSScript, anticipating the time when strict mode eval scripts will need it. r=brendan 2010-11-16 15:34:24 -08:00
Jeff Walden
c12bc82879 Bug 621376 - new Function.prototype on trace should not define Function.prototype.prototype. r=brendan 2010-12-27 16:24:27 -06:00
Jeff Walden
e083e5490a Update comments on the structure of arguments objects in jsobj.h to account for strict mode arguments. r=commentsonlyfix 2010-12-29 16:45:44 -06:00
Jeff Walden
6107b87ed3 Bug 620335 - TM: "Assertion failure: !argsobj.getPrivate()" leaving the trace JIT in strict mode code when an arguments object has been created. r=luke 2010-12-29 12:54:27 -06:00
Brian Hackett
c0c7d32cf5 Fix breakage from bug 621137 fix. 2010-12-30 06:53:18 -08:00
Brian Hackett
53ee5afaf0 Fix bug 621137, r=njn 2010-12-30 08:41:24 -05:00
Brian Hackett
e1b00baa9b Don't generate INITPROP/INITELEM for singleton constant initializers, bug 577359. 2010-12-30 08:07:43 -05:00
Chris Leary
61b51e6f53 Merge mozilla-central to tracemonkey. 2010-12-30 00:36:53 -05:00
Chris Leary
94a331c6d1 Merge mozilla-central to tracemonkey, part two. 2010-12-29 22:37:11 -05:00
Chris Leary
b83b3feb7f Merge mozilla-central to tracemonkey. 2010-12-29 19:25:04 -05:00
Igor Bukanov
5b27c7fc3f bug 621180 - moving JSThreadData::cachedNativeIterators into the compartment. r=(wmccloskey
--HG--
extra : rebase_source : 460ccf67d3a01e44ab65f1db3b2a38694f3d5411
2010-12-29 20:09:04 +01:00
Brendan Eich
597a7db1de #ifdef DEBUG var used only in assertion to avoid warning. 2010-12-29 11:42:31 -08:00
Brendan Eich
cbc2978341 Incorrect decompilation with non-ASCII property name in destructuring (621814, r=igor). 2010-12-28 18:43:38 -08:00
Brendan Eich
53df60a191 Second followup for 619003, adding the jsreftest needed to cover the bug fixed by the first followup. Some comment tweaks too.
--HG--
rename : js/src/tests/js1_8_5/regress/regress-619003.js => js/src/tests/js1_8_5/regress/regress-619003-1.js
2010-12-29 17:16:46 -08:00
Boris Zbarsky
3a933125ab Bug 621374. Fix denseArrayElement to follow its contract for holes. r=njn 2010-12-29 16:44:47 -08:00
Brendan Eich
4412c87cca Fix bug in patch for 619003 to cure orange. 2010-12-29 14:50:07 -08:00
Brendan Eich
4af8fa5436 Restore append-only fun->u.i.names rule by binding destructured-to vars for destructuring args after binding all args (619003, r=igor). 2010-12-27 15:10:58 -08:00
Tom Schuster
2277d22b46 Bug 616612 - Speed up str.substring and str.substr, r=brendan 2010-12-29 10:22:45 -05:00
timeless@mozdev.org
151fc31280 Bug 620445 - useless null check of prefix in XMLToXMLString, r=brendan 2010-12-20 18:19:00 -08:00
timeless@mozdev.org
2e4a9b2c4c Bug 620420 - jsds_InvalidateAllEphemerals can use a do {} while() loop, r=brendan 2010-12-20 17:12:00 -08:00
Jory A. Pratt
33b17fe070 Bug 621812 - Ensure proper linking when as-needed is passed via LDFLAGS, r=khuey 2010-12-28 19:59:00 -08:00
Bill McCloskey
3fa2373a16 Bug 609212 - Trace loops with > 3 inner loops in profiler (r=dmandelin) 2010-12-28 16:10:24 -08:00
Bill McCloskey
70705625da Bug 621716 - Abort profiling when tracejit flushes (r=dmandelin, a=blocker) 2010-12-28 15:49:26 -08:00
David Mandelin
083298623b Bug 615065: don't optimize to globals where there might be aliasing in the other BindNameToSlot path, r=jwalden 2010-12-28 14:20:42 -08:00
David Mandelin
c824d00000 Bug 620838: propagate aliases-globals flag to inner lexical scopes, r=jwalden 2010-12-28 10:41:22 -08:00
Jeff Walden
68c482c1e0 Require JSFunction::inStrictMode() callers to check for isInterpreted() first, since most already know that the function in question is interpreted. r=dmandelin 2010-12-22 21:06:08 -05:00
Jeff Walden
2219b8779d Bug 620315 - "Assertion failure: unexpected constantly false guard detected" with "use strict", 4 > this. Fix a problem where we weren't marking functions created by |new Function| as accepting a primitive this value when their body was strict mode, by removing the duplicative bit that was being checked. r=dmandelin 2010-12-22 18:05:07 -05:00
Jeff Walden
d45991c529 Bug 610350 - Assigning to a named function's name in strict mode code should throw. r=brendan 2010-11-12 14:33:46 -08:00
Jeff Walden
d8cab89e2a Bug 620130 - Calls to eval with same code + varying strict mode of script containing eval == fail. r=brendan 2010-12-18 14:17:09 -06:00
Jeff Walden
68deadf97f Bug 575535 - ES5 Function.prototype.{apply,call} do not coerce |this| to object. We've done this since the original strict-this patch landed, but we haven't deliberately tested this aspect of {apply,call} -- do so here. r=jorendorff 2010-12-08 11:33:05 -08:00
Jeff Walden
7fca414fdc Fix a null-check typo. rs+coolhand=luke 2010-12-24 18:18:17 -05:00
Jeff Walden
388b986a98 Add tests for bug 600392, which was fixed by a backout in bug 599159. r=testingonlychange 2010-12-22 21:32:02 -05:00