Commit Graph

10333 Commits

Author SHA1 Message Date
Jason Orendorff
efe79f8f4c Bug 583232 - Add rewrapping to jsapi.h. r=gal 2010-08-23 18:14:38 -04:00
David Mandelin
e2926c8916 [JAEGER] Fix build bustage from last merge--missing changes for GCC static asserts 2010-08-23 14:45:24 -07:00
Brian Hackett
5b14eb928e Accessor functions for cx->fp, bug 588978. r=lw 2010-08-23 14:36:40 -07:00
David Mandelin
ef7de3688d [JAEGER] Merge from Tracemonkey.
--HG--
extra : rebase_source : 3a8dcc0855999572e7d32ee1d6468e6729938d65
2010-08-23 14:13:53 -07:00
Robert Sayre
640b1f3097 Bug 587257 - Make Array.prototype.join faster. r=lw 2010-08-23 16:28:36 -04:00
Robert Sayre
b3dc580341 Merge mozilla-central to tracemonkey 2010-08-23 15:08:34 -04:00
Brian Hackett
a4a17593d6 Move cx->fp to cx->regs->fp, bug 588978. r=lw
--HG--
extra : rebase_source : 14a90a53ceeb1f65d0ab70eafb5371095535e66f
2010-08-22 16:00:20 -07:00
David Anderson
02e4fe6352 [JAEGER] Merge. 2010-08-23 17:03:46 -04:00
David Anderson
0b7588f87f [JAEGER] Fixed GETPROP resyncing to the wrong type (bug 589108, r=dmandelin). 2010-08-23 16:56:10 -04:00
David Mandelin
02f201cead [JAEGER] Merge from tracemonkey. 2010-08-23 11:35:14 -07:00
Makoto Kato
3341b53feb [JAEGER] Bug 588267 - Re-land Win64 port. r=dvander 2010-08-23 15:43:43 +09:00
Brian Hackett
53791f1d70 Move cx->fp to cx->regs->fp, bug 588978. r=lw 2010-08-22 16:00:20 -07:00
Bob Clary
e792427e98 bug 588310 - temporarily disable js1_5/extensions/regress-336410-2.js for browser on Windows, r=brendan (NPOTB). 2010-08-22 06:29:06 -07:00
Sean Stangl
2d210ae7a9 [JAEGER] x64: Dedicated Type and Payload Mask Registers. no_r=me. 2010-08-22 00:42:58 -07:00
Luke Wagner
338d890b00 Bug 589340 - factor out / weaken dummy frames (r=mrbkap) 2010-08-21 16:03:07 -07:00
Gregor Wagner
8817352356 Bug 589262 - TM: Move GCStats into separate file. r=igor 2010-08-24 18:57:14 -07:00
David Humphrey
2ef0bdedab Bug 589727 - Typed Float32 Arrays broken on mozilla-central trunk (adding a test only, the bug itself was fixed in bug 586387). r=sayrer. 2010-08-24 17:00:56 -07:00
Nicholas Nethercote
cc2da3908f Update nanojit-import-rev stamp. 2010-08-24 16:48:24 -07:00
Andreas Gal
51d7616d8c Bug 586387 - Problem with Typed Float32 Arrays and canonicalizeNaNs() / LIR_cmovd. r=nnethercote,edwsmith.
--HG--
extra : convert_revision : 2e44b58e0662f140ab49064b26dfbe15d64bc061
2010-08-24 16:31:48 -07:00
Rick Reitmaier
3f7b23a73e Bug 542891 - nanojit X64 backend errors on 64bit conditional jumps (r+nnethercote)
For conditional jumps that are larger than 32bits, invert the
branch logic so that it jumps around an unconditional 64bit
branch to the target.

--HG--
extra : convert_revision : ada7f685d84394abc19d909a021957e25043a722
2010-08-24 14:14:53 -07:00
William Maddox
9db7b3abab Bug 570214 - MIPS variable shift instructions corrupts registers (r=stejohns+)
Remove unnecessary masking of shift count.
Patch submitted by Chris Dearman (chris@mips.com).

--HG--
extra : convert_revision : 8986dba933c63d68c3b0498af53b9cdd6c99c69d
2010-08-24 13:41:15 -07:00
William Maddox
c919e07f05 Bug 587916 - Cleanup of X87 FP stack code (r=nnethercote+)
1) The "register" FST0 is the sole member of the x87regs register
class. In many places, however, the code is written so as to strongly
suggest that there might be multiple such registers. This patch removes
such conceits, replacing expressions such as (rmask(r) & x87regs)
with (r == FST0), etc.

2) prepareResultReg() has been slightly refactored to make the x87
stack fiddling a bit easier to follow and to remove a fragile assumption.

3) Do not pass the "pop" argument to asm_spill() on non-IA32 platforms.

4) Remove redundant normalization of boolean values.

5) Comment the FPU stack depth consistency check.

--HG--
extra : convert_revision : 04a3292575e6af31578914f7f3b9478b5cad2a1c
2010-08-24 11:44:17 -07:00
William Maddox
19f13a44e8 Bug 568737 - Fix incorrect overflow tests generated for MIPS (r=wmaddox+)
Patch submitted by Chris Dearman (chris@mips.com).

--HG--
extra : convert_revision : 69bf0aeb6fda2a5071bbf904d61801e94316000a
2010-08-24 11:30:07 -07:00
Chris Leary
f243aef253 Bug 587346: fix PCRE code length assertion failure. (r=gal) 2010-08-24 14:53:02 -07:00
Chris Leary
e0e2085e45 Bug 587366: regexp failure for flat text replace. (r=lw) 2010-08-24 14:46:19 -07:00
Luke Wagner
bffe91b8df Bug 589318 - guard that eval-in-function frames don't access args (r=brendan) 2010-08-21 15:50:14 -07:00
Jacek Caban
d4c88eb729 Bug 587321 - YARR landing broke mingw compilation r=cdleary 2010-08-21 12:21:24 +02:00
Sean Stangl
6536182186 [JAEGER] More efficient InjectJaegerReturn for x64. no_r=me. 2010-08-20 18:18:12 -07:00
Gregor Wagner
562f617316 Bug 589216 - TM: fix another crossCompartment call in jsapi-tests r=jorendorff 2010-08-20 17:23:47 -07:00
Luke Wagner
376a6f85f4 Bug 588558 - fix FrameRegsIter thinko (r=waldo) 2010-08-20 16:54:58 -07:00
David Mandelin
730233dc21 [JAEGER] Use consistent namespace qualifier on stub call definitions 2010-08-20 15:17:50 -07:00
Jacob Bramley
e5ea36eb1e [JAEGER] Bug 587833 reland part 2: remove VMFrame::scriptedReturn ARM fixes 2010-08-20 13:21:46 -07:00
David Anderson
54be9cdfa6 [JAEGER] Bug 587833 reland part 1: remove VMFrame::scriptedReturn for x86 and x64, r=dmandelin 2010-08-20 13:20:38 -07:00
Jim Blandy
285b03968f Bug 438633: Give new JSScript objects lifetimes like GCThings. r=brendan
Attach script objects immediately in all JSAPI script-creating functions;
have JS_NewScriptObject simply return the already-allocated object; and
make JS_DestroyScript a no-op.

Verify that all scripts given to JSAPI script-consuming functions have
objects, or are the canonical empty script object.
2010-08-20 13:11:05 -07:00
Jim Blandy
16f4c21b3c Bug 585803: Pass TCF_NEED_MUTABLE_SCRIPT when producing scripts returned via JSAPI functions. r=brendan
All scripts produced using JSAPI functions should be able to have
JS_NewScriptObject applied to them. However, JS_CompileFile and
JS_CompileFileHandleForPrincipals fail to pass TCF_NEED_MUTABLE_SCRIPT, and
thus will occasionally return JSScript::emptyScript(); applying
JS_NewScriptObject to that causes a crash.
2010-08-20 13:11:04 -07:00
David Mandelin
67a9ce8c76 [JAEGER] Merge from tracemonkey. 2010-08-20 11:34:59 -07:00
Robert Sayre
d598acd055 Merge mozilla-central to tracemonkey. 2010-08-20 10:04:58 -04:00
Leon Sha
31b5560186 Fix the bustage on windows. Bug 587962. 2010-08-20 20:56:45 +08:00
Leon Sha
a50abcb41c Bug 587962 - [JAEGER] JaegerMonkey build and check failed on Solaris x86 with Sun Studio 12. r=dvander 2010-08-20 01:09:34 -07:00
Luke Wagner
bff8e4e9d4 Bug 589015 - js_watch_set doesn't need that crazy dummy frame (r=mrbkap) 2010-08-19 18:02:17 -07:00
David Mandelin
b3d6402311 [JAEGER] Merge from tracemonkey. 2010-08-19 17:30:22 -07:00
David Mandelin
169803d2d3 [JAEGER] Merge from tracemonkey. 2010-08-19 17:30:04 -07:00
Nicholas Nethercote
4aa312b6f5 merge 2010-08-19 16:46:27 -07:00
Brian Hackett
2aeb294c19 Interface for JSStackFrame.argc, bug 586533. r=lw 2010-08-19 16:44:12 -07:00
David Mandelin
b89502a7d9 [JAEGER] Backout merge. 2010-08-19 16:27:04 -07:00
David Mandelin
2cbc07739b [JAEGER] Backed out changeset 04bc789f7a43: trace-test failures 2010-08-19 16:26:50 -07:00
David Mandelin
84bf63c699 [JAEGER] Backout merge. 2010-08-19 16:26:17 -07:00
David Mandelin
ea6820c89f [JAEGER] Backed out changeset b88bab8e77c5: prerequisite to backing out 04bc789f7a43 2010-08-19 16:25:54 -07:00
Nicholas Nethercote
efa83280f0 Update nanojit-import-rev stamp. 2010-08-19 16:22:30 -07:00
David Mandelin
8c04657d38 [JAEGER] Minor merge from TM to pick up a small perf boost and see if we can cycle TBPL into actually working again 2010-08-19 16:05:06 -07:00
Bill McCloskey
5113963733 Bug 564548: faster special cases for Math.pow, r=gal 2010-08-19 14:17:56 -07:00
Edwin Smith
8a316147b9 Bug 584935 - Speed up register iteration loops by using BSF instruction (r=nnethercote+)
Changed all the register iteration loops to use lsbSet/msbSet functions
that use fast find-first-bit intrinsics when available.  Typical loops of
the form:

  for (Register r = FirstReg; r <= LastReg; r = nextReg(r))
    if (predicate(r))
	  /* use r */

