Commit Graph

15033 Commits

Author SHA1 Message Date
David Mandelin
8d227f27c6 Bug 495907: use more reliable code to get outermost tree script nest level, r=gal 2009-06-02 11:52:24 -07:00
Robert Sayre
9fb4d963fd Merge mozilla-central to tracemonkey. 2009-06-02 14:31:13 -04:00
Andreas Gal
fd2fd093d7 Inspect the scope for the right object when looking up properties on fast arrays (495844, r=jwalden). 2009-06-01 18:58:56 -07:00
Andreas Gal
880e604ed7 Detect global object wrapping at recording time and on trace (495699, r=mrbkap). 2009-06-01 18:52:08 -07:00
Bob Clary
91e24a48b1 JavaScript Tests - bug 463782, bug 476192 - fix summaries to not include string 'Assertion fail', npotb. 2009-06-01 16:41:17 -07:00
Bob Clary
c584a375ce bug 473096 - JavaScript Test - adjust test for new decompilation pattern. 2009-06-01 16:41:11 -07:00
Bob Clary
abd0b9ed41 bug 476049 - JavaScript Test by Igor Bukanov. 2009-06-01 16:41:06 -07:00
Bob Clary
62ee4296ef bug 475971 - JavaScript Test by Igor Bukanov. 2009-06-01 16:41:00 -07:00
Bob Clary
d3733cc184 bug 355829 - JavaScript Tests by Jesse Ruderman, Igor Bukanov. 2009-06-01 16:40:54 -07:00
Bob Clary
2bfcb03495 bug 479110 - JavaScript Tests - disable jitstats for math-trace-tests, Andreas Gal. 2009-06-01 16:40:48 -07:00
Bob Clary
d5c4f3a5ca JavaScript Tests - bug 452598, bug 458838, bug 469347, bug 473117, bug 473271, bug 479198, bug 482349, bug 482594, bug 482783, bug 483103, bug 483103, bug 483723, bug 483962, bug 484104, bug 484151, bug 484332, bug 484334, bug 484495, bug 484599, bug 484693, bug 484751, bug 485790, bug 485889, bug 486578, bug 487134, bug 487845, bug 487845, bug 491965, bug 491989, bug 492124, bug 492599, bug 493255 by Andreas Gal, Jeff Walden, David Mandelin, Jacob Bramley, Graydon Hoare, Jason Orendorff, Brendan Eich, Ben Turner, Vladimir Vukicevic, Blake Kaplan. 2009-06-01 16:40:42 -07:00
Bob Clary
d372248332 bug 462734 - JavaScript Tests by Gary Kwong, Igor Bukanov, Brendan Eich. 2009-06-01 16:40:37 -07:00
Bob Clary
bf9e3bf461 bug 455981 - JavaScript Tests by Jesse Ruderman, Gary Kwong. 2009-06-01 16:40:31 -07:00
Bob Clary
5b04bf2fb1 bug 453492 - JavaScript Test by Jesse Ruderman. 2009-06-01 16:40:24 -07:00
Bob Clary
f91dfd6370 bug 452498 - JavaScript Tests by Gary Kwong, Jesse Ruderman, Brendan Eich. 2009-06-01 16:40:18 -07:00
Bob Clary
4e9e27a4b8 bug 436700 - JavaScript Test by Sylvain Pasche. 2009-06-01 16:40:12 -07:00
Bob Clary
ef49975043 bug 426827 - JavaScript Test by Jan Darmochwal. 2009-06-01 16:40:06 -07:00
Bob Clary
d0a3ab0cd5 bug 416737 - JavaScript Tests by Jesse Ruderman, Igor Bukanov. 2009-06-01 16:40:00 -07:00
Bob Clary
1e6434328f bug 375406 - JavaScript Test by Jesse Ruderman. 2009-06-01 16:39:54 -07:00
Bob Clary
7568d05445 bug 495307 - JavaScript Tests - update slow-n-*.tests. 2009-06-01 16:39:36 -07:00
Bob Clary
c6cac37a7a bug 480680 - update comments regarding need to hg update -C to work around in tree changes. 2009-06-01 16:39:30 -07:00
David Mandelin
256818e43d Bug 495773: include trace entry JSStackFrame in upvar search, also remove obsolete union from FrameInfo, r=gal 2009-06-01 14:50:02 -07:00
Andreas Gal
18d601fe8a Bug 495396 - TM: missing early return in Nativei386 when generating LEA. r=edwsmith 2009-06-01 16:24:59 -04:00
Peter Van der Beken
bf40fdaa90 Fix for bug 495554 (crash [@ XPCNativeSet::NewInstance(XPCCallContext&, XPCNativeInterface**, unsigned short) ]). r/sr/a=jst.
--HG--
extra : rebase_source : 29b4e1b88da5e56d1c33e7c09697c9fb0a1f9936
2009-05-31 20:07:26 +02:00
Andreas Gal
45aa142470 Hotfix for bug 495563. 2009-05-29 23:17:50 -07:00
Andreas Gal
e20ee11907 Abort recording if wrapping occurs, take 2 (495563, r=brendan). 2009-05-29 20:39:13 -07:00
David Mandelin
c0f60d3818 Bug 495566: fix stack offset calculations for traces that start at top level, r=gal 2009-05-29 18:50:35 -07:00
Jeff Walden
1ff0a59ac8 Fix bogus warnings from gcc thinking that js_GetLengthProperty doesn't always write its outparam by removing code from it and simplifying what remains -- WIN! No bug, r=gal 2009-05-29 14:57:32 -07:00
Graydon Hoare
64ade3f89c Bug 495362 - TM: disconnecting VMFragments due to script-unload leaks, r=gal. 2009-05-29 15:03:10 -07:00
Boris Zbarsky
795124da0c Bug 493246. Improve ::guard logging. r=jorendorff 2009-05-29 16:52:12 -04:00
Igor Bukanov
d7846009f7 bug 495216 - proper accounting of args and vars for Call object. r=brendan 2009-05-29 14:23:58 +02:00
Igor Bukanov
224047ab07 bug 494208 - js_SetProtoOrParent must check if the object is native before locking it. r=brendan 2009-05-29 10:47:51 +02:00
Brendan Eich
67cfef7582 Bug 495045: test tcflags for new Function's top-level, its body, when vetoing flat closure optimization based on HEAVYWEIGHTness (r=jorendorff). 2009-05-28 17:08:06 -07:00
Jason Orendorff
7a770414c9 Bug 495166 - static-analysis error in jsparse.cpp JSCompiler::compileScript: return without going through label out. r=brendan. 2009-05-28 10:08:57 -05:00
Brendan Eich
25d6358565 Bug 494954 - JS_GetScriptLineExtent() does not returns the right value (r=mrbkap). 2009-05-27 18:53:22 -07:00
Jason Orendorff
b02a1e598b Followup to changeset f9ad6d736430 (for bug 493232): fix a stale comment. r=brendan in IRC. 2009-05-27 17:48:39 -05:00
Jason Orendorff
90cf87c5c3 Bug 493232 - Wrong variable value accessed in closure. r=brendan. 2009-05-27 15:46:03 -05:00
Andreas Gal
2c44f91666 Build optimized JS shell with -O3 when using gcc (494994, r=sayrer). 2009-05-26 18:53:42 -07:00
Andreas Gal
1fca4a0b1e Bad assert in NEXTITER exception handling (494975, r=brendan). 2009-05-26 16:39:43 -07:00
Brendan Eich
4302d707ca Fix typo (494956, r=self, thanks to <soubok@gmail.com> for bug report). 2009-05-26 15:36:32 -07:00
Julian Seward
e34eb1e47f Bug 494157 - nanojit debug output uses inconsistent output channels. r=jorendorff. 2009-05-26 13:14:41 -05:00
Robert Sayre
ac5f55fc68 Merge mozilla-central to tracemonkey. 2009-05-24 12:31:56 -04:00
Brendan Eich
1e20ef9544 Bug 494544 - Uninitialized variable undefined after assignment whose initializer is a closure capturing that var (r=mrbkap). 2009-05-23 11:01:11 -07:00
Andreas Gal
bc34a6ab02 LIR_alloc doesn't get emitted correctly for stack args on ARM (494510, r=vlad). 2009-05-22 16:44:18 -07:00
Graydon Hoare
40599ad306 Bug 494084 - TM: Lower maximum LIR skip size further, r=gal. 2009-05-21 18:44:37 -07:00
Jason Orendorff
f584ecf146 Bug 493260 - js1_5/Regress/regress-344959.js - with and eval do not inhibit the flat closure optimization. r=brendan. 2009-05-21 13:00:53 -05:00
Brendan Eich
02eff52791 Bug 462704 - [jsd] incorrect lineExtent when a while loop ends a method (r=mrbkap). 2009-05-20 23:35:42 -07:00
David Mandelin
96c58d07c9 Bug 493512: correcting native stack navigation arithmetic, r=gal 2009-05-20 18:57:42 -07:00
Andreas Gal
4c6d57e9dc Setting scopeChain to NULL in SynthesizeFrame breaks GetCallObject (494045, r=brendan). 2009-05-20 17:05:38 -07:00
Blake Kaplan
3ee6eb44df Fix GCC warnings about the argument to %p not being a void *. rs=jorendorff 2009-05-20 16:30:20 -07:00
Jason Orendorff
0a2c025271 Bug 490908 - js_DumpStackFrame. r=Waldo. 2009-05-20 10:10:03 -05:00
Robert Sayre
5efc2c4778 Merge tracemonkey to mozilla-central. 2009-05-22 21:21:16 -04:00
Johnny Stenback
126ccdd6cc Re-landing backed out part of bug 483672 for parity with 1.9.1 2009-05-22 15:59:33 -07:00
Peter Van der Beken
1cdd2c37e5 Fix for bug 494445. r/sr=mrbkap.
--HG--
extra : rebase_source : 33e2bfe1c564abf2cad000ee62fb2d0520976585
2009-05-22 22:19:25 +02:00
Jim Blandy
463d442ebe Bug 492594: Add new js/src/ref-config makefile for HP-UXB.11.31. NPOB.
This makefile is only used when SpiderMonkey is built using
js/src/Makefile.ref, the standalone SM-only build system --- which is
deprecated; see bug 462542.  These files are never used by the Mozilla
build system.
2009-05-22 11:57:37 -07:00
Johnny Stenback
e3b3d9cd49 Backing out part of bug 483672 to see if this part is what caused the performance regression. 2009-05-21 20:27:30 -07:00
Benjamin Smedberg
25229c3604 Bug 494172 - Static libs such as libxpcomglue_s are not shipped in the XUL SDK: revert the parts of bug 488175 which were too eager: we still use dist/sdk/lib and dist/sdk/bin, just not dist/sdk/include or dist/sdk/idl, r=ted 2009-05-21 14:12:46 -04:00
L. David Baron
69f597aebe Backed out changeset 1abeb6c87131 (Bug 480205 - Implement a wrapper for exposing chrome objects to content (aka COWs)) due to mochitest failures and leaks. 2009-05-21 06:54:41 -04:00
Blake Kaplan
8fc20a0ce4 Bug 480205 - Implement a wrapper for exposing chrome objects to content (aka COWs). r+sr=jst sr=bzbarsky on some parts. 2009-05-21 01:17:51 -07:00
Vladimir Vukicevic
caada9a07f b=494095; use -O3 for Mac builds; r=sayrer 2009-05-20 22:18:39 -07:00
Robert Sayre
92002a43da Merge. 2009-05-21 00:09:41 -04:00
Robert Sayre
1d40ce7587 Merge tracemonkey to mozilla-central. 2009-05-20 12:21:34 -04:00
Peter Van der Beken
a6db11a5f0 Fix quickstubs dependency problem, .h doesn't depend on any headers so don't add it to .dep and make .cpp depend on the interface files instead. rs=ted. 2009-05-20 14:07:20 +02:00
Andreas Gal
e26fbcd74d Wrong callee is restored when side-exiting from a trace (493657, r=brendan,mrbkap). 2009-05-20 03:54:55 -07:00
Olli Pettay
bb72f833b9 Bug 493366 - Assertion failure: (cx)->requestDepth || (cx)->thread == (cx)->runtime->gcThread, at mozilla/js/src/jsapi.cpp:5196, r+sr=mrbkap 2009-05-20 12:30:57 +03:00
Igor Bukanov
4b824e667f bug 493720 - using the proper assert to assert the the GC is not running. r=mrbkap 2009-05-20 10:23:56 +02:00
Graydon Hoare
9c26ce2ab1 Bug 493821 - NJ: Minimal fix to sign-extension in imm64, r=gal. 2009-05-19 22:01:24 -07:00
Graydon Hoare
4947735311 Backout alignment-breaking patches for Bug 493821. 2009-05-19 20:26:31 -07:00
Brendan Eich
aa269dcd42 Bug 493760: the real fix for problem left in wake of patch for bug 493466 (r=mrbkap). 2009-05-19 18:40:55 -07:00
Graydon Hoare
c38212e874 Bug 493821 - Followup to ARM and SPARC native backends, to handle renaming, r=gal. 2009-05-19 18:42:11 -07:00
Andreas Gal
ba573ffa22 Bug 493821 - NJ: Fix sign-extension in imm64, r=graydon. 2009-05-19 18:27:01 -07:00
Andreas Gal
1b3325e54b Merge. 2009-05-19 18:05:46 -07:00
Andreas Gal
93b2ad1560 Backed out changeset 8f6c242a75ff (backing out bug 493657 again). 2009-05-19 18:05:36 -07:00
Andreas Gal
e1ec272070 Merge. 2009-05-19 16:40:57 -07:00
Andreas Gal
6f6e576407 Backed out changeset c4cea7365f4e (re-landing 493657). 2009-05-19 16:40:46 -07:00
Brendan Eich
5e1884b17c Back out patch for 493760, chrome mochitests failed. 2009-05-19 16:34:40 -07:00
Andreas Gal
e86ac48565 Merge. 2009-05-19 14:25:47 -07:00
Andreas Gal
f6767c7bf3 Backed out changeset cec8ee353407 (bug 493657). 2009-05-19 14:25:33 -07:00
Brendan Eich
042c576ad3 Bug 492904 - TM: Crash [@ TraceRecorder::test_property_cache] (r=gal). 2009-05-19 12:57:32 -07:00
Andreas Gal
c65a879e83 Wrong callee is restored when side-exiting from a trace (493657, r=brendan). 2009-05-19 12:47:47 -07:00
Brendan Eich
155c5a7bef Bug 493760: fix bad typo in patch for bug 493466 (superluminal r=mrbkap). 2009-05-19 12:11:09 -07:00
Brendan Eich
8dd842bcc0 Bug 493466 - TM: youtube.com customization broken (r=mrbkap). 2009-05-18 18:02:51 -07:00
Robert Sayre
d282094195 Merge. 2009-05-18 20:14:14 -04:00
Robert Sayre
7e5abe31fc Bug 493586. JSON.parse replacer function doesn't elide object values correctly. r=brendan 2009-05-18 20:12:51 -04:00
Brendan Eich
870f3e9f7b Back out patch for 493760, chrome mochitests failed. 2009-05-19 16:22:21 -07:00
Brendan Eich
460d1168c1 Bug 492904 - TM: Crash [@ TraceRecorder::test_property_cache] (r=gal). 2009-05-19 12:59:08 -07:00
Brendan Eich
ad8587fc63 Bug 493760: fix bad typo in patch for bug 493466 (superluminal r=mrbkap). 2009-05-19 12:13:48 -07:00
Ben Turner
8adb6b912d Bug 490718 - 'XPCWrappedNativeScope creates a needless cycle with its principal provider.' r=peterv, sr=jst. 2009-05-19 10:56:01 -07:00
Neil Rashbrook
87ed627db1 gmake 3.80 bustage fix for bug 488175 r=bsmedberg 2009-05-19 16:08:15 +01:00
Andreas Gal
64939ced4e Update JSSLOT_ARRAY_COUNT when emitting array constructor code on trace (493255, r=jorendorff). 2009-05-18 15:56:11 -07:00
Robert Sayre
ff3d52ef6b Merge mozilla-central to tracemonkey. 2009-05-18 13:18:48 -04:00
Robert Sayre
fb9bbee93a Backout last cset. Bug 487607 is not ready yet. 2009-05-18 12:36:02 -04:00
Jacob Bramely
3bc2282991 Bug 487607 - TraceMonkey: The ARM-specific Assembler::BL method is never called. r=vlad 2009-05-18 12:23:18 -04:00
timeless@mozdev.org
31ab6a1849 Bug 491194 - fixing miscellaneous warnings. r=biesi 2009-05-18 12:43:55 +02:00
Nicholas Nethercote
de4a19af0a Bug 492491 - nanojit: convert some error() tests to asserts. r=edwsmith 2009-05-18 02:27:12 -04:00
Nicholas Nethercote
c6c72b27f7 Bug 492490 - nanojit: move Assembler::findVictim() from RegAlloc.cpp to Assembler.cpp 2009-05-18 02:20:59 -04:00
Nicholas Nethercote
55f1ebda7d Bug 490947 - nanojit: remove reservation table. r=gal,edwsmith 2009-05-18 02:15:24 -04:00
Nicholas Nethercote
80121dc08a Bug 492488 - nanojit: improve handling of 64-bit constants. r=graydon 2009-05-18 01:56:25 -04:00
Nicholas Nethercote
beef280ae7 Bug 492301 - nanojit: remove some dead code. r=edwsmith 2009-05-18 01:45:46 -04:00
Nicholas Nethercote
c48b67729e Bug 492292 - nanojit: remove duplicated LIns predicates. r=edwsmith 2009-05-18 01:38:00 -04:00
Jacob Bramley
585bedfb6a Bug 490838 - TraceMonkey: Improve epilogue efficiency for ARM. r=vlad 2009-05-18 01:32:10 -04:00
Vladimir Vukicevic
3925ec2b89 b=490296; small fixup to asm_ldr_chk -- we can do PC-relative loads as long as the offset fits in U12; r=me 2009-05-17 12:20:09 -07:00
Jacob Bramley
cd7e977674 b=490296; [arm] tidy misc insn generation macros; r=vlad 2009-05-17 12:11:53 -07:00
Jacob Bramley
fdba9c7b4f b=490296; [arm] tidy ::asm_ld_imm; r=vlad 2009-05-17 12:03:33 -07:00
Andreas Gal
b5ba277e01 Compilation fix. 2009-05-15 22:04:02 -07:00
Robert Sayre
ad7b70b265 Merge m-c to tracemonkey. 2009-05-16 00:42:42 -04:00
Andreas Gal
5ad102105e Fix compiler warning (493345, r=brendan). 2009-05-15 21:01:22 -07:00
Brendan Eich
7ca87f34c5 Bug 493177 - Browser crashes in loading of certain page.[@ js_Interpret] (r=mrbkap; take 2). 2009-05-15 17:38:38 -07:00
Brendan Eich
e91209d8dc Back out last cset. 2009-05-15 17:32:02 -07:00
Brendan Eich
5648bbb12a Bug 493177 - Browser crashes in loading of certain page.[@ js_Interpret] (r=mrbkap). 2009-05-15 17:13:34 -07:00
Simon Fraser
31337be13c Bug 74803 - Should make global data const where possible; xpconnect; r=brendan 2009-05-16 01:14:17 +02:00
Robert Sayre
6bac4ecb22 Merge tracemonkey to mozilla-central. 2009-05-15 19:09:54 -04:00
Blake Kaplan
9e84859560 Bug 493315 - Random cleanup in jsdbgapi.cpp. r=sayrer 2009-05-15 15:59:00 -07:00
Blake Kaplan
fce69e31c1 Bug 492912 - Clean up the way that TraceRecorder::elem interacts with the rest of the world. r=gal 2009-05-15 15:41:41 -07:00
Brendan Eich
d08157dd74 Bug 489034 - let declaration getting lost in certain situations (r=mrbkap). 2009-05-15 15:32:57 -07:00
Graydon Hoare
22fc6e80e5 Comment typo fix in tracemonkey. 2009-05-15 19:31:31 -07:00
Jason Orendorff
f1b4a2f70c Bug 491646 - Expose js_StrictlyEqual() to consumers. r=mrbkap.
--HG--
extra : rebase_source : 620a67bca11c2e04692d3f72df8739028d0dbd21
2009-05-15 14:51:02 -05:00
Jacob Bramley
46a6ee3356 Bug 490296. Tidy ::asm_fop (v2). r=vlad. 2009-05-15 14:50:53 -04:00
Jacob Bramley
a73a50055e Bug 490296. Tidy ::asm_ldr_chk (v2). r=vlad. 2009-05-15 14:50:00 -04:00
Jacob Bramley
930f8354a2 Bug 490296. Tidy ::asm_prep_fcall. r=vlad. 2009-05-15 14:49:10 -04:00
Jacob Bramley
000fadcbe1 Bug 490296. Tidy ::LD32_nochk. r=vlad. 2009-05-15 14:45:42 -04:00
Jacob Bramley
6255511d37 Bug 490296. Tidy ::asm_quad. r=vlad. 2009-05-15 14:44:39 -04:00
Jacob Bramley
717f6d4a34 Tidy ::asm_load64. r=vlad. 2009-05-15 14:36:58 -04:00
Jacob Bramley
199dc3b4a1 Tidy ::asm_restore. r=vlad. 2009-05-15 14:35:47 -04:00
Robert Sayre
3dec296503 Merge. 2009-05-15 12:41:33 -04:00
Peter Van der Beken
19f5997758 Merge backout. 2009-05-15 16:39:20 +02:00
Benjamin Smedberg
8c54d984f8 Bug 492113 - statically assert that we're not on trace in js_SetPropertyHelper, r=igor 2009-05-15 09:37:37 -04:00
Peter Van der Beken
a13d3e8fd0 Backed out changeset 5e867032abe5 (Fix for bug 490592 (Possible to GC way too much during shutdown due to XUL and XBL prototypes).) to try to fix Tshutdown regression. 2009-05-15 14:49:21 +02:00
Peter Van der Beken
5183c4b1f3 Backed out changeset 3e3d2d8cc70f (bug 492483 - fixing !JS_THREADSAFE build failure.) to try to fix Tshutdown regression. 2009-05-15 14:35:14 +02:00
Igor Bukanov
b38b60db58 bug 490364 - mutating parent chain shapes only for Call objects and only when adding properties that are not parameter or var names. r=brendan 2009-05-15 11:43:19 +02:00
Graydon Hoare
19b4333af8 Bug 492673 - TM: Fix memory pressure measurement, r=brendan. 2009-05-14 20:12:40 -07:00
Igor Bukanov
8cfde3fc8e bug 492483 - fixing !JS_THREADSAFE build failure. r=mrbkap. 2009-05-14 18:39:44 +02:00
Jason Orendorff
dd7cc5cf3b Bug 492714 - "Assertion failure: cg->staticLevel >= level, at ../jsemit.cpp" with genexp. r=brendan 2009-05-13 19:02:33 -05:00
Igor Bukanov
880121715e bug 491126 - sharing object map for non-native objects. r=brendan 2009-05-14 12:35:23 +02:00
Brendan Eich
c4a8ea048a Bug 492914 - TM: trace aborts due to flat closure analysis bug (r=mrbkap). 2009-05-13 23:01:08 -07:00
Andreas Gal
1930d5ea3c Only the global object has to be wrapped on trace, which we can do statically and abort on With objects used as 'this' (492028, r=mrbkap). 2009-05-13 21:57:35 -07:00
Brendan Eich
292efeccc2 Bug 492355 - Suspected Txul regression from JS engine changes (r=igor). 2009-05-13 17:11:23 -07:00
Andreas Gal
da80634269 Use js_TrashTree when purging global scripts (492496, r=graydon). 2009-05-13 13:54:55 -07:00
Igor Bukanov
58dd2abb57 bug 490364 - fixing bad typo in js_SetProtoOrParent. r=mrbkap 2009-05-13 15:05:28 +02:00
Robert Sayre
e9165906c5 merge tracemonkey to mozilla-central. 2009-05-14 03:44:11 -04:00
Olli Pettay
61994c29ad Bug 461861, r=mrbkap, sr=jst
--HG--
extra : rebase_source : a5aea484f992785a3d67bb03d7fe074ce4f7f95a
2009-05-14 10:03:15 +03:00
Ginn Chen
35ec9a36b8 Bug 492705 Rename jsdtracef.c to jsdtracef.cpp r=sayrer
--HG--
rename : js/src/jsdtracef.c => js/src/jsdtracef.cpp
2009-05-14 14:38:17 +08:00
Robert Sayre
d9910c9a12 Merge tracemonkey to mozilla-central. 2009-05-13 23:37:16 -04:00
Blake Kaplan
1942f8e50b Bug 483672 - Give regular JS objects that have been reflected into C++ a security policy that follows the same-origin model. Also teach caps about "same origin" for these cases. r=jst sr=bzbarsky 2009-05-13 15:01:01 -07:00
Andreas Gal
645a8cf4b3 Clear temporary rooting area after native calls on trace (492693, r=jwalden). 2009-05-12 20:55:50 -07:00
Andreas Gal
ff72ecf41c Don't try to compile more code once we are in a needFlush state (492664, r=dmandelin). 2009-05-12 20:53:43 -07:00
Andreas Gal
b9a98aa47c Backed out changeset c8a74fe0f9af (bug 492664). 2009-05-12 16:44:14 -07:00
Andreas Gal
8cc5c13b9c Don't try to compile more code once we are in a needFlush state (492664, r=dmandelin). 2009-05-12 16:42:21 -07:00
David Mandelin
3aca99f4a6 Bug 492610: correctly determine when an upvar is part of the trace, r=brendan 2009-05-12 16:25:57 -07:00
Jeff Walden
987243c6ae Bug 492599 - Recording of JSOP_NEWARRAY doesn't update JSSLOT_ARRAY_COUNT properly. r=jorendorff 2009-05-12 14:31:44 -07:00
Peter Van der Beken
88bc7e0eed Fix for bug 482788 (Lightweight DOM wrappers). r=jst, sr=mrbkap. 2009-05-12 22:20:42 +02:00
romaxa
39201a0864 Bug 487782. Add hildon-mime.h to system headers list. r=sdwilsh 2009-07-04 21:59:05 +12:00
Blake Kaplan
0f90334c43 Bug 500931 - Ensure that weak reference wrappers return the right object when called upon. r=bent sr=jst 2009-07-02 17:00:21 -07:00
Blake Kaplan
3a7c25ffc5 Bug 501577 - Add a missing call to Release in nsXPCWrappedJS::GetNewOrUsed. Also remove a hack needed to get around the missing release. r+sr=peterv 2009-07-02 17:00:20 -07:00
Blake Kaplan
f8079004d8 Bug 500691 - Call JS_ClearScope before XPConnect tries to update our outer window's scope's concept of what {Function,Object}.prototype are so that we forward correctly to the inner window's versions. r=jst sr=bzbarsky 2009-07-01 16:43:50 -07:00
Blake Kaplan
3a585ac10e Bug 496441 - Random cleanup: only calculate the callee once. r+sr=jst 2009-07-01 12:12:04 -07:00
Blake Kaplan
0e3666d7db Bug 496441 - Some random cleanup: remove an unnecessary macro. r+sr=jst 2009-07-01 12:12:04 -07:00
Blake Kaplan
be45a2cbca Bug 498000 - Throw a better error when toString is called cross-origin on an XPCNativeWrapper from an unprivileged context. r+sr=bzbarsky 2009-07-01 12:12:04 -07:00
Blake Kaplan
42d074eead Merge backout. 2009-06-30 16:22:43 -07:00
Blake Kaplan
1acd3bbae9 Backed out changeset 291552e67a3b due to leaks. 2009-06-30 16:22:20 -07:00
Johnny Stenback
ac0964e5c0 Fixing bug 442399. Remove LiveConnect from the tree. r=joshmoz@gmail.com, bclary@bclary.com, sr=brendan@mozilla.org 2009-06-30 15:55:16 -07:00
Blake Kaplan
ab3e0a7b79 Bug 500931 - Ensure that weak reference wrappers return the right object when called upon. r=bent sr=jst
--HG--
extra : rebase_source : 5f73d1e92b912cf88c8a45a3ccd53de35c7b1e3d
2009-06-30 13:49:46 -07:00
Robert Sayre
4f8e9eb508 Merge tracemonkey to mozilla-central. 2009-06-30 12:19:07 -07:00
Benjamin Smedberg
f8d8a6a5c2 Add headers to system-headers which we're using in electrolysis (trivial change)
--HG--
extra : rebase_source : b057f7d6cdb6c5eb737b229ccc7ac7a812c24648
2009-06-29 15:41:40 -04:00
Jason Duell
e104dd4bd5 Bug 483689. Add fflush to print() and dump() in xpcshell, and do some cleanup. r=mrbkap
--HG--
extra : rebase_source : 4ad9ed9ddada4d6b6705c1f8a4a84c39213bf2f8
2009-06-29 11:01:42 +12:00
Olli Pettay
153114284b Bug 497780 - onmouseout's MouseEvent.relatedTarget is a chrome element and is completely inaccessible, r=mrbkap@gmail.com, sr=bz 2009-06-28 22:46:52 +03:00
Dão Gottwald
c56f325802 Backed out changeset 4ceba37b3b22 2009-06-28 12:52:22 +02:00
Marco Pesenti Gritti
f7db1904b1 Pick up the current system timezone when a Date object is created (492056, r=mrbkap). 2009-06-03 11:16:57 -04:00
Jacob Bramley
1358c19212 Bug 490296. Tidy ::asm_nongp_copy. r=vlad 2009-05-12 12:02:00 -04:00
Vladimir Vukicevic
2218e9fb49 Fix Windows CE from bug 487416 (arm architecture detection) 2009-05-12 10:06:39 +01:00
Josh Aas
f1fcda13ba Sync config.guess with latest from gnu "config" package. See bug for changelog. b=492623 r=ted 2009-05-12 23:47:03 -04:00
Robert Sayre
375d43a845 Merge tracemonkey to mozilla-central. 2009-05-12 23:19:58 -04:00
Leon Sha
de039f845f Bug 488775 - TM: widen LIR instructions. Sparc Changes. r=gal. remove dead codes 2009-05-12 11:43:57 +08:00
Leon Sha
7c5923b37d Bug 488775 - TM: widen LIR instructions. Sparc Changes. r=gal. 2009-05-12 10:41:25 +08:00
David Mandelin
3859957ac1 Bug 458838: updating test case to pass when we successfully trace out-of-reach upvars 2009-05-11 18:58:10 -07:00
David Mandelin
b6ebadd691 Fix warning for extra args to a debug printf 2009-05-11 18:44:49 -07:00
David Mandelin
f0a30c0e9c Bug 458838: enable tracing of upvar accesses that go outside the current trace to interpreter state, r=gal 2009-05-11 18:05:44 -07:00
Andreas Gal
a9c94fc9f3 Ensure that cx->interpState is always accurate by maintaing a stack (490776, r=jorendorff). 2009-05-11 17:25:38 -07:00
David Mandelin
ca529a8ed9 Bug 491620: make traces specialized for argc, r=gal 2009-05-11 15:57:28 -07:00
Jeff Walden
b94ddcc604 Likely gmail bustage fix 2009-05-11 15:41:00 -07:00
Jeff Walden
e7eb58ce5a Bug 486326 - Specialize array methods which modify large numbers of array elements to work efficiently on dense arrays, avoiding highly generalized get/set/delete methods and the floating-point-to-integer conversions needed solely to handle large array indexes but which are rarely necessary in practice. r=shaver 2009-05-11 14:57:18 -07:00
Andreas Gal
61f49d954f Make sure stack frame is flagged as constructor frame when falling off trace in a slow native constructor (491965, r=graydon). 2009-05-11 14:40:42 -07:00
Andreas Gal
bb2286575d Fast-path for string constructors only works for new/call with a single argument (491989, r=dmandelin). 2009-05-11 14:03:29 -07:00
Andreas Gal
0271d049f6 Bug 489836 - TM: chiptune causes Assertion failure: \!ti->typeMap.matches(ti_other->typeMap) 2009-05-11 12:20:41 -04:00
Jacob Bramley
e5278aa949 Bug 483962 - Remove ARM-specific code from jstracer.cpp. r=vlad 2009-05-11 12:16:01 -04:00
Brendan Eich
7b6d444f05 Bug 492150 - Unexpected error occurred when japascript.options.strict is true (r=mrbkap). 2009-05-10 12:52:03 -07:00
Jacob Bramley
3df2aa7867 Bug 487416 - TraceMonkey: Improve run-time detection of ARM processor features. r=vlad 2009-05-09 16:14:38 -04:00
Jacob Bramley
304c837e56 Bug 486669 - TraceMonkey: The ARM-specific _nSlot pointer should be reset along with _nIns. r=vlad,edwsmith 2009-05-09 15:35:56 -04:00
Jacob Bramley
6a6cb1e7d0 Bug 486096 - TraceMonkey: ARM BKPT instructions are not properly encoded. r=vlad 2009-05-09 15:32:29 -04:00
Nicholas Nethercote
4115b8749f Bug 488775 - TM: widen LIR instructions. r=graydon,edwsmith 2009-05-09 14:38:34 -04:00
Robert Sayre
413b33b193 Merge mozilla central to tracemonkey. 2009-05-09 12:45:33 -04:00
Brendan Eich
d0c1a7cd04 Bug 490191 - "Assertion failure: slot < fp->script->nslots, at ../jsinterp.cpp" with defineGetter, eval (r=mrbkap). 2009-05-08 16:20:46 -07:00
Graydon Hoare
b7073d8130 Bug 492124 - TM: unit tests should gc() before each, to purge JIT state, r=brendan. 2009-05-08 17:02:37 -07:00
Brendan Eich
4b69abe325 Bug 452189 - regression (from firefox 2): prototype setters not called by inline cache for [[put]] (r=mrbkap). 2009-05-08 14:04:10 -07:00
Brendan Eich
10beee793d Bug 490818 - Packed JS that works in Firefox 3.0 and all other browsers fails in Firefox 3.5 (r=mrbkap). 2009-05-08 14:00:56 -07:00
Benjamin Smedberg
21630aafe1 Bug 492040 - js_Execute must bail off trace, r=jorendorff a=josh for CLOSED TREE checkin 2009-05-08 16:32:35 -04:00
Benjamin Smedberg
a072edf190 Bug 492040 - js_Execute must bail off trace, r=jorendorff a=josh for CLOSED TREE checkin 2009-05-08 16:32:35 -04:00
Jeff Walden
47c6a6149c Bug 482266 - E4X and imacros don't mix. r=graydon 2009-05-08 13:48:05 -07:00
Brendan Eich
55c9418946 Bug 471703 - Don't optimize group assignment given holey RHS (r=igor). 2009-05-07 21:50:32 -07:00
Brendan Eich
aa12e01881 Bug 471703 - Don't optimize group assignment given holey RHS (r=igor). 2009-05-07 21:49:53 -07:00
Brendan Eich
a1b9c0b2ff Bug 491806 - "Assertion failure: (uintN)i < ss->top, at ../jsopcode.cpp" with uneval, for, yield (r=mrbkap). 2009-05-07 21:32:58 -07:00
Brendan Eich
a296d180d9 Bug 491806 - "Assertion failure: (uintN)i < ss->top, at ../jsopcode.cpp" with uneval, for, yield (r=mrbkap). 2009-05-07 21:31:42 -07:00
Robert Sayre
da656e5ec9 Merge tracemonkey to mozilla-central. 2009-05-07 19:22:53 -07:00
Robert Sayre
85b3154b49 Fix up whitespace. CLOSED TREE 2009-05-07 17:22:33 -07:00
Graydon Hoare
e9f4b1a72d Bug 491929 - TM: Oracle bit vector allocation not thread-safe, r=gal. 2009-05-07 17:29:26 -07:00
Graydon Hoare
fe23683514 Bug 489615 - TM: Store recording attempts in a long-lived hashtable rather than fragments, r=brendan. 2009-05-07 15:49:44 -07:00
Robert Sayre
a7b739863d Bug 442059 - [native JSON] allow to blacklist keys by name when encoding to JSON. r=brendan 2009-05-07 13:28:21 -07:00
danderson@mozilla.com
8e6f6562ff Partial typemap in loop exit can lead to maltyped nested trees (489682, r=gal). 2009-05-07 12:16:12 -07:00
Peter Van der Beken
b64b14221a Fix for bug 490592 (Possible to GC way too much during shutdown due to XUL and XBL prototypes). r/sr=bz. 2009-05-07 11:19:41 -07:00
Igor Bukanov
d4158c6c45 bug 492483 - fixing !JS_THREADSAFE build failure. r=mrbkap. 2009-05-14 18:39:44 +02:00
Peter Van der Beken
8443f4d14c Fix for bug 475737 (Windows stay alive too long because nsJSContext doesn't unlink correctly). r=bent, sr=jst. 2009-05-07 11:19:36 -07:00
Robert Sayre
70096cee20 Merge tracemonkey to mozilla-central. 2009-05-16 13:04:50 -04:00
Peter Van der Beken
1dfd758d21 Merge backout. 2009-05-16 16:17:50 +02:00
Peter Van der Beken
1278a8efe2 Backed out changeset 0c8d4f846be8 (Fix for bug 475737 (Windows stay alive too long because nsJSContext doesn't unlink correctly).) to try to fix Tshutdown regression. 2009-05-16 16:16:55 +02:00
Honza Bambas
2cc8843616 Bug 492219 - localStorage's constructor should be Storage, r+sr=jst 2009-05-16 15:59:30 +02:00
Peter Van der Beken
0c43ed75e7 Fix for bug 475737 (Windows stay alive too long because nsJSContext doesn't unlink correctly). r=bent, sr=jst.
--HG--
extra : rebase_source : 459f24ea980bf4cab29bc88115138f6ed5144e49
2009-05-07 11:19:36 -07:00
Vladimir Vukicevic
e019bae7fa bug 487416; JS Windows CE bustage fix 2009-05-10 15:49:24 -07:00
Robert Sayre
a239571e1f Merge. 2009-05-19 04:14:51 -04:00
Blake Kaplan
9e30170668 Bug 491219 - Make SOWs wrap more deeply. r+sr=jst 2009-05-18 16:52:12 -07:00
Benjamin Smedberg
6df221580d Bug 488175 - flatten dist/include and provide mechanism to install certain headers in namespaced subdirectories (e.g. #include "mozilla/XPCOM.h") r=ted
--HG--
rename : xpcom/ds/nsTimeStamp.cpp => xpcom/ds/TimeStamp.cpp
rename : xpcom/ds/nsTimeStamp.h => xpcom/ds/TimeStamp.h
2009-05-18 14:15:05 -04:00
Jim Blandy
a5175e0414 Bug 485141: Build fixes for Symbian in js/src patch=harry.li r=jimb 2009-05-18 11:07:39 -07:00
Robert Sayre
856ae79440 Merge mozilla-central to tracemonkey 2009-05-06 20:49:50 -07:00
Graydon Hoare
c80c21b2c5 Bug 491514 - Followup, change from sizeof(LIns*) to sizeof(LIns), r=gal. 2009-05-06 17:41:52 -07:00
Andreas Gal
2fa623edd8 We don't constant fold math on doubles and ints (465286, r=edwsmith). 2009-05-06 16:48:41 -07:00
Igor Bukanov
91385b0a8b bug 491013 - fixing shared setter regression and eliminating several useless anonymous prototype objects. r=brendan 2009-05-06 20:33:10 -02:30
Graydon Hoare
1fa3e7f863 Bug 491514 - Lower skip limit in tracer, r=gal. 2009-05-06 15:19:50 -07:00
L. David Baron
f0c43ecb3d Switch HTML mochitests from using MochiKit.js to packed.js. (Bug 490955) r=sayrer 2009-05-06 13:46:04 -07:00
Robert Sayre
9b65ed8abc Merge mozilla-central to tracemonkey. 2009-05-06 11:16:59 -07:00
Blake Kaplan
e20f41edf4 Bug 491617 - Expose this as a friendly API. r=gal 2009-05-05 18:09:24 -07:00
Andreas Gal
d4ebd5f088 Follow-up fix for 479888. 2009-05-05 17:49:29 -07:00
nnethercote@mozilla.com
d2bca72b4d kill builtins.tbl (479888, r=jorendorff). 2009-05-05 17:36:26 -07:00
Andreas Gal
99885c3531 Fix burning static analysis tinderbox (no bug). 2009-05-05 14:51:35 -07:00
jorendorff
667faf6a5c Record all calls to native functions (487134, r=gal, brendan). 2009-05-05 14:26:06 -07:00
Jim Blandy
89eac144c6 Bug 488018: Avoid 'may be used uninitialized' error. (no r) 2009-05-04 16:46:15 -07:00
Andreas Gal
a31bcae6e1 Backed out changeset 6534f8b9aa74 (bug 491013, assert on startup). 2009-05-04 15:07:53 -07:00
Igor Bukanov
41e6bdf416 bug 491013 - fixing shared setter regression and eliminating several useless anonymous prototype objects. r=brendan 2009-05-03 20:43:55 -04:00
Igor Bukanov
20d86db12c bug 491115 - asserting in js_SetProtoOrParent only when not detecting cycles. r=brendan 2009-05-02 20:49:45 +02:00
Brendan Eich
18c4dc1df6 ug 490741 - Crash [@ js_GetUpvar] on datepick (r=mrbkap). 2009-05-01 18:55:26 -07:00
Igor Bukanov
233d97e50f bug 489501 - consolidating
js_SetProto must mutate the prototype chain. r=brendan
2009-05-01 13:48:27 -07:00
Blake Kaplan
c16eaa63ca Bug 491017 - Allow easy building of Narcissus through the autoconf build system. r=jimb 2009-05-01 10:47:08 -07:00
Igor Bukanov
1aba3fde59 bug - 488607
- fixing test_property_cache asserts. r=brendan
2009-05-01 07:10:25 -07:00
Jim Blandy
b73b00c649 Bug 488018: Fix bustage: any function using TRACE_2 needs an 'error' label. 2009-04-30 17:54:20 -07:00
Jim Blandy
ec2b6b679e Bug 488018: Propagate errors from tracer to interpreter. r=igor
Rename JSMonitorRecordingStatus to JSRecordingStatus.  The JSMRS_
prefix becomes JSRS_, accordingly.

Make 'record_' functions return JSRecordingStatus, not bool.  'false'
becomes 'JSRS_STOP'; 'true' becomes 'JSRS_CONTINUE'.  Since subsequent
patches will begin to use more than two values (the next assigns
meaning to JSRS_IMACRO), take care to propagate values to callers
accurately.

Define a new recording status, JSRS_ERROR.  Return it from recording
functions when appropriate.  Check for it at appropriate bottlenecks
in tracer and interpreter.

ABORT_TRACE becomes one of:
. ABORT_TRACE, for when we're simply aborting the recording process
. ABORT_TRACE_ERROR, for aborting due to an error
. ABORT_TRACE_CV, for producing an error message and returning something
  other than JSRS_STOP --- some contexts require boolean values.

Conditionally provide an alternative definition for the
JSRecordingStatus type that cannot be converted to 'bool', so that we
can use the C++ compiler to catch improperly converted code.

Use recording function return value for imacro invocation.  Eliminate
the JSFRAME_IMACRO_START frame flag.  Instead, return JSRS_IMACRO
directly from recording functions.
2009-04-30 17:30:46 -07:00
Andreas Gal
9ad9b9310a We don't cache access to shared properties in the property cache (490666, r=igor,brendan). 2009-04-30 15:52:13 -07:00
Brendan Eich
6428788ecd Bug 375250 - Reject (JSON is fixed now) E4X masquerading as JS source (r=igor/mrbkap). 2009-04-29 16:46:43 -07:00
Robert Sayre
e47d4905e1 Merge tracemonkey to mozilla-central. 2009-05-14 21:37:49 -04:00
Igor Bukanov
be78d4f651 bug 487846 - optimizing shape prediction for set opcodes. r=brendan 2009-04-29 07:07:21 -07:00
Andreas Gal
0b53b598fb Eliminate test_property_cache_direct_hit (490370, r=jorendorff). 2009-04-27 16:01:52 -07:00
Brendan Eich
cbf6351cc3 Bug 490339 - Unexpected ReferenceError when using "new Function()" (r=mrbkap). 2009-04-27 14:43:49 -07:00
Graydon Hoare
dbf7bafea1 Backout a seemingly problematic line of cset d8c2060b0f9b. 2009-04-24 23:13:27 -07:00