were transformed by replacing the per-iteration predicate with a single
mask calculation, then iterating through only the 1 bits in the mask:

  RegisterMask set = /* calculate predicate with bitmask ops */;
  for (Register r = lsReg(set); set; r = lsNextReg(set))
    /* use r */

Iteration can be low-to-hi with lsReg/lsNextReg, or hi-to-low with msReg/msNextReg.
Primitives are provided for 32 and 64-bit masks.  PPC and MIPS need a 64-bit
mask, for example, even on 32-bit systems.

Refactoring details:

I renamed msbSet() to msbSet32() as part of adding [msb|lsb]Set[32|64], which
affected the AccSet code trivially.

I used if (sizeof(RegisterMask) == 4) to choose between 32 and 64bit
implementations, counting on a sane compiler to strip out the provably dead
path. An alternative would be to move the definitions of lsReg() and msReg() to
NativeXXX.h, after the RegisterMask typedef, allowing backends to hardcode the
choice.  Given we have six backends and one more on the way, it seemed better
to centralize the code and also avoid more ifdefs.

I moved the definitions of msbSet/lsbSet to nanojit.h, where other such helpers
already live.  It didn't seem appropriate to keep adding to LIR.h since the
helpers will now be used in several places in nanojit.

RegAlloc::managed is now set in Assembler.cpp instead of each backend; six
lines of code replaced by one.

prevreg() was dead after these changes.  Additionally, I hand-inlined nextreg()
in the other backends, because the usage was highly specialized -- those call
sites depended on nextreg being reg+1, (or reg+2) not some generic iteration.

I removed RegAlloc::countActive() since the only case was testing countActive()
== 0, which is equivalent to activeMask() == 0.

--HG--
extra : convert_revision : c7009f5cd83ea028b98f59e1f8830a76ba27c1dd
2010-08-19 16:04:19 -04:00
David Mandelin
ef74a0554c [JAEGER] Modify comment to get a clobber build. 2010-08-19 12:59:15 -07:00
David Mandelin
ee50e410ee [JAEGER] Merge. 2010-08-19 11:12:06 -07:00
David Mandelin
a21c621577 Merge from Tracemonkey. 2010-08-19 11:11:36 -07:00
Robert Sayre
b54b2278b9 Merge from mozilla-central 2010-08-19 13:50:37 -04:00
Jacob Bramley
02992c666a [JAEGER] Fixed ARM port of bug 587833 (r=dvander). 2010-08-19 13:34:09 -04:00
David Anderson
d1f08da7e5 [JAEGER] Remove VMFrame::scriptedReturn (bug 587833, r=dmandelin). 2010-08-19 13:34:06 -04:00
Robert Sayre
43c1350df6 Merge mozilla-central to tracemonkey. 2010-08-19 11:18:37 -04:00
Axel Hecht
919cdfddf9 bug 559961, explicitly abspath optimizejars.py, js, too, r=khuey, a=bustage-fix 2010-08-19 16:46:38 +02:00
Ginn Chen
2f1a5f7820 Bug 584219 should use "signed bit" for signed bit-field r=nnethercote
--HG--
extra : convert_revision : 2f6b1e2a50de2df8f78b98b4c725d5a9897e9c4b
2010-08-19 16:08:53 +08:00
Ginn Chen
d074752fb6 Bug 585559 Fix alignment for length2StringTable and hundredStringTable with Sun Studio r=lw 2010-08-19 15:58:52 +08:00
Nicholas Nethercote
81306351a8 Bug 585866 - Avoid unnecessary calls to YearFromTime(). r=jwalden. 2010-08-18 19:44:28 -07:00
Chris Leary
f3a2844e1b [JAEGER] Bug 587809 pre-landing: land tracer changes for eager this so we can see what it does with X64 on tinderbox 2010-08-18 18:17:30 -07:00
Makoto Kato
669157a9d9 Bug 588273 - Yarr is broken on Win64 ABI. r=dvander 2010-08-19 10:09:22 +09:00
Robert Sayre
912eca98af Merge 2010-08-18 17:48:32 -04:00
Robert Sayre
4b71b9d106 Merge 2010-08-18 17:22:08 -04:00
Gregor Wagner
77d8fcb9e6 Bug 572057 - TM: remove weak roots (pigeon hole) r=igor 2010-08-18 12:46:47 -07:00
David Mandelin
8d433fbba7 [JAEGER] Merge from tracemonkey. 2010-08-18 11:03:53 -07:00
Brian Hackett
a38bc3011a Assert fix, bug 588339. r=brendan 2010-08-18 11:03:22 -07:00
Jacob Bramley
6d1fca8be3 [JAEGER] Enable MICs for ARM. [Bug 588020] [r=dvander] 2010-08-18 10:38:50 +01:00
David Mandelin
9f4c9deb88 [JAEGER] Merge from tracemonkey. This should fix the Xd regression picked up in the last merge. 2010-08-17 18:45:30 -07:00
Nicholas Nethercote
fa2a2f97f3 Bug 584595 - TM: speed up scanning three ways. r=cdleary. 2010-08-17 18:01:23 -07:00
Jeff Walden
7873aa2eba Oops, forgot to qref before removing this line of whitespace. r=style-police 2010-08-17 16:55:01 -07:00
Luke Wagner
9ba4a19761 Silence warnings / remove dead code (r=me) 2010-08-17 15:59:28 -07:00
David Mandelin
b3d148d838 [JAEGER] Merge from tracemonkey. This picks up the test fix mentioned in the previous commit comment. 2010-08-17 15:33:07 -07:00
Luke Wagner
548bac6b74 Fix testReconstructImacroPCStack.js to not assume tracing-jit 2010-08-17 15:32:47 -07:00
David Mandelin
d32d792513 [JAEGER] Merge from tracemonkey. Note that we will currently fail one trace test that was recently added. There is a bug in that test that will be fixed posthaste. 2010-08-17 15:32:40 -07:00
Sean Stangl
75b06fdd12 [JAEGER] Correct load32() usage; prefer loadShape(). no_r=me. 2010-08-17 14:36:04 -07:00
Jan de Mooij
fad149144a [JAEGER] Correctly remat objReg in GetProp PIC. b=587119, r=sstangl. 2010-08-17 13:52:26 -07:00
Jacob Bramley
d09759c622 [JAEGER] Fix ARM's long-range loads. [No bug] [r=me] 2010-08-17 15:19:31 +01:00
Leon Sha
01b2f48910 Bug 585926 - check-math-partial-sums.js failed with JIT on SPARC. r=wmaddox
--HG--
extra : convert_revision : eceee95267377daa09d5951f6293db752a1b9f77
2010-08-17 16:02:46 +08:00
David Mandelin
3379e781d1 [JAEGER] Merge fallout: move static asserts that break with rval private 2010-08-16 16:23:05 -07:00
David Mandelin
e67c2b7441 [JAEGER] Merge from Tracemonkey. 2010-08-16 15:58:14 -07:00
David Mandelin
f32df484f3 [JAEGER] Finish merge from Tracemonkey. 2010-08-16 15:57:19 -07:00
David Mandelin
6f19cd8199 [JAEGER] Merge from Tracemonkey part 1: don't change visibility of JSStackFrame members yet 2010-08-16 15:37:15 -07:00
David Mandelin
c0001dbe3b [JAEGER] Merge from Tracemonkey. 2010-08-16 15:31:14 -07:00
Michael Wu
a88c2a698d Bug 587597 - Fix ARM/Mobile bustage by building Yarr. Contains Jacob Bramley's load8 fix. r=sayrer a=blocking-fennec 2010-08-16 15:18:10 -07:00
David Mandelin
23b88d71bd [JAEGER] Finish merge from Tracemonkey. 2010-08-16 15:16:24 -07:00
David Mandelin
0a8cb3e43f [JAEGER] Merge from Tracemonkey part 1: don't change visibility of JSStackFrame members yet 2010-08-16 15:10:41 -07:00
David Mandelin
3af2b18345 [JAEGER] Followup for merge from Tracemonkey: update JSStackFrame API usage in JM code 2010-08-16 15:07:28 -07:00
David Mandelin
066c9f1718 [JAEGER] Merge from Tracemonkey. scopeChain and blockChain are still public so I can check one thing at a time--this merge is brutal. 2010-08-16 14:59:44 -07:00
Andreas Gal
f6f96b56f0 Bug 586531 - Make jsapi-tests not use the default compartment by default. r=jorendorff. 2010-08-16 16:42:50 -05:00
David Mandelin
7f4571bf6a [JAEGER] Merge from Tracemonkey. 2010-08-16 14:20:34 -07:00
Jim Blandy
4301b4bb0b Bug 522158: Avoid extra warning for duplicated prop names in object initializers. r=waldo 2010-08-16 13:05:33 -07:00
David Anderson
f585a9f20d Disable recursion for heavyweight functions (bug 583757, r=jorendorff). 2010-08-16 13:37:47 -04:00
Edwin Smith
4cc6394b17 Suppress warnings in NativePPC.cpp
--HG--
extra : convert_revision : 6c8156188b29cdfff217f2f2e658918e55da2dda
2010-08-16 12:36:44 -04:00
Jan de Mooij
b0afe0253c [JAEGER] Check for negative zero after MUL (bug 584770, r=dvander). 2010-08-16 11:16:47 -04:00
Jason Orendorff
25268597de Test for bug 584578.
--HG--
extra : rebase_source : 82a5fa5ac198a9792f2540fea7cbbe7962fc4faf
2010-08-16 09:29:14 -05:00
Jacob Bramley
becdbf3574 [JAEGER] Fix ARM's load8 implementation and enable YARR for ARM. [Bug 564953] [r=me] 2010-08-16 13:20:32 +01:00
Jacob Bramley
bcd9f334be [JAEGER] Update the ARM VMFrame code to re-align with changes in d7b81bd995c3. [Bug 586886] [r=me] 2010-08-16 13:02:01 +01:00
Nicholas Nethercote
62658f05e8 Bug 585839 - JM: reorder StubEqualityOp() to account for common cases. r=dvander. 2010-08-15 17:00:09 -07:00
David Anderson
3ba9b2160f [JAEGER] Fixed assert-botch in tracer integration (bug 587431). 2010-08-15 14:40:13 -07:00
Brian Hackett
ed4defc8b5 Add interface for JSStackFrame.fun/script/thisv/rval, bug 586533. r=lw 2010-08-15 08:44:51 -04:00
Chris Leary
b725adffe8 Bug 586358: make imacpc flagged. (r=lw) 2010-08-15 04:16:54 -07:00
Sean Stangl
8df1d3b34b [JAEGER] Implement Travis Fisher's xor-based loadValueAsComponents(). b=586240, r=dvander.
Thanks to Travis Fisher <traviswfisher@gmail.com>.
2010-08-14 18:07:00 -07:00
Chris Leary
2d26e0cfc8 [Bug 587183] TM merge broke android in Nitro. r=sayrer. 2010-08-14 16:46:37 -07:00
Makoto Kato
d12e22150a Bug 586887 - bustage on TM tree of Win64 build due to no TrampolineMasmX64.asm. r=dvander 2010-08-18 11:29:04 +09:00
Brian Hackett
03a7ed6a9d Add interface for JSStackFrame.annotation/debugHook/callerVersion, bug 586533. r=lw 2010-08-14 11:59:44 -04:00
Mike Hommey
ec9c159829 Bug 586262 - Get rid of blx_lr_bug. r=jbramley,edwsmith
--HG--
extra : convert_revision : 9e1146b15442cde750da5a8edb486a1ffbfda368
2010-08-14 10:09:11 +02:00
Chris Leary
30febd737e Try to fix intermittent refcount assertions in the presence of more than one thread. Bug 587277 - TM: ExecutablePool release race. r=sayrer 2010-08-14 00:34:14 -07:00
Brian Hackett
da6f70519b Second try at adding interface for JSStackFrame.scopeChain/blockChain, bug 586533. r=lw 2010-08-13 23:36:37 -04:00
Sean Stangl
1172060dd0 [JAEGER] Assert MIC, PIC dynamic offset correctness. b=587224, r=dvander. 2010-08-13 18:06:39 -07:00
David Anderson
94c77b4166 [JAEGER] Fixed assert-botch from bug 586886.
--HG--
extra : rebase_source : 51c498d3174ac7778930dfa07984e0f87e316152
2010-08-13 17:43:50 -07:00
David Mandelin
0b41c441e5 [JAEGER] Bug 587224: make offset members big enough to handle big stubs, no_r=me 2010-08-13 17:27:36 -07:00
David Anderson
7e9b41be71 [JAEGER] Fixed bugs in commit bumping (bug 586886 fallout). 2010-08-13 15:27:33 -07:00
Andreas Gal
1084347139 b=586387; Problem with Typed Float32 Arrays and canonicalizeNaNs() / LIR_cmovd; r=nnethercote/edwsmith 2010-08-13 14:57:50 -07:00
David Anderson
28704289d9 [JAEGER] Combine over-recursion and stack commit checks (bug 586886). 2010-08-13 14:22:18 -07:00
David Mandelin
5c039fb714 [JAEGER] Bug 586538 followup: the original fix was accidentally backed out by 91257f67ea38, so restoring it. 2010-08-13 14:10:43 -07:00
Chris Leary
148bbf7986 Unleak regexp arena. Bug 586898 - JM: memory leak due to YARR. r=sayrer 2010-08-13 12:09:44 -07:00
David Mandelin
a8a454c883 [JAEGER] Merge from tracemonkey. 2010-08-13 12:01:02 -07:00
Jeff Walden
e5fd6c565c Bug 429507 - Tests for Function.prototype.bind. r=luke 2010-08-13 10:42:33 -07:00
Jeff Walden
765b61e1cb Bug 429507 - ES5: Function.prototype.bind. r=brendan 2010-08-13 10:42:33 -07:00
Shu-yu Guo
696a6af262 Bug 590750 - Parse regexps inside array initializers. (r=taustin) 2010-08-25 17:08:30 -07:00
Nicholas Nethercote
5d51c58e3d Fix typo in comment for patch in bug 578216. r=me. 2010-08-25 15:50:32 -07:00
Luke Wagner
c69809f6f6 Bug 589340, part 2 - pick up straggler in JSCrossCompartmentWrapper (r=mrbkap)
--HG--
extra : rebase_source : c5dfb92746dda2ae2acfc469a031cb3a735c8245
2010-08-25 14:34:47 -07:00
Gregor Wagner
92079ec405 Bug 590519 - Compile failure on ARM - "'rdtsc' was not declared in this scope" (r=arm-bustage) 2010-08-25 12:07:37 -07:00
Jeff Walden
e1c811e568 Bug 584811 - Date.prototype.toJSON isn't to spec. r=sayrer 2010-08-13 10:42:31 -07:00
Jason Orendorff
37d79b0719 Merge backout. 2010-08-13 08:24:40 -05:00
Jason Orendorff
8a568c9133 Backed out changeset c5e31473b1a6 (assertions for bug 583850). See bug 584578 and bug 585754. 2010-08-13 08:21:13 -05:00
Jason Orendorff
2ca54c3e0e Bug 585257 - "Assertion failure: obj == obj2". r=gal. 2010-08-13 08:17:29 -05:00
Robert Sayre
d91fb6ccdc Merge tracemonkey to mozilla-central. a=blockers 2010-08-28 10:50:34 -04:00
Dão Gottwald
abf1b55a37 Bug 591387 - Default theme shows as "incompatible" (version number wrapped with quotes). r=khuey a=blocking 2010-08-28 15:32:07 +02:00
Robert Sayre
a3b6c5a908 merge 2010-08-27 22:25:03 -04:00
Robert Sayre
e5da7a11b5 merge mozilla-central to tracemonkey. 2010-08-27 22:24:14 -04:00
Brian Hackett
d4b43f3df0 Fix crash on nested Iterator iteration, bug 590813. r=gal 2010-08-27 11:07:18 -07:00
Boris Zbarsky
6944d7713c Bug 590179. Use -fomit-frame-pointer when building opt builds on mac. r=ted, a=beltzner 2010-08-27 14:19:45 -07:00
Bobby Holley
83d399742e Backed out changeset a6c18a123fbb due to everything-on-mac-bustage. a=backout 2010-08-27 09:00:54 -07:00
Boris Zbarsky
f5f1e156fe Bug 590179. Use -fomit-frame-pointer when building opt builds on mac. r=ted a=beltzner 2010-08-26 21:33:00 -04:00
Dão Gottwald
ff02b582e2 Bug 581008 - Remove support for appending arbitrary data to the User Agent string. r=jst,khuey sr=dveditz 2010-08-27 09:02:10 +02:00
Joel Maher
b61eda4b1d Bug 586754 Xpcshell tests should use relativesrcdir instead of $MODULE (android prepartion) r=mitchell.field a=NPOTB 2010-08-26 14:47:28 -07:00
Makoto Kato
ced4f79163 Bug 582910 - change stack size of xpcshell to 2MB on Win64. r=dbaron, a=dbaron 2010-08-23 15:09:27 +09:00
Bobby Holley
8d69ad0207 Bug 513681 - part 2 - remove support for the MOZ_IMG_DECODERS build option.r=joe,khuey.a=blocker 2010-08-22 22:30:45 -04:00
Ted Mielczarek ext:(%20and%20Karl%20Tomlinson%20%3Ckarlt%2B%40karlt.net%3E)
da86351679 Add a GDK/X11 screenshot to png utility b=414049 r=dbaron a=npotb
--HG--
extra : rebase_source : c73326cce47805fd5ce7cda7b8e51b5dda1e39a7
2010-08-23 12:11:43 +12:00
David Anderson
652df661b5 [JAEGER] Merge backout. 2010-08-13 02:23:22 -07:00
David Anderson
e36d4de961 Backed out changeset c0061c6b65b4 (3% perf regression on v8). 2010-08-13 02:22:39 -07:00
David Anderson
2c5c7bc631 [JAEGER] Merge. 2010-08-13 02:22:03 -07:00
David Anderson
60b819690f Backed out changeset 8f45cad0a405. 2010-08-13 02:21:46 -07:00
Sean Stangl
4b7c28362b [JAEGER] Remove unnecessary padding from JSStackFrame, VMFrame. b=586880, r=dvander. 2010-08-13 00:57:14 -07:00
Sean Stangl
88ac406123 [JAEGER] Add standard header boilerplate to assembler/. no_r=me. 2010-08-12 22:17:41 -07:00
Alex Miller
2b52da7be8 [JAEGER] Implement SSE4.2 check. r=sstangl. 2010-08-12 22:05:57 -07:00
Robert Sayre
a00d7f60fe Backed out changeset 1406935fced4. Brian Hackett – Put JSStackFrame.scopeChain/blockChain behind an interface, bug 586533. r=lw. 2010-08-12 21:47:46 -07:00
Alex Miller
f243e896b6 [JAEGER] Use SSE4.1 when available to load doubles faster. b=582785, r=dvander. 2010-08-12 21:43:39 -07:00
David Anderson
0a32a5b9f7 [JAEGER] Attempt at PPC bustage fix. 2010-08-12 21:42:49 -07:00
Brian Hackett
a416b05f95 Put JSStackFrame.scopeChain/blockChain behind an interface, bug 586533. r=lw 2010-08-13 00:08:37 -04:00
Andrew Drake
b4d2bc35d6 [JAEGER] Add support for throw hook. r=dvander, b=586107 2010-08-12 18:57:06 -07:00
Chris Leary
58398dc6a8 Bug 586827: fix bad regexp arena behavior. (r=apierce)
--HG--
extra : rebase_source : 12997990f1015f961539c7b8b8e028a83d1fc5d2
2010-08-12 18:55:26 -07:00
Jason Orendorff
0a72eec1c8 Bug 584648 - Assertion failure: !entry->key.obj && entry->flags == 0. r=brendan. 2010-08-12 21:00:45 -05:00
David Anderson
c7a2157fc9 [JAEGER] Fixed warning in MonoIC.cpp. 2010-08-12 17:58:37 -07:00
Sean Stangl
80f36226d2 [JAEGER] 32-bit MIC shape comparisons. b=586781, r=dvander. 2010-08-12 17:56:25 -07:00
David Anderson
a57d28382a [JAEGER] Fixed think-o in jsop_name(). 2010-08-12 17:06:15 -07:00
David Anderson
6f24fc0c7f [JAEGER] Fixed more linkExit() fail (bug 586538). 2010-08-12 17:03:11 -07:00
Tom Austin
f52b80ff3b Bug 580882. Update to allow Narcissus to work within a browser. r=gal. 2010-08-12 17:00:12 -07:00
Sean Stangl
03963cf4ff [JAEGER] Implement PurgeMICs. b=584182, r=dvander. 2010-08-12 16:58:43 -07:00
Brian Hackett
b6fa83e115 Put JSStackFrame.callobj/argsobj behind an interface, bug 586533. r=lw 2010-08-12 18:46:03 -04:00
Brian Hackett
466e80d99b [JAEGER] Second try at start/end iterator fast paths, bug 578756. r=dmandelin, dvander, gal 2010-08-12 17:26:07 -04:00
Jim Blandy
4e04561ee9 Revert fixes for bug 438633, bug 585803 2010-08-12 14:07:52 -07:00
Jim Blandy
ce4b4e5c9e Bug 438633: Give new JSScript objects lifetimes like GCThings. r=brendan
Attach script objects immediately in all JSAPI script-creating functions;
have JS_NewScriptObject simply return the already-allocated object; and
make JS_DestroyScript a no-op.

Verify that all scripts given to JSAPI script-consuming functions have
objects, or are the canonical empty script object.
2010-08-12 12:38:37 -07:00
Jim Blandy
087a52be00 Bug 585803: Pass TCF_NEED_MUTABLE_SCRIPT when producing scripts returned via JSAPI functions. r=brendan
All scripts produced using JSAPI functions should be able to have
JS_NewScriptObject applied to them. However, JS_CompileFile and
JS_CompileFileHandleForPrincipals fail to pass TCF_NEED_MUTABLE_SCRIPT, and
thus will occasionally return JSScript::emptyScript(); applying
JS_NewScriptObject to that causes a crash.
2010-08-12 12:38:37 -07:00
Benedict Hsieh
f0f5cb9f08 bug 520309, startupcache client mozJSComponentLoader, r=dwitte a=bsmedberg 2010-08-12 12:37:52 -07:00
Dan Witte
f2000be3eb Merge. 2010-08-23 17:30:33 -07:00
Dan Witte
5f4dbe5953 Bug 536324 - e10s HTTP: refactor nsHashPropertyBag. Part 3: contentLength consumers. r=jduell, a=beta5+ 2010-08-21 00:31:35 -07:00
David Anderson
6c40dd232c [JAEGER] Fixed MonoIC regression from bug 586544. 2010-08-12 11:59:06 -07:00
David Anderson
0bbf7a68b3 [JAEGER] Sync both halves of constant undefined payloads (bug 586544).
--HG--
extra : rebase_source : f9643a32b74b5b7a91950815ac1a1419015705ca
2010-08-12 11:39:22 -07:00
David Mandelin
0f9af001af [JAEGER] Merge. 2010-08-12 11:42:35 -07:00
David Mandelin
9376a78c81 [JAEGER] Merge from Tracemonkey. This picks up Yarr. 2010-08-12 11:42:16 -07:00
Jacob Bramley
708bcc9869 Bug 586600: non-default sprop getter fix in stub call. (r=cdleary,sstangl) 2010-08-12 11:26:46 -07:00
Chris Leary
58d6d3b1aa Missing test for bug 586499. (no_r=me) 2010-08-12 10:26:01 -07:00
Robert Sayre
ff3fd8aeaf Merge mozilla-central to tracemonkey. 2010-08-12 10:12:04 -07:00
Chris Leary
f8f61e5ea2 Forgotten OP_BRAZERO len addition. Fixes Bug 586499 - TM: Yarr mochitest failure browser_plainTextLinks.js. r=gal 2010-08-12 09:08:48 -07:00
Robert Sayre
01009427f4 Try to fix Maemo 4 again again again. 2010-08-12 07:34:47 -07:00
Robert Sayre
a3c5a52a65 Try to fix Maemo 4 again again again. 2010-08-12 07:22:32 -07:00
Igor Bukanov
5b9726fc8e bug 477999 - JS_SuspendRequest should suspend requests from all contexts. r=anygregor,gal
--HG--
extra : rebase_source : 593bcd06380a6d6ade3da1ffed11eeb18b43cdfd
2010-08-12 15:02:51 +02:00
Jacob Bramley
a268e44d2c [JAEGER] Fix broken logic from my previous patch (c5754250e813). [Bug 585918] [r=me] 2010-08-12 13:54:26 +01:00
Mike Hommey
7543a4e737 Bug 586625 - Fix ARM verbose assembly output for BLX. r=jbramley
--HG--
extra : convert_revision : c85f9265a76b8914139ef34bad7d93e1f7b47786
2010-08-12 14:47:58 +02:00
Paul Biggar
abc945b545 Bug 584355: Don't use parent as a proto for a new function. r=brendan 2010-08-12 13:07:20 +01:00
David Anderson
86b6472243 [JAEGER] Fixed regression in bug 583692 that disabled scope ICs. 2010-08-12 02:42:51 -07:00
Andrew Drake
cbd7bb3275 [JAEGER] Correct parameter register for debugger keyword in compiler. r=dvander 2010-08-12 02:04:37 -07:00
Andrew Drake
16edddbf68 [JAEGER] Add support for debugger keyword. r=dvander, b=586105 2010-08-12 02:01:45 -07:00
Mike Hommey
8d86e167eb Bug 586224 - Use clz on android even for armv5 target. r=jbramley
--HG--
extra : convert_revision : 5a56d9f0b2d6170442b51c111b7050aa8c795bc8
2010-08-12 10:14:50 +02:00
Mike Hommey
c6b2a7baa2 Bug 586303 - Fix lirasm test string creation. r=jbramley
--HG--
extra : rebase_source : c79890b778d16ef9b28e9cbfd0139dc03e97a525
extra : convert_revision : f7ae2958e265c6c9e5ee2588ba8c24b5365cc5cf
2010-08-12 10:10:24 +02:00
Andrew Drake
100405bf57 [JAEGER] Fix even more tests regressed by debug mode. r=dvander 2010-08-12 00:53:40 -07:00
Jeff Walden
78b50ef7f3 Bug 516255 - Fix attributes on arguments[i]: index properties on arguments should be enumerable, configurable, and writable. r=dmandelin 2010-08-11 23:27:40 -07:00
Jeff Walden
d5c4a25d9e Bug 516255 - Tests for arguments object functionality inside and outside of strict mode. r=dmandelin 2010-08-11 23:27:37 -07:00
Jeff Walden
24f0559035 Bug 516255 - Eagerly copy initial parameter values into the arguments object when a function's parameters might be mutated, and rely on normal resolution behavior in the remaining cases when parameters are never modified. r=dmandelin 2010-08-11 23:27:33 -07:00
Jeff Walden
b87fb56e06 Bug 516255 - Start analyzing named-parameter assignments in strict mode functions to determine when to eagerly create an arguments object and when creation can be deferred. r=dmandelin 2010-08-11 23:27:03 -07:00
Jeff Walden
88db90ddd5 Bug 516255 - Use different classes for arguments objects created inside and outside strict mode code, with slightly different ops, in preparation for implementing strict mode arguments objects' less magical functionality. r=dmandelin 2010-08-11 23:26:59 -07:00
Robert Sayre
9c2828628c Try to fix Maemo 4 again again. 2010-08-11 21:02:09 -07:00
Robert Sayre
0b7340eabd Try to fix Maemo 4 again 2010-08-11 21:01:30 -07:00
Ehren Metcalfe
0d71672eb0 Bug 578235 - Port jsstack.js to Dehydra with GCC 4.5 r=taras, a=test-only 2010-08-18 18:06:17 -07:00
Ehren Metcalfe
20f9e7eb23 Bug 575720 - static checking suite: use Dehydra multiple-arg support + fix method signature comparison in several scripts r=taras 2010-08-18 18:06:05 -07:00
Kyle Huey
ca4b9a3d8e Sync config/ and js/src/config/ a=me 2010-08-18 18:40:18 -04:00
Robert Sayre
4acde97712 Try to fix Maemo 4 build. 2010-08-11 17:46:06 -07:00
Luke Wagner
1389741508 Bug 585824 - set vp[1] in TraceRecorder::callNative (r=gal,dvander) 2010-08-11 17:32:11 -07:00
William Maddox
e30e9b3a06 Bug 583413 - Handle platform-dependent field width for %p format in asm_output (r=edwsmith+)
--HG--
extra : convert_revision : f71bf755846459dccf10e7c28aaa5cd2b652b077
2010-08-11 16:31:55 -07:00
Chris Leary
76e8033f0e ARM and PCRE build fixes. (r=red) 2010-08-11 16:00:58 -07:00
Robert Sayre
3479a7bbbf Fix bustage on Mac PPC. 2010-08-11 15:44:32 -07:00
Chris Leary
8d2b390f05 Forgotten jswin.h file. (r=red) 2010-08-11 14:59:19 -07:00
Chris Leary
e0ace5bc86 Bug 564953: Port YARR! Lands macroassembler. (r=gal) 2010-08-11 13:30:07 -07:00
Brian Hackett
16873a1fb8 Bug 579471 - fast constructors (r=dmandelin,lw) 2010-08-10 16:38:08 -07:00
Alex Miller
88abfff302 Bug 584929: Add v8-v5 to trace-tests and check for correctness. r=sayrer 2010-08-10 20:12:14 -07:00
Blake Kaplan
bbbfee476a Fix bustage from bug 577750 2010-08-10 18:46:42 -07:00
Andrew Drake
c7dbe5a681 Bug 584882: Don't attempt to compute this for dummy frames. r=jorendorff 2010-08-10 17:21:11 -07:00
Robert Sayre
4aa91b82ce Merge merge. 2010-08-10 17:00:09 -07:00
Ginn Chen
16585a758c Bug 584219 Fix the use of sPayloadOffset for big endian machine r=lw 2010-08-11 06:53:03 +08:00
Robert Sayre
fc8cf1e11d Merge mozilla-central to tracemonkey. 2010-08-10 15:41:49 -07:00
Edwin Smith
a75afd1a6f Fixed uninitialized reads in CSE hashtables from bug 584275 (r=gal+)
--HG--
extra : convert_revision : a7e61d3eb7ca69b0b267937080f0e7456a7c0a96
2010-08-10 15:35:41 -04:00
Luke Wagner
562fc49870 Bug 539144 - Make formal args a jit-time const offset from fp; rm argv/argc/thisv/script/callobj (r=brendan,dvander) 2010-08-09 22:43:33 -07:00
Jeff Walden
a8738dbbb2 Bug 584909 - Properly handle JSON.stringify(_1, _2, numberGreaterThanOne). Also output a space between ':' and property value when serializing object properties, if the gap specified is non-empty. r=sayrer
--HG--
extra : rebase_source : b4868a4a96d1ac89f389b47c0258d68e74e590a9
2010-08-09 16:39:19 -07:00
Jeff Walden
8ccd9fbe20 Bug 584909 - Use AutoIdVector/GetPropertyNames rather than AutoIdArray/JS_Enumerate to avoid unnecessary work and use cleaner APIs. r=sayrer
--HG--
extra : rebase_source : a8711da0c9423f9754a5ca01a2b7b3a26365cc9c
2010-08-09 16:39:19 -07:00
Werner Sharp (wsharp@adobe.com)
d00b1ec4cb bug 495995 - nanojit-central part of VTUNE support for TR
--HG--
extra : convert_revision : 602fdcb7288454f85fe81d401559b7c1639a41e6
2010-08-06 14:18:43 -04:00
Kyle Huey
e9bf267127 Merging backout. a=orange 2010-08-22 10:14:24 -04:00
Kyle Huey
c5800700be Backing out Bug 513681 and Bug 587371 for timeouts. 2010-08-22 10:13:09 -04:00
Edmund Wong
6154f90e82 Bug 546174 - Remove remnant MOZ_PROFILE_MODULES r=ted.mielczarek a=gavin.sharp 2010-08-22 15:01:56 +02:00
Bobby Holley
9de0c252df Bug 513681 - part 2 - remove support for the MOZ_IMG_DECODERS build option.r=joe,khuey.a=blocker 2010-08-11 20:12:24 -04:00
Bob Clary
fd0a6ebf6b Bug 588310 - temporarily disable js1_5/extensions/regress-336410-2.js for browser on Windows, r=brendan, a=test 2010-08-21 13:06:00 -07:00
Andrew Drake
87b879b80c [JAEGER] Fix trapflatclosure.js test. r=dvander, b=582409 2010-08-05 17:35:04 -07:00
Andrew Drake
20a9e349d1 [JAEGER] Fix tests regressed by debug mode. r=dvander 2010-08-12 00:08:30 -07:00
Andrew Drake
bc97d0240e [JAEGER] Add debug mode, and with it EvaluateInFrame. r=dvander, b=578154 2010-08-05 17:15:49 -07:00
Sean Stangl
c65f57164a [JAEGER] Remove unused 'recursive' variable in jsinterp.cpp. no_r=me. 2010-08-11 20:21:58 -07:00
Sean Stangl
cd2189af75 [JAEGER] Remove unused syncAllRegs(). no_r=me. 2010-08-11 19:33:28 -07:00
David Anderson
7557b64037 [JAEGER] Paper over unsynced undefineds in StrictlyEqual (bug 585220). 2010-08-11 18:59:42 -07:00
Sean Stangl
2cb41f7686 [JAEGER] Mimic GCC output for loadValueAsComponents(). b=586240, r=dvander. 2010-08-11 16:55:32 -07:00
Sean Stangl
411137012a [JAEGER] Better x64 Value loading. b=586240, r=dvander. 2010-08-11 13:45:57 -07:00
David Mandelin
a5e8e278f4 [JAEGER] Merge from tracemonkey. 2010-08-11 11:36:32 -07:00
David Mandelin
acfc0bc281 [JAEGER] Merge from tracemonkey. 2010-08-11 11:30:10 -07:00
David Mandelin
17a258c673 [JAEGER] Merge from tracemonkey. 2010-08-11 11:23:29 -07:00
David Mandelin
4b7d4e43d2 [JAEGER] Merge from tracemonkey. 2010-08-11 11:05:24 -07:00
Jacob Bramley
e4578e68a1 [JAEGER] Disable optimization of far branches to 'B' on ARM for now, as the branch patcher can't handle it. [No bug] [r=me] 2010-08-11 17:04:22 +01:00
Jacob Bramley
fc7096bbbe [JAEGER] Implement branchTruncateDoubleToInt32 for ARM. [Bug 585918] [r=dmandelin] 2010-08-11 15:23:22 +01:00
Andrew Drake
ebfb6d0eca Backed out changeset a8aeff259925 and fix due to random crashes. 2010-08-11 02:35:10 -07:00
Igor Bukanov
32c740b945 bug 568730 - folloup to add missing activity callback null check 2010-08-10 15:32:33 +02:00
Alon Zakai
8ba541a087 Bug 568730 - Allow customizing the sleep duration in XPCJSRuntime::WatchdogMain. r=igor/jst/gal 2010-08-09 16:39:28 -07:00
David Mandelin
71cf6e222a Bug 584615: adding missing oom check, r=jwalden
--HG--
extra : rebase_source : c3357167c84ab2e2e408facdcbf083df78f2fa9c
2010-08-09 16:18:07 -07:00
Luke Wagner
d75cf631d5 Define gczeal in testBug584650.js so opt builds pass 2010-08-09 15:18:05 -07:00
Dave Herman
c5d0735e45 bug584124, r=shu: njs terminal annoyances 2010-08-09 14:39:01 -07:00
Luke Wagner
9644ea639c Bug 581900 - obj_getPrototypeOf produces wrong error when Invoked (r=brendan) 2010-08-09 14:07:27 -07:00
Luke Wagner
42f82923f9 Fix bustage; don't #include jstl.h from jsvalue.h, it messes up the mozalloc wrapper ritual
--HG--
extra : rebase_source : ac82f78d3d34a8d58d28d7e556ae4fd516fc83d5
2010-08-09 13:59:28 -07:00
Steve Fink
082cfbef39 Bug 507012: function call/return callback for profiling, r=dmandelin, a=sayrer 2010-08-09 13:38:13 -07:00
Tom Austin
5075855584 Bug 584625. Renamed Narcissus modules and removed JSON style labels. r=dherman 2010-08-09 12:37:38 -07:00
Luke Wagner
05d9f91b76 Bug 584650 - address comments in bug missed by previous patch 2010-08-09 12:02:26 -07:00
Luke Wagner
0e832b8f5c Bug 584650 - Make value/id range safe after auto rooter resize (r=waldo) 2010-08-09 11:56:38 -07:00
Paul Biggar
6634b70997 Split object/function allocation paths to avoid branch (578158, r=brendan). 2010-08-09 09:11:22 -07:00
Robert Sayre
a11c4c6043 Merge mozilla-central to tracemonkey. 2010-08-07 23:05:12 -07:00
Robert Sayre
2e619a2217 Merge backout. 2010-08-07 20:11:53 -07:00
Robert Sayre
5672347230 Backed out changeset 96ef97b766e6. (Bug 458271 - Property cache causes resolve hooks not to be called. r=brendan.) 2010-08-07 20:11:42 -07:00
Andreas Gal
5322ed0408 JSString::mLengthAndFlags and mChars are not constant (585309, r=apierce). 2010-08-07 20:01:02 -07:00
Gregor Wagner
35c318f12b Bug 583598 - GC-related JS_ASSERT (r=igor) 2010-08-07 18:56:24 -07:00
Jason Orendorff
6e4e0d61ae Bug 458271 - Property cache causes resolve hooks not to be called. r=brendan. 2010-08-07 14:57:59 -05:00
Igor Bukanov
c834b35395 bug 583763 - followup to add more information into printout about missing roots and an extra assert.
--HG--
extra : rebase_source : 1889cc878be4e8fdf1c1902139208ad12cc28760
2010-08-06 21:45:25 +02:00
Luke Wagner
940ef90c85 Bug 584653 - increase JSVAL_SHIFTED_TAG_MAX_DOUBLE to include innocuous qnans (r=brendan) 2010-08-06 22:10:07 -07:00
Andreas Gal
ea8ed0fbf0 Ensure that JSOPTION_UNROOTED_GLOBAL is set when we cycle collect (stop-gap measure for bug 584495, r=brendan). 2010-08-06 20:24:49 -07:00
David Anderson
bbead0c23f Fixed assertion failure in callNative (bug 579740, r=jorendorff). 2010-08-06 18:54:51 -07:00
Luke Wagner
8d67384340 Bug 585231 - Remove ArgsPrivateNative (r=dmandelin) 2010-08-06 17:19:22 -07:00
Robert Sayre
d1662b9077 Backed out changeset 504bc84513b0. Andreas Gal – Ensure that JSOPTION_UNROOTED_GLOBAL is set when we cycle collect (stop-gap measure for bug 584495, r=brendan). default tip 2010-08-06 18:15:51 -07:00
Andreas Gal
fe2812701c Ensure that JSOPTION_UNROOTED_GLOBAL is set when we cycle collect (stop-gap measure for bug 584495, r=brendan). 2010-08-06 16:37:26 -07:00
Dave Herman
b097f3a7a8 bug 584103, r=taustin: Narcissus Harmony mode 2010-08-06 16:26:59 -07:00
Dave Herman
a9b8553184 bug 583001, r=pwalton: narcissus REPL 2010-08-06 16:16:39 -07:00
Robert Sayre
ca10e5d657 Merge mozilla-central to tracemonkey. 2010-08-06 15:41:41 -07:00
Paul Biggar
8bee826b83 Bug 584993 - Expose js_DumpObject as a shell function. r=jorendorff. 2010-08-06 15:45:14 -05:00
Tom Austin
ce1464db45 Bug 584807 - Simplify Narcissus testing setup. (r=gal) 2010-08-06 11:06:30 -07:00
Chris Leary
d254245df1 Submillisecond now() shell function for benchmark stability. (r=jorendorff) 2010-08-06 10:18:44 -07:00
Andrew Drake
e4ec6d69ff [JAEGER] Add debug mode, and with it EvaluateInFrame. r=dvander, b=578154 2010-08-05 17:15:49 -07:00
David Anderson
76face52cb [JAEGER] Fixed primitive string wrapping in callprop_str (bug 584579). 2010-08-10 20:57:40 -07:00
David Mandelin
bc9d853ebd [JAEGER] Just a little MSVC warning fix. 2010-08-10 17:10:49 -07:00
Sean Stangl
dac1b5d37c [JAEGER] x64 tracejit integration. b=585174, r=dvander.
Trips asserts in nanojit when running trace-tests.
2010-08-10 15:28:11 -07:00
David Mandelin
d78a3da1fa Merge. 2010-08-10 14:15:47 -07:00
David Mandelin
7c8913810b Backout merge. 2010-08-10 14:15:07 -07:00
David Mandelin
8cbcfb9f94 Backed out changeset 3a6f645100eb due to tinderbox failures. 2010-08-10 14:14:50 -07:00
David Mandelin
22e9511a95 Backout merge. 2010-08-10 14:12:30 -07:00
David Mandelin
0e58d4a4f5 Backed out changeset a58469686294 to prepare to back out 3a6f645100eb 2010-08-10 14:10:23 -07:00
David Anderson
8ce152834a [JAEGER] Commented the various loads in JaegerFromTracer. 2010-08-10 14:05:27 -07:00
David Anderson
7df4caccee [JAEGER] Disable forceful unboxing of doubles from value pointers.
--HG--
extra : rebase_source : ece46cf9a6c0e31732f50e75abf88eb64ab338d1
2010-08-10 13:41:15 -07:00
Sean Stangl
d03a42819f [JAEGER] Fix 3a6f645100eb x64 breakage. no_r=fire. 2010-08-10 13:25:55 -07:00
Brian Hackett
fa84710155 [JAEGER] Fast paths for start/end iterators and GC hazard removal, bug 578756. r=dmandelin, gal 2010-08-10 11:12:54 -07:00
Jan de Mooij
c9d0890ba0 [JAEGER] Pop comparison inputs before branching (bug 585915, r=dvander). 2010-08-10 09:40:16 -07:00
Jacob Bramley
a82449c758 [JAEGER] Modify calling code on ARM to fix most trace tests (with --methodjit-only). [Bug 581956] [r=dmandelin] 2010-08-10 10:28:23 +01:00
Chris Leary
6ce900676e Bug 585341: fix non-default-getter on with in IC. (r=dvander) 2010-08-09 19:11:24 -07:00
David Mandelin
d61ac77c89 [JAEGER] Manually back out rest of bug 585749 temp fix 2010-08-09 18:36:25 -07:00
Nicholas Nethercote
a4a2356d6b [JAEGER] Bug 585542 - JM: reorder Add() to account for common cases. r=dvander. 2010-08-09 18:20:23 -07:00
David Mandelin
5bcca6fa29 [JAEGER] Bug 585794 temporary fix followup: undisable getelem PICs 2010-08-09 16:21:49 -07:00
Sean Stangl
9eca649c6c [JAEGER] Add tests from bug 585310. 2010-08-09 15:29:58 -07:00
David Mandelin
7d07d174fc [JAEGER] Bug 585749 temporary fix: update cached native iterator's shape array when creating the cache entry 2010-08-09 15:26:19 -07:00
Sean Stangl
ce3d671386 [JAEGER] Fix PIC resetting. b=585750, r=dvander. 2010-08-09 15:13:39 -07:00
David Anderson
83892ce23c [JAEGER] Fixed CALLPROP ICs not reseting the second shape guard offset (bug 585540).
--HG--
extra : rebase_source : 6de6f362a12483838bdc3c571fe7e75d8cc0074d
2010-08-09 12:53:00 -07:00
David Mandelin
8b74c172ba [JAEGER] Bug 585226: fix offset used to reset bindname PIC, r=dvander 2010-08-06 18:03:01 -07:00
David Mandelin
df3e6a9e74 [JAEGER] Merge from tracemonkey. 2010-08-09 11:36:39 -07:00
Jan de Mooij
4f330bd38a [JAEGER] Convert result of division to integer if possible (bug 585272, r=dvander). 2010-08-09 10:18:29 -07:00
David Anderson
ab2d2410fd [JAEGER] Fixed incorrect use of syncExit() in relational compare (bug 585391). 2010-08-08 19:58:42 -07:00
David Anderson
95a614e83c [JAEGER] Added more test cases for bug 585408. 2010-08-08 19:35:21 -07:00
David Anderson
521e364261 [JAEGER] Another semi-rewrite of LOCALINC for edge cases (bug 585408). 2010-08-08 19:26:38 -07:00
David Anderson
604f0a0760 [JAEGER] Fixed bugs when LOCALINC and friends took slow paths (bug 584607, r=sstangl). 2010-08-06 18:44:31 -07:00
Sean Stangl
1c7dffaedb [JAEGER] Use MAX_PIC_STUBS define. r=dvander. 2010-08-06 16:27:39 -07:00
Chris Leary
fdd3d88c3f Bug 578041: eager-this With objects and non-default getters. (r=jorendorff)
--HG--
extra : rebase_source : b25db67f7d0a6069ffbc5281f4e3c5044e1d1b92
2010-08-06 16:21:29 -07:00
David Mandelin
b3eb68b6e5 [JAEGER] Merge from tracemonkey. 2010-08-06 15:39:15 -07:00
David Mandelin
a2a7b11dcb [JAEGER] Fix recent regression in jstest content/base/test/test_bug333198.html 2010-08-06 15:14:21 -07:00
David Mandelin
d17042d2e4 [JAEGER] Bug 584928: fix wrong END_CASE argument in the compiler 2010-08-06 14:38:10 -07:00
Sean Stangl
8082b01358 [JAEGER] Correct ic::BindName::disable() return. b=584587, r=dvander. 2010-08-06 14:12:57 -07:00
Sean Stangl
6e263ae356 [JAEGER] Fix TABLESWITCH, LOOKUPSWITCH. b=584646, r=dvander. 2010-08-06 12:03:45 -07:00
Sean Stangl
3d93fc270c [JAEGER] Don't generate SetGlobalName MIC if !writable. b=584647, r=dvander. 2010-08-06 12:02:38 -07:00
David Anderson
5804faca3c [JAEGER] Added another test case for bug 584644. 2010-08-06 12:01:17 -07:00
David Anderson
f6a63a37bc [JAEGER] Fixed PIC bitfield being too small (bug 584644). 2010-08-06 11:59:33 -07:00
David Mandelin
314a2c0c91 Merge. 2010-08-06 11:41:42 -07:00
David Mandelin
ddcca372a7 Backed out changeset a661b26a83a1 due to tinderbox failures. 2010-08-06 11:41:28 -07:00
David Mandelin
b5d55a4a18 Merge. 2010-08-06 11:40:45 -07:00
David Mandelin
28f62278d3 Backed out changeset 5a5e12cff449 because it goes on top of a661b26a83a1,
which is about to be backout out due to tinderbox failures.
2010-08-06 11:40:28 -07:00
David Mandelin
d54542edd6 Merge. 2010-08-06 11:17:29 -07:00
David Mandelin
c0c6ca3f2e [JAEGER] Disable tests that will fail during trace tuning 2010-08-06 11:15:35 -07:00
Sean Stangl
e2b4773228 [JAEGER] Handle cmpq in JaegerSpew; no_r=me. 2010-08-05 23:13:52 -07:00
Leon Sha
dd23db1af5 [JAEGER] Multiple cases failed in JaegerMonkey on Solaris x86 compiled with Sun Studio 12. r=dvander 2010-08-06 11:13:32 +08:00
Sean Stangl
5b1107a5ba [JAEGER] Try converting jsop_neg() constant doubles to int32. b=584838, r=dvander. 2010-08-05 18:54:38 -07:00
David Mandelin
e2ce3a3d92 [JAEGER] Bug 584579: force string tag on result of addition only
if one operator is a string and the other cannot be a string object, r=dvander

--HG--
extra : rebase_source : 73f00995da7a237408050ca58aebad74be27778e
2010-08-05 18:38:44 -07:00
David Anderson
78f08a7fa5 [JAEGER] Increase HOTLOOP to 4; blacklist after 300 execs. 2010-08-05 18:04:21 -07:00
Andrew Drake
5e0305dd68 [JAEGER] Fix trapflatclosure.js test. r=dvander, b=582409 2010-08-05 17:35:04 -07:00
Andrew Drake
469286fcd4 [JAEGER] Add debug mode, and with it EvaluateInFrame. r=dvander, b=578154 2010-08-05 17:15:49 -07:00
Jan De Mooij
335c2b44df [JAEGER] Constant fold neg on ints better (bug 584838, r=dvander). 2010-08-05 16:09:47 -07:00
David Mandelin
2bd80dd548 [JAEGER] Fix MSVC build bustage from recent changesets 2010-08-05 16:04:02 -07:00
David Mandelin
87780bb6a5 Merge. 2010-08-05 15:57:53 -07:00
David Mandelin
d0199725aa Merge from tracemonkey. 2010-08-05 15:57:34 -07:00
Alan Pierce
680c70a8de [JAEGER] Bug 584605: Fix >> on constants. r=dvander. 2010-08-05 15:51:07 -07:00
Sean Stangl
08ddae23d9 [JAEGER] Un-constify BindName's inline jump offset. b=584642, r=dvander. 2010-08-05 13:23:18 -07:00
Jason Orendorff
fbf41f6a18 Bug 584565 - TM: When f.length is resolved at record time, we can fail to emit a shape guard. r=brendan. 2010-08-05 13:44:31 -05:00
Bob Clary
117454e744 bug 584868 - do not use fake document object in test js1_5/extensions/regress-361964.js as it can interfere with test reporting object detection, r=sparky. 2010-08-06 03:42:54 -07:00
Andreas Gal
ed7dc4ad2d Inline unit string comparison (577883, r=njn). 2010-08-06 03:29:14 -07:00
Andreas Gal
db59ff9fcf Fix int -> int32, msvc is being picky about it (follow-up for 584499, r=me). 2010-08-05 23:16:23 -07:00
Andreas Gal
9bfcb05899 Optimize string[idx] on trace (584499, r=lw). 2010-08-05 22:54:34 -07:00
Nicholas Nethercote
b92ac5d6d0 Bug 584275 - nanojit: preparation for adding many more access regions (TM-specific part). r=gal. 2010-08-05 22:17:22 -07:00
Nicholas Nethercote
4d7ec36521 Update nanojit-import-rev stamp. 2010-08-05 22:10:48 -07:00
Nicholas Nethercote
d92d97864a Fix more Windows bustage for bug 584275. r=me.
--HG--
extra : convert_revision : 982cd218ddb049bdbbcdda4fa3a9d7e40e45e0be
2010-08-05 21:38:39 -07:00
Nicholas Nethercote
771a1472de Fix Windows bustage for bug 584275. r=me.
--HG--
extra : convert_revision : 50ab6cea085bd699f13ebac102756531e8c0640f
2010-08-05 18:09:23 -07:00
Nicholas Nethercote
3b63712fcf Bug 584275 - nanojit: preparation for adding many more access regions. r=edwsmith.
--HG--
extra : convert_revision : 64ae262a02031c276f58c3a4c71cfd92828f883f
2010-08-05 17:37:42 -07:00
Dan Witte
37e120853b Bug 573087 - Automangle ctypes stdcall symbols. r=bsmedberg, a=blocker 2010-08-05 16:49:52 -07:00
Dan Witte
348d0617cf Update libffi.patch. 2010-08-05 16:49:52 -07:00
Dan Witte
9f61d27e6a Apply libffi.patch. 2010-08-05 16:49:52 -07:00
Dan Witte
883d6ca049 Mark script files as executable. 2010-08-05 16:49:52 -07:00
Dan Witte
fbed7fb6e0 Pull libffi git revision 3aeecc9eb1a6feba6549849cdd335c926415a4fc to fix bug 528129, bug 556902, bug 538002, bug 581909, bug 573066, bug 564966, and bug 556521. r+a=bsmedberg 2010-08-05 16:49:52 -07:00
Gregor Wagner
e265b8c778 Bug 581589 - TM: add defaultCompartment to compartments array (r=gal) 2010-08-05 15:48:34 -07:00
Luke Wagner
8bb1230898 Bug 584252 - disallow non-standard extensions to float syntax (r=jorendorff) 2010-08-05 13:40:21 -07:00
Blake Kaplan
1cdd12f48b Bug 584551 - Do things that require entering a request on the old compartment before entering a request on the new one. r=igor 2010-08-05 12:38:07 -07:00
Kyle Huey
634b63f3af Turn off error-on-double-including-config.mk for the moment on this CLOSED TREE 2010-08-06 09:21:41 -07:00
Kyle Huey
d7397260c9 Fix build dependencies in content/html/content/src and make double-including config.mk fatal. irc-r=ted
--HG--
extra : rebase_source : 3362befa95b5ab3aff581b49f58652d653d1a8ac
2010-08-06 08:26:20 -07:00
Sean Stangl
4c17f22a19 [JAEGER] PolyIC support for x86_64. b=578245, r=dvander. 2010-08-04 19:24:33 -07:00
David Mandelin
c41fb54261 [JAEGER] Bug 584466: remove nonfunctional dense array code from setelem pic stub generator, r=dvander 2010-08-04 18:53:27 -07:00
David Anderson
7f08721380 [JAEGER] Fixed warning in FastArithmetic.cpp.
--HG--
extra : rebase_source : 70bf9eae527e5a6f3eb85c26db5b094c528dfe24
2010-08-04 15:11:30 -07:00
David Anderson
e7ff26213c [JAEGER] Fixed a warning in Compiler.cpp.
--HG--
extra : rebase_source : 8d0f032140dd2ad6133225246e6604601754f292
2010-08-04 15:09:59 -07:00
Sean Stangl
206f75dd48 [JAEGER] Disable GetProp PIC upon generateStringLengthStub(). 2010-08-04 14:57:28 -07:00
Jeff Walden
47551e8efe Bug 514563 - ES5 strict mode: arguments.caller and arguments.callee poison pills. r=dmandelin
--HG--
extra : rebase_source : 2f0b258624ec065cb019f61f017115998a8835b2
2010-08-04 14:39:45 -07:00
David Anderson
fcfeff1adb [JAEGER] Added another test case for bug 580931. 2010-08-04 14:20:55 -07:00
David Anderson
3095481569 [JAEGER] Ensure stack stores are synced for escaping slots or eval code (bug 580884, r=sstangl). 2010-08-04 14:05:19 -07:00
Jeff Walden
df688c0946 Rename JSObject::getArgsLength to JSObject::getArgsInitialLength, to make clearer precisely what value it returns. r=dmandelin
--HG--
extra : rebase_source : c642dd15d4d1cf5f8ac2211dc2ee33845d11bef1
2010-08-04 13:50:01 -07:00
David Mandelin
48342132f5 Merge from Tracemonkey. 2010-08-04 11:30:05 -07:00
Ginn Chen
41d11b7d84 Bug 584219 Sun Studio doesn't support __attribute__ packed for enum r=lw 2010-08-04 19:40:39 +08:00
Luke Wagner
c650a3d7e3 Bug 584168 - consider canonicalizing nans passed to the JSAPI (r=brendan) 2010-08-04 04:13:19 -07:00
Sean Stangl
54306314e4 [JAEGER] Assert correctness for CallProp PIC. 2010-08-04 02:03:05 -07:00
Luke Wagner
70799ce02c Bug 584158 - ensure that typed arrays cannot produce non-canonical nans (r=gal) 2010-08-03 22:06:44 -07:00
Brian Hackett
06fbb33b82 [JAEGER] MIC fast constructors, bug 579471. r=dvander 2010-08-03 21:24:45 -07:00
Nicholas Nethercote
787502bbde Update nanojit-import-rev stamp. 2010-08-03 20:48:34 -07:00
Andreas Gal
00c966f8e3 Bug 580534 - implement LIR_cmovd. r=nnethercote.
--HG--
extra : convert_revision : 186f3f376d662375ff9182cf0b470468335ef442
2010-08-03 20:39:21 -07:00
David Anderson
784866e48c [JAEGER] Eagerly initialize Function, Object classes before compiling (bug 582286, rs=brendan). 2010-08-03 19:18:05 -07:00
David Anderson
6754f67b7a [JAEGER] Fixed warning in MonoIC.cpp. 2010-08-03 18:15:50 -07:00
Brian Hackett
469c730371 Fix regression, bug 584199. r=dvander 2010-08-03 18:11:25 -07:00
David Mandelin
bf22d2227a [JAEGER] Bug 583946: don't doubly mark free a pinned register that was stolen during immutable syncing, r=dvander 2010-08-03 17:42:04 -07:00
Brian Hackett
b39b52a99a [JAEGER] Add native call MICs, bug 578912. r=dvander 2010-08-03 17:31:21 -07:00
David Anderson
fbe184bfeb [JAEGER] Added missing test-case for bug 583689. 2010-08-03 16:36:50 -07:00
David Anderson
8ed1354d84 [JAEGER] Fixed crash bug in tracer integration (bug 583689). 2010-08-03 16:36:04 -07:00
David Anderson
6505f56119 [JAEGER] Fixed uninit var warning. 2010-08-03 16:27:08 -07:00
Alan Pierce
91aa99b486 [JAEGER] Reland bug 576934: special-case parseInt(double) in num_parseInt, r=dvander 2010-08-03 15:47:58 -07:00
David Anderson
48b5a4d82a [JAEGER] ScopeNameCompiler didn't check for property existence (bug 583688). 2010-08-03 15:04:50 -07:00
Bill McCloskey
969b3d151b Bug 580931: handle null passed to js_GetPrimitiveThis, r=jorendorff 2010-08-03 14:30:33 -07:00
Andrew Drake
335f853868 [JAEGER] :FIXME: :TODO: :XXX: :URGENT: re-patch type guard r=dvander, b=583680 2010-08-03 13:47:40 -07:00
Brian Hackett
5ab7972159 Fast native constructors, bug 579471. 2010-08-03 12:20:48 -07:00
Jeff Walden
443f3f510a Bug 514581 - ES5: fun.caller and fun.arguments must throw when fun is strict-mode code. r=jimb
--HG--
extra : rebase_source : 10f930852e39b0b1ef917b18b6a1332a9a815d5d
2010-08-02 23:52:12 -07:00
Andrew Drake
99fbe463df [JAEGER] Don't make the GC sad in the middle of compilation. r=dvander, b=583675 2010-08-02 22:50:00 -07:00
Sean Stangl
7fcc3c72ec [JAEGER] Move DBGLABEL definition to CodeGenIncludes.h.
The definition is not useful only for PIC asserts.
2010-08-02 20:36:18 -07:00
David Mandelin
3b5036d774 [JAEGER] Bug 583915: set correct slow path start for getelem pics, r=dvander 2010-08-02 18:22:22 -07:00
David Anderson
941362741c [JAEGER] Merge. 2010-08-02 18:29:10 -07:00
Andrew Drake
004ffe87f1 [JAEGER] Don't try to PIC JSOP_NAME for global setters or getters. r=dvander, b=583692 2010-08-02 18:24:17 -07:00
David Anderson
85b14f8f77 [JAEGER] Fixed regression for non-tracer builds. 2010-08-02 18:15:50 -07:00
David Anderson
69d03d11e9 [JAEGER] Fixed regression in tracer integration. 2010-08-02 17:31:22 -07:00
David Anderson
bfe8c0a315 [JAEGER] Fixed bug in tracer integration where frame popping could return undefined.
--HG--
extra : rebase_source : 15b8bd87a4f8a8ba30b1e9a4cb919e06300bbaf4
2010-08-02 17:22:13 -07:00
David Mandelin
2aeb7a7391 [JAEGER] Bug 583873: sync on all branches to getelem PIC slow path, r=dvander 2010-08-02 15:35:55 -07:00
David Mandelin
5f95f51478 Merge. 2010-08-02 15:55:50 -07:00
David Mandelin
d7f6c4209b Merge from Tracemonkey. 2010-08-02 15:55:29 -07:00
David Anderson
6358aba3e4 [JAEGER] Fixed uncopy() breaking copy invariants (bug 583684, r=sstangl). 2010-08-02 15:52:49 -07:00
Dave Herman
f5415ad358 bug 582999, r=gal: putstr function for JS shell 2010-08-02 15:02:15 -07:00
Jason Orendorff
5534502a01 Bug 583850 - Assert that certain security checks in the JS engine never fail. r=mrbkap. 2010-08-02 16:38:46 -05:00
Jason Orendorff
652b4f196b Bug 583262 - Remove security checks on f.prototype.constructor property at last. r=mrbkap.
--HG--
extra : rebase_source : d41e97b9ec4367ed4eb1f28a082571f37a9696e2
2010-08-02 15:59:06 -05:00
Jeff Walden
ba064bca66 Bug 536472 - ES5: getters in object literals must have no arguments, and setters in object literals must have one argument. r=cdleary
--HG--
extra : rebase_source : 5335e6ebd22d8bc2255a3ddc7a7fcbb944dacd40
2010-08-02 12:35:08 -07:00
Sean Stangl
7d356d5f07 [JAEGER] Remove undefined store optimization for SetProp. b=583672, r=dvander. 2010-08-02 11:39:24 -07:00
Jason Orendorff
8ed74ae25b Fix two MSVC warnings. no_r=me. 2010-08-02 09:44:24 -05:00