Commit Graph

4480 Commits

Author SHA1 Message Date
Blake Kaplan
57f49c4364 Bug 473437 - DumpJSStack() can set a pending exception in cx. r+sr=jst 2009-01-15 16:34:54 -08:00
Jeff Walden
314cf39c41 Bug 472592 - unbox_jsval is infallible, make the signature reflect that. r=gal 2009-01-11 13:57:42 -08:00
Jeff Walden
179a1749fb Despite the previous log message, the previous push was r=brendan 2009-01-10 15:25:03 -08:00
Jeff Walden
949fc3d056 Bug 466905 - Fix JSOP_NEWARRAY to be not-buggy and use it when possible. NOT REVIEWED YET 2009-01-10 12:15:08 -08:00
Blake Kaplan
a403a02f00 Bug 472787 - Eagerly set the return value. r=brendan 2009-01-09 18:32:04 -08:00
Andreas Gal
73fd6451b9 Track timeout side exits separately in jitstats (472761, r=jwalden). 2009-01-09 16:38:57 -08:00
Andreas Gal
4a9dbdaf12 Push a dummy copy of EBP onto the stack to make sure EBP is aligned in the new stack frame (472791, r=graydon,edwsmith). 2009-01-09 15:18:00 -08:00
Jason Orendorff
436a268bae Fix trace-test bustage due to my last checkin. 2009-01-09 17:12:20 -06:00
Robert Sayre
8e5f7ba091 Merge m-c to tracemonkey. 2009-01-09 01:23:32 -05:00
Robert Sayre
8549b885a1 Bug 466781 - TM: inconsistent (0 in d) where d is a String. r=brendan 2009-01-09 00:59:24 -05:00
Jeff Walden
75243b3b86 Destroying the temporary context used in evalcx and also doing a GC invalidates shape numbers, which kinda makes testing hard because it breaks shapeOf(evalcx("lazy")) === shapeOf(evalcx("lazy")); don't GC. rs=brendan 2009-01-08 17:54:04 -08:00
Jason Orendorff
cf74ec9191 Bug 471540 - TM: "Assertion failure: cp >= buf" at homicideReport.php. r=gal.
--HG--
extra : rebase_source : 7f3bc4e8db9ce307360792b889943d8609e8ff6e
2009-01-08 17:09:16 -06:00
Graydon Hoare
e0464655cd Bug 472594 - Make analysis-tests work in out-of-tree objdir, r=jorendorff. 2009-01-08 10:40:36 -08:00
Igor Bukanov
85bdf95da4 bug 419086 - replacing the branch callback with the operation callback. r=brendan 2009-01-08 00:44:52 +01:00
Graydon Hoare
8424af9530 Bug 472553 - Annotations required by jsstack.js analysis, r=jorendorff. 2009-01-07 14:14:51 -08:00
Igor Bukanov
3d5269621d bug 465030 - Support terminating long-running scripts without using extra threads or signals. r=gal,sayrer 2009-01-07 18:45:13 +01:00
Igor Bukanov
33ba59a269 Backed out changeset 763b96e81579 - I committed the wrong patch 2009-01-07 18:44:50 +01:00
Igor Bukanov
01c091bb60 bug 465030 - Support terminating long-running scripts without using extra threads or signals. r=gal,sayrer 2009-01-07 18:40:58 +01:00
Robert Sayre
9aa7891d67 Merge m-c to tracemonkey. 2009-01-07 11:42:59 -05:00
Graydon Hoare
6383e1d5d2 Bug 470388 - Tighten assertion for JSFRAME_POP_BLOCKS on trace-entry frame, r=brendan. 2009-01-06 18:20:33 -08:00
Jesse Ruderman
22cd32241d Add five crashtests 2009-01-06 16:47:56 -08:00
Jason Orendorff
7f92f10b08 Bug 468641 - TM: Add bytecode disassembly to JS_JIT_SPEW output (r=crowder) 2009-01-06 16:51:32 -06:00
Jason Orendorff
be00149c86 Bug 462021 - TM: Make JSStackFrame reconstitution infallible (part 4 of 4, rename recoveryDoublePool to reservedDoublePool, r=brendan)
--HG--
extra : rebase_source : d865549cb727aada20fbaa78286de37a97b85bca
2009-01-06 13:39:14 -06:00
Blake Kaplan
c878e5becb Bustage fix from bug 458020 2009-01-06 14:34:16 -05:00
Blake Kaplan
63803e5282 Bug 458020 - Ensure that the display is correct when evaluating a script in a stack frame. r=brendan
--HG--
extra : rebase_source : 01aba83379c17c0abda66ce44adb5d04686fc923
2009-01-06 14:17:12 -05:00
Blake Kaplan
872a17cbfa Bug 470720 - Don't automatically unwrap XOWs or SJOWs in XPCNativeWrappers. r+sr=jst
--HG--
extra : rebase_source : a670c95a103ae0ced9ff50b31d07c7f7958d9339
2009-01-06 14:17:02 -05:00
Blake Kaplan
d269689358 Bug 471366 - Deal with XPCNativeWrapper.prototype correctly. r+sr=jst
--HG--
extra : rebase_source : d651d4f31f41e17a5c31b586cb5906eb7aaab271
2009-01-06 14:16:58 -05:00
timeless@mozdev.org
ede6a5c2f9 Bug 472292 Crash [@ jsdScript::CreatePPLineMap() ] with Firebug when invoking a non-function from an event handler.
r=caillon
2009-01-06 21:34:56 +01:00
Brian Crowder
36fd05589c Bug 471513 - invalid C++ in jsopcode.cpp, r=brendan 2009-01-06 09:18:36 -08:00
Brian Crowder
5bd03bd9a9 Bug 411726 - Use localtime_r when available, to improve Date reporting for locales like Venezuela on platforms like OS X. r=mrbkap, r=ted (for build changes) 2009-01-06 09:18:35 -08:00
Brian Crowder
ca4eed1e1d Bug 433073 - jsregexp.cpp should use dependent strings, r=igor 2009-01-06 09:18:35 -08:00
timeless@mozdev.org
cdcfd4b062 Bug 427164 - jsdIScript.isLineExecutable should return NS_ERROR_OUT_OF_MEMORY for oom, r=caillon 2009-01-04 10:59:17 -08:00
timeless
f254a8e531 Bug 469795 - tolerate contexts which don't have a JSOPTION_PRIVATE_IS_NSISUPPORTS; r+sr=jst 2009-01-04 09:06:51 +01:00
Robert Sayre
34560c2aa8 Merge m-c to tracemonkey. 2009-01-02 12:37:55 -08:00
Andreas Gal
a59109830e Use a single lirbuf for the tracer and rewind lirbuf during GC (471821, r=danderson). 2009-01-02 10:55:02 -08:00
Andreas Gal
a046abd718 Merge. 2009-01-01 17:57:11 -08:00
Andreas Gal
8b28ae8610 Store frame state information in the code cache and merely put a pointer to it onto the native call stack (470375, r=danderson). 2009-01-01 17:55:43 -08:00
Robert Sayre
ed2bf0b595 Mergre mozilla-central to tracemonkey. 2009-01-01 14:25:18 -08:00
Jesse Ruderman
cf4b91bb09 Add 19 crashtests 2009-01-01 14:18:58 -08:00
Phil Ringnalda
b6f4c63c3c Backed out changeset e0cce6a738c9 (Bug 466224 - Make quickstubs call nsINode/nsINodeList methods) for failing mochitest 2008-12-31 18:21:52 -08:00
David Mandelin
90baccb99f Bug 471602 part 1: make regexp compiler use one shared LIR buffer, r=gal 2008-12-31 16:41:33 -08:00
Brendan Eich
67cd92d2ce Bug 471531 - js1_7/decompilation/regress-379925.js | js1_8_1/decompilation/regress-371802.js FAIL (r=jorendorff). 2008-12-31 12:32:35 -08:00
David Mandelin
5ca9583177 Merge. 2008-12-31 11:46:10 -08:00
David Mandelin
77dfbdd679 Attempted fix for bug 470492: top crash in regexp LIR generation, r=gal 2008-12-31 11:43:50 -08:00
Peter Van der Beken
9f2cfc5446 Fix for bug 466224 (Make quickstubs call nsINode/nsINodeList methods). r/sr=jst. 2008-12-31 14:55:20 +01:00
Robert Sayre
98792ddd09 Merge. 2008-12-31 01:53:26 -05:00
Andreas Gal
e47badd3c9 Merge. 2008-12-30 17:04:04 -08:00
Andreas Gal
21b0d26f45 Allocate the next page to be used in a lirbuf early to avoid running OOM during a page overflow (471316, r=danderson). 2008-12-30 17:03:43 -08:00
Peter Van der Beken
78fa6325a2 Fix for bug 466224 (Make quickstubs call nsINode/nsINodeList methods). r/sr=jst. 2009-01-02 18:00:18 +01:00
Bo Yang
86206e20f5 Bug 453094 - Some strong type conversion make GCC not complain; r=jorendorff sr=peterv 2009-01-02 07:21:26 +01:00
Brendan Eich
bf1a6adcb8 Bug 470374 - Decompiler fixes from bug 469625 (r=jorendorff). 2008-12-29 23:22:23 -08:00
Andreas Gal
1abb0dc188 Merge. 2008-12-29 15:30:54 -08:00
Andreas Gal
8cebbe8e58 Backed out changeset 4acb47a25eb5 2008-12-29 15:30:25 -08:00
Andreas Gal
8d9dc45719 Merge. 2008-12-29 14:27:15 -08:00
Andreas Gal
c05bef5b82 Convert String objects into primitive strings when invoking String functions on them (470609, r=jorendorff). 2008-12-29 14:26:51 -08:00
Jeff Walden
6f05e9de07 Make similar-acting code similar-reading as well (but not shared due to the +/- difference), no bug 2008-12-29 07:59:06 -06:00
Igor Bukanov
b2f4132cb7 bug 471197 - during GC call js_GetTopStackFrame only for contexts with frames. r=brendan 2008-12-27 00:05:15 +01:00
Jeff Walden
af717d86d5 Bug 470739 - Trace more == cases. r=gal 2008-12-26 14:48:33 -05:00
Robert Sayre
c36cc631e9 Ho ho ho, it's a lump of hg coal. Merge.
--HG--
rename : js/src/js.cpp => js/src/shell/js.cpp
2008-12-25 20:19:52 -05:00
Igor Bukanov
72063471f8 bug 471044 - fixing upgvar detection for for-in loop. r=mrbkap 2008-12-25 01:23:38 +01:00
Blake Kaplan
22b6fad69e Bug 470758 - Don't generate upvars on the left side of a for-in loop. r=brendan 2008-12-23 15:45:44 -08:00
Phil Ringnalda
7663cc21c2 Merge for backout of changeset 55e23c647137 (bug 462004) so the backout for bug 467862 to solve bug 471097 can actually build 2008-12-25 19:51:35 -08:00
Phil Ringnalda
2d35d8d90f Backed out changeset 55e23c647137 (bug 462004) so the backout for bug 467862 to solve bug 471097 can actually build 2008-12-25 19:49:53 -08:00
Phil Ringnalda
6b1e0c2bec Merge for backout of changeset 73be1c836d7f (bug 467862) to see if that fixes Windows bustage (bug 471097) 2008-12-25 19:28:31 -08:00
Phil Ringnalda
46e630cc96 Backed out changeset 73be1c836d7f (bug 467862) to see if that fixes Windows bustage (bug 471097) 2008-12-25 19:27:15 -08:00
Ted Mielczarek
b597404d2c bug 467862 - Build system should support building both a static and a shared library from the same Makefile. r=bsmedberg 2008-12-24 14:04:43 -05:00
Igor Bukanov
81c3a2b632 Backed out changeset 2d5e6b1c7254 - busted the WINNT 5.1 talos tracemonkey. 2008-12-23 19:24:09 +01:00
Andrei Saprykin
11dac3f234 bug 453157 - watchdog thread as an alternative to operation count. r=igor,mrbkap 2008-12-23 16:12:11 +01:00
Jesse Ruderman
dba23c0ab9 Fix bustage 2008-12-22 16:07:49 -08:00
Jeff Walden
5d25aca194 Bug 470737 - TM: "switch(1/0){case Infinity:}" 4X slower with JIT enabled. r=gal 2008-12-22 15:42:24 -08:00
Jim Blandy
1107758ffc Bug 469225: Move HAVE_ARM_SIMD test after header file tests. r=vladimir
This should have no effect; the test there is in the midst of a
section titled, "Checks for header files", and doesn't belong there.

I've made the same change in both the top-level configure.in and
js/src/configure.in, just to keep things parallel.
2008-12-22 13:59:28 -08:00
Jim Blandy
d22127996a Bug 467583: Make js/src share the 'dist' tree with the enclosing build. r=ted.mielczarek 2008-12-22 13:22:38 -08:00
Benjamin Smedberg
6f98baeeca Bug 470000 - JS_GET_SCRIPT_ATOM needs to use cx->fp safely, r=brendan 2008-12-22 11:07:40 -05:00
Jeff Walden
5d05cfd543 Bug 470409 - TM: Crash [@ js_EqualStrings]. r=brendan 2008-12-21 21:26:08 -08:00
Jeff Walden
6f0de3c4e0 Bug 470137 - TM: Behavioral difference in addition of objects between JIT, non-JIT. r=brendan 2008-12-21 21:26:08 -08:00
Igor Bukanov
136838d60b Backed out changeset 7184e014cd05 - the patch for bug 453157 bursted tgfx test on Windows. 2008-12-21 21:49:06 +01:00
Andrei Saprykin
c68c632137 bug 453157 - watchdog thread as an alternative to operation count 2008-12-21 17:16:09 +01:00
Igor Bukanov
5d5cb0738c bug 469233 - using interrupt hook support in the interpreter for trace recording. r=brendan 2008-12-21 12:55:09 +01:00
Igor Bukanov
8062218e55 Backed out changeset 605fd1985d05 - more merge typos. 2008-12-21 12:50:36 +01:00
Igor Bukanov
1be7edd38e bug 469233 - using interrupt hook support in the interpreter for trace recording. r=brendan 2008-12-21 12:31:38 +01:00
Igor Bukanov
635ca1d23a Backed out changeset f13e2a2a5d66 - I was not careful when merging the unary op changes 2008-12-21 12:23:08 +01:00
Michael Ventnor
f3922bdde6 Bug 470165 - Cleanup the GTK nsFilePicker code; r+sr=roc 2008-12-21 02:33:04 +01:00
Igor Bukanov
3388b615ce bug 469233 - using interrupt hook support in the interpreter for trace recording. r=brendan 2008-12-21 00:16:41 +01:00
Jeff Walden
4710efd8a4 Bug 469942 - TM: 20% slower to compute unary +/-. r=brendan 2008-12-19 19:30:09 -08:00
Jeff Walden
aa66ca5eb0 Whitespace patrol, move some tests before mandelSet where they should have been, add big scary warnings about not putting anything after mandelSet because they won't get run very often (not until just pre-commit, usually). 2008-12-19 19:09:27 -08:00
Ted Mielczarek
e41c278e04 bug 467271 - JS not being PGOed on win32. r=bsmedberg 2009-01-08 13:52:38 -05:00
Ted Mielczarek
d8bff4cf58 bug 471188 - stop calling 'make install' for spidermonkey. r=bsmedberg,jimb 2009-01-08 13:51:27 -05:00
Graydon Hoare
67237b98c7 Bug 469012 - crashing LirBufWriter::insLinkToFar, r=danderson. 2008-12-19 16:20:51 -08:00
Graydon Hoare
77e4ed2e26 Bug 464862 - Calculate call-argument deltas relative to last word of LirCallIns, not first, r=danderson. 2008-12-19 16:20:13 -08:00
Blake Kaplan
d34f6dd726 Bug 468552 - Enforce 'funobj' conditions in the XPCNativeWrapper case. r+sr=jst
--HG--
extra : rebase_source : 6023cc8a797167551461fe6f8fb003d98b4f5b9b
2008-12-19 15:47:20 -08:00
Blake Kaplan
bab2bf9e49 Bug 468581 - Use a better function to compute principals. r=brendan
--HG--
extra : rebase_source : 137705045b8b528c49405a52f91455306ecf9857
2008-12-19 15:47:20 -08:00
Brendan Eich
7826ab3e9f Fix warnings pointed out by Waldo from apply patch (465214). 2008-12-19 14:15:35 -08:00
Robert Sayre
ee109c9def Merge m-c to tracemonkey. 2008-12-19 15:50:52 -05:00
Jim Blandy
41e717de51 Bug 462914: Test for setlocale at configure time in js/src r=crowder 2008-12-19 10:31:43 -08:00
Jim Blandy
b3a9d80456 Bug 469225: Make js/src/configure take a --disable-arm-vfp option. r=vladimir
This controls whether NJ_ARM_VFP is #defined in the SpiderMonkey
build.  By default it is enabled.

Note that commenting out the hard-wired definition of NJ_ARM_VFP in
js/src/nanojit/NativeARM.h makes that line of the file match what's in
tamarin-redux, so hopefully there won't be conflicts with whatever
arrangement Adobe comes up with to control this.
2008-12-19 10:20:36 -08:00
Brendan Eich
608700e168 Back out patch for bug 469625, it mysterious busts stuff. 2008-12-19 01:32:48 -08:00
Brendan Eich
16350be804 Merge, dammit! 2008-12-18 22:40:58 -08:00
Brendan Eich
b9cf426072 Bug 469625 - TM: Crash [@ js_String_getelem] (r=jorendorff). 2008-12-18 22:35:46 -08:00
Brendan Eich
90fd9c4313 Merge m-c into tm again. 2008-12-18 22:11:42 -08:00
Brendan Eich
9af4f618a7 Bug 470300 - "Assertion failure: StackBase(fp) + blockDepth == regs.sp" with |let| (r=gal). 2008-12-18 21:08:57 -08:00
Andreas Gal
bbf40348b6 Trace apply/call with an imacro (465214, r=brendan). 2008-12-18 19:20:47 -08:00
Graydon Hoare
d248d11954 Bug 470176 and bug 470173 - prevent traces from writing to imported properties, r=brendan. 2008-12-18 18:25:12 -08:00
Robert Sayre
c918482535 Merge m-c to tracemonkey. 2008-12-18 15:17:19 -05:00
Igor Bukanov
5f6b121715 bug 467441 - avoiding js_(Add|Remove)Root for regexp statics. r=crowder 2008-12-18 21:06:45 +01:00
Jeff Walden
201e000573 Bug 470133 - TM: fails to trace case with a type mismatch. r=gal 2008-12-18 10:35:09 -08:00
Igor Bukanov
1a1341cdb4 bug 465032 - operationCount as the first field in JSContext. r=brendan 2008-12-18 16:24:34 +01:00
Brendan Eich
3abd77d8ea Bug 469927 - TM: much slower than interpreter with short loop with |let| (r=mrbkap, a=sayrer). 2008-12-18 01:31:15 -08:00
Brendan Eich
8476ea6560 Bug 469940 - Automatic semicolon insertion wrongly done after var with multi-line initializer (r=mrbkap, a=sayrer). 2008-12-18 01:11:04 -08:00
David Anderson
dbab136074 Fixed bogus assertion in a rare type-instability case (bug 470061, r=gal). 2008-12-18 03:15:09 -05:00
Andreas Gal
589fb9eb38 Merge. 2008-12-17 23:09:55 -08:00
Andreas Gal
3af573343f Backed out changeset 95b210c2fc92 preemptively. Seems to crash the browser. 2008-12-17 23:09:26 -08:00
Andreas Gal
65b4bad89c XP_MACOSX and DARWIN are not set in the shell, so use __APPLE__ (another follow-up for 465460, r=danderson). 2008-12-17 22:58:02 -08:00
Andreas Gal
2dffadf0fb Merge. 2008-12-17 22:54:02 -08:00
Andreas Gal
62f0547add Trace apply/call using an imacro (465214, r=brendan). 2008-12-17 22:53:35 -08:00
Graydon Hoare
3477355ddd Bug 465443, bail off trace when readonly properties are written, r=brendan. 2008-12-17 20:50:05 -08:00
Robert Sayre
7b0ca330e8 Bug 423231. bustage fix. 2008-12-17 18:27:17 -05:00
Andreas Gal
4074f82a15 Return -0 for ceil if x < 0 and x > -1 (423231, r=jim). 2008-12-17 14:23:53 -08:00
Brendan Eich
bbd3fdab2a Bug 469927 - TM: much slower than interpreter with short loop with |let| (r=mrbkap). 2008-12-17 12:34:06 -08:00
Igor Bukanov
c67f58e20d bug 465377 - avoid useless duplication of Exception native. r=crowder 2008-12-17 20:31:24 +01:00
Benjamin Smedberg
a417fbee4c Bug 468937 - Add some basic tests for the red/green (cx->fp) analysis 2008-12-17 13:27:26 -05:00
Benjamin Smedberg
252eab1177 Bug 469995 - js_DecompileValueGenerator uses cx->fp and should be made safe, r=crowder+jorendorff 2008-12-17 13:15:08 -05:00
Andreas Gal
954913ca57 Follow-up fix for the follow-up fix for 465460 (r=me, again). 2008-12-16 21:19:00 -08:00
Andreas Gal
74a6ad1f62 Trivial follow-up fix for 465460 (r=me). 2008-12-16 21:16:03 -08:00
Brendan Eich
6bfce6b6b0 Windows lacks ssize_t, who knew? 2008-12-16 20:42:39 -08:00
Brendan Eich
56658da21f Bug 465460 - TM: valueOf ignored on third iteration of loop (r=gal). 2008-12-16 19:03:42 -08:00
Blake Kaplan
c3dc1ab151 Bug 469761 - Protect against apply on a non-function. r=gal 2008-12-16 15:09:05 -08:00
Benjamin Smedberg
c088c75c85 Bug 469191 - jsstack.js: give better locations for errors, r=dmandelin 2008-12-16 16:20:19 -05:00
David Mandelin
7f85908dd4 Bug 469177 - red/green analysis (cx->fp) doesn't actually run the analysis, r=jorendorff 2008-12-16 16:15:09 -05:00
Blake Kaplan
3c05b67fc0 Bug 469582 - Add -j to the ./js usage string if the tracer is enabled. r=brendan 2008-12-15 17:03:05 -08:00
Blake Kaplan
3f3f4048f8 Bug 469621 - Protect the new scope object from garbage collection. r=crowder 2008-12-15 16:42:40 -08:00
Jim Blandy
dc9a66856f Bug 461180: Add coverage tests for traceable math native functions. r=mrbkap
These cases are adapted from those in js/tests/ecma/Math.
2008-12-15 14:45:56 -08:00
Jim Blandy
a49451a0af Bug 461180: Define traceable native versions of the rest of the math funcs. r=jorendorff 2008-12-15 14:45:56 -08:00
Andreas Gal
85f01f421d Merge. 2008-12-14 19:35:29 -08:00
Brendan Eich
2bbb1f2b7b Bug 469313 - TM: crash (GMail): JS_Assert (s=0x368d8f "!JS_ON_TRACE(cx)", file=0x3724c8 "/Users/roc/mozilla-checkin/js/src/jsobj.cpp", ln=3765) (r=gal). 2008-12-13 17:32:44 -08:00
Brendan Eich
422e4198fe Bug 469313 - TM: crash (GMail): JS_Assert (s=0x368d8f "!JS_ON_TRACE(cx)", file=0x3724c8 "/Users/roc/mozilla-checkin/js/src/jsobj.cpp", ln=3765) (r=gal). 2008-12-13 17:30:04 -08:00
Neil Rashbrook
13238265ed Bug 469289 Make nanojit build with VC7.1 r=danderson 2008-12-13 23:45:38 +00:00
Blake Kaplan
87667890ab Bug 462851 - Protect against enumerating the call object's prototype. r=brendan a=sayrer 2008-12-13 14:17:24 -08:00
Jim Blandy
73253da291 Bug 468041: List the object files that depend on javascript-trace.h explicitly. r=bsmedberg
It seems gratuitous to rebuild every object file when
javascript-trace.h changes.
2008-12-16 11:50:21 -08:00
Jim Blandy
471974d852 (no bug): Add echo-tier-dirs target, to display tiers' directories. r=bsmedberg 2008-12-16 10:46:16 -08:00
Peter Van der Beken
0eeeec31c5 Switch to sets module instead of using builtin set type to support Python 2.3 on mobile. Bustage fix. 2008-12-16 17:20:38 +01:00
Peter Van der Beken
65eeb9ac06 Fix for bug 461566 (Don't call FindTearoff when not needed and cache XPCNativeInterfaces in quickstubs). r/sr=jst. 2008-12-16 16:46:18 +01:00
Peter Van der Beken
8473174cb4 Fix for bug 461563 (Allow WrapNative to return a jsval without the wrapper). r/sr=jst. 2008-12-16 16:46:18 +01:00
Igor Bukanov
6df56327b7 bug 458099 - DOMOperationCallback can get a JSContext with no global object. r=peterv sr=mrbkap 2008-12-14 22:40:10 -08:00
Brian Crowder ext:(.)
f3d3814803 Bug 446026 - restore utility of eval(s, o). r=mrbkap 2008-12-12 23:47:23 -08:00
Wan-Teh Chang
3a07a18e58 Bug 467677: fixed typo "ranslated" => "translated". 2008-12-12 21:29:45 -08:00
Phil Ringnalda
35062f6605 Bug 468575 bustage, if there's no revdepth.pl, it won't export very well 2008-12-12 21:16:37 -08:00
Wan-Teh Chang
187643c049 Bug 467677: Removed test -n "$CROSS_COMPILE". Moved
"cross_compiling=yes" to the very end of the if block so that it
is not overridden by AC_PROG_CC and AC_PROG_CXX.  Removed the Mac
OS X ppc<->x86 code in the "else" block.  r=jim,ted.mielczarek.
2008-12-12 21:00:38 -08:00
Phil Ringnalda
3dcc5ea3aa Bug 468575 - Scrape some gunk off the config/ grout, r=ted 2008-12-12 19:45:07 -08:00
Andreas Gal
c96b30085e Merge. 2008-12-12 17:06:55 -08:00
Andreas Gal
7ba58d96a8 Backed out changeset 5f64a0d18e53 2008-12-12 17:04:32 -08:00
Andreas Gal
7ddb12bdbc Merge. 2008-12-12 16:28:34 -08:00
Oleg Romashin
a356fe2d9a Bug 468824 - libosso.h and hildon-uri.h should be defined in system-headers list. r=benjamin. 2008-12-13 00:22:41 -05:00
Andreas Gal
f7da8821da Branch-exit and attach traces on shape mismatches (r=danderson). 2008-12-12 14:26:55 -08:00
Robert Sayre
443f738d12 Backed out changeset f682453c06d0. Failing scriptaculous unit tests, doesn't build on windows or mac ppc. 2008-12-11 20:43:32 -08:00
Brendan Eich
ece10ee8df Bug 465460 - TM: valueOf ignored on third iteration of loop (r=gal). 2008-12-11 17:50:56 -08:00
Graydon Hoare
39ed76ba7c Bug 468484 - Back out further arm-wince breakage from recent merging activity. 2008-12-11 17:09:45 -08:00
Graydon Hoare
aac4a6a13a Bug 468484 - Back out further arm-wince breakage from recent merging activity. 2008-12-11 16:11:29 -08:00
Jason Orendorff
b20c028359 Bug 462021 - TM: Make JSStackFrame reconstitution infallible (part 3 of 4, call objects, r=brendan)
--HG--
extra : rebase_source : 14a82b2b08c8b7dbae5e72623685b7c3947df603
2008-12-11 17:53:05 -06:00
Jason Orendorff
acc67a8b40 Bug 462021 - TM: Make JSStackFrame reconstitution infallible (part 2 of 4, stack, r=gal)
--HG--
extra : rebase_source : f8e3e4853793d02e0771ea663cebe7e1a0d98e4e
2008-12-11 17:53:05 -06:00
Jason Orendorff
999ec8e790 Bug 462021 - TM: Make JSStackFrame reconstitution infallible (part 1 of 4, easy stuff, r=gal)
--HG--
extra : rebase_source : 46b26c86f02bb0db70ca357ed71f5a8a9464dc9c
2008-12-11 17:53:04 -06:00
Blake Kaplan
6dd93666f1 Bug 470129 - Skip parentheses when doing optimizations based on parse node type. r=igor 2009-01-06 15:13:57 -05:00
Jeff Walden
d39a0ed158 Move trace-test-math.js to math-trace-tests.js and remove trace.js because they defy my tab-complete-fu
--HG--
rename : js/src/trace-test-math.js => js/src/math-trace-tests.js
2009-01-05 18:28:48 -08:00
Andreas Gal
89c862278e Merge. 2009-01-05 16:23:07 -08:00
Andreas Gal
135f143d10 Backed out changeset adbe8e4b21dc due to tinderbox failures/timeouts (453157). 2009-01-05 16:22:42 -08:00
Andreas Gal
8582d80da4 Merge. 2009-01-05 16:14:14 -08:00
Andreas Gal
61a1479f3e Don't try to deallocate the trace recorder from inside one of its own instance methods (472049, r=brendan). 2009-01-05 16:13:53 -08:00
Andrei Saprykin
9f7c96f36f bug 453157 - watchdog thread as an alternative to operation count. r=myself,mrbkap 2009-01-05 22:09:23 +01:00
Andreas Gal
deb8272b88 Merge. 2009-01-02 15:51:25 -08:00
Andreas Gal
6a2d183fee Stop generating LIR when running out of memory in the regexp compiler (471924, r=danderson). 2009-01-02 15:50:56 -08:00
David Mandelin
4202e18d74 Bug 463997: JS regression test bug with 'with (window) ...', r=mrbkap 2009-01-02 13:11:46 -08:00
Robert Sayre
1afdec58da Merge tm to m-c. 2008-12-11 15:17:58 -08:00
Blake Kaplan
f3228fcb87 Bug 464092 - Censor access to block objects when they're the parents of functions. r=igor a=beltzner 2008-12-11 14:16:46 -08:00
Graydon Hoare
bb7e9793cf Bug 468484 - back out most of changeset 2963765d5585 and ifdef-guard members of avmplus::Config, fix arm build.
* * *
Bug 468484 - ifdef-guard members of avmplus::Config structure that broke ARM build.
2008-12-11 13:50:55 -08:00
Benjamin Smedberg
6205031244 Bug 466486 - Don't use a subshell to recurse over DIRS when DIRS is empty (try #2) r=ted 2008-12-19 09:50:24 -05:00
Brendan Eich
db295b5972 Back out patch for bug 469625, it mysteriously busts stuff. 2008-12-19 01:38:09 -08:00
Ted Mielczarek
39e658d4df bug 468515 - configure doesn't set OS_TEST properly in 64-bit OS X builds. r=bsmedberg 2008-12-11 09:52:18 -05:00
Graydon Hoare
3cbd1cd998 Bug 450000 - Back out nanojit jump-patching machinery, r=danderson. 2008-12-10 17:31:17 -08:00
Graydon Hoare
ba3dc13800 Bug 468484 - Minor adjustments to match changes in tamarin, r=gal. 2008-12-10 17:25:46 -08:00
Graydon Hoare
37cfe58e72 Bug 468484 - Rename avmplus::AvmConfiguration, adjust sites of use, r=gal. 2008-12-10 17:19:40 -08:00
Benjamin Smedberg
e8ea9cf02d Merge mozilla-central into tracemonkey, specifically to pick up bug 467579. 2008-12-09 21:37:35 -05:00
Jeff Walden
6afac16038 Bug 465255 - Rewrite TraceRecorder::cmp, take five. (Three, sir!) Three! r=gal 2008-12-08 21:11:56 -08:00
Boris Zbarsky
dc570eacdd Bug 466935. Make JS_JIT_SPEW non-DEBUG build again. r=dmandelin,brendan 2008-12-11 13:55:04 -05:00
Benjamin Smedberg
893f114acb Bug 468717 - enable static analysis for js/src, r=jorendorff
--HG--
rename : xpcom/analysis/static-checking.js => config/static-checking.js
rename : xpcom/analysis/string-format.js => config/string-format.js
rename : xpcom/analysis/static-checking.js => js/src/config/static-checking.js
rename : xpcom/analysis/string-format.js => js/src/config/string-format.js
rename : xpcom/analysis/jsstack.js => js/src/jsstack.js
2008-12-11 11:40:04 -05:00
Jim Blandy
1e6522ed70 Bug 463339: Have js/src use symlinks when installing in dist. r=bsmedberg
A directory's 'libs' target should create symlinks in the top-level
dist/bin and dist/lib directories to the libraries (and any other
generated files) in the build tree, so that when one has changed
sources in $src/js/src, simply running 'make' in $obj/js/src and then
re-running $obj/dist/bin/firefox will pick up the new libraries.

The js/src/Makefile.in 'install' target has many double-colon rules
with commands; we'd like to use these all in two circumstances:

. For 'make install' in a stand-alone js/src build.  Since we're
  following GNU behavior, this should copy the files it's installing.

. For 'make libs' in an in-tree js/src build.  To interact properly
  with the rest of the Mozilla build system, this should create
  symlinks as explained above.

To accomplish this, we use plain old $(INSTALL) in all the install
targets, have js/src/Makefile.in set NSDISTMODE to copy (to get the
GNU behavior), and then have config/js/Makefile.in override that (to
get the Mozilla in-tree behavior).
2008-12-08 09:35:58 -08:00
Ted Mielczarek
68f2eb86cc bug 462004 - JavaScript shell should provide line editing facilities. r=bsmedberg
--HG--
rename : js/src/js.cpp => js/src/shell/js.cpp
2008-12-03 08:55:27 -05:00
Ted Mielczarek
8370a127e4 bug 467862 - Build system should support building both a static and a shared library from the same Makefile. r=bsmedberg 2008-12-24 14:04:43 -05:00
Jim Blandy
a04892f62e Bug 465640: Use autoconf to declare stdint types on platforms that don't have stdint.h r=bsmedberg
At configure time, check for <stdint.h>.  If we don't have it, find
integer types of various sizes.  On Windows, where we can't run
compilation tests in configure, hard-code definitions suggesting the
use of the built-in __intN types for the exact-size types, and
<stddef.h> for the pointer-sized types.

Use namespace-clean names for the preprocessor macros we define.
Since these types are used in the public JavaScript API, the configure
script needs to place the definitions it finds in js-config.h, the
installed configure-generated header, so it can be used by jsapi.h and
that gang.

New header js/src/jsstdint.h does what it takes to get definitions for
the exact-size and pointer-size integral types.  It includes
<stdint.h> when available, uses the types found by configure.in to
define the {,u}int{8,16,32,64,ptr}_t types itself, or uses the __intN
types and the <stddef.h> header.

Remove now-unnecessary and possibly conflicting definitions of intN_t
types from js/src/nanojit/avmplus.h.
2009-01-13 10:50:24 -08:00
Benjamin Smedberg
fc65bccce5 Followup to bug 463172 (implement --disable-jit) - this block needs to be outside of the SKIP_COMPILER_CHECKS block so that it affects Windows 2009-01-13 12:54:35 -05:00
Benjamin Smedberg
fec9af26d0 Bug 463172 - add a --disable-jit option, r=ted 2009-01-13 11:34:51 -05:00
Benjamin Smedberg
d42ae41122 Backed out changeset 8f347bf50a53 due to x86-64 build bustage, and the fact that the committed patch didn't match the reviewed patch in an important way (bug 469558) 2009-01-13 10:19:25 -05:00
Bobby Holley
475a3a6720 Bug 469558: --enable-system-lcms build option should be removed.r=vlad,sr=ted 2009-01-12 16:20:45 -08:00
Benjamin Smedberg
08c8aadf40 Add a static analysis pass to verify that for any do_QueryFrame<Interface> there is an Interface::kFrameIID declared. NPODB, static-checking only.
--HG--
extra : rebase_source : 0bcfa5b446d0c19610d9d61dd7e281d3923c8736
2009-01-12 14:21:11 -05:00
Ted Mielczarek
1603009445 bug 462004 - JavaScript shell should provide line editing facilities. r=bsmedberg
--HG--
rename : js/src/js.cpp => js/src/shell/js.cpp
2008-12-03 08:55:27 -05:00
Benjamin Smedberg
2e26c94375 Bug 472461 part 2 - jsgc crashes with !JS_TRACER, r=jorendorff for immediate bustage fix, and I'll get ex-post-facto review from Igor 2009-01-08 10:44:16 -05:00
Benjamin Smedberg
9d2a991be0 Bug 472461 part 1 - jsgc.cpp fails to compile with !JS_TRACER, initial patch by Igor, r=jorendorff with nits fixed by bsmedberg 2009-01-08 10:43:33 -05:00
Michael Ventnor
80e906d414 Bug 469880. Support a libnotify-based implementation of nsIAlertsService for GTK. r+sr=roc,r=ted
--HG--
extra : rebase_source : f9a6a01ffaf868712429a42193a275eecaf9a614
2009-01-08 21:12:16 +13:00
Robert Sayre
baff9704e9 Merge tracemonkey into mozilla-central. 2009-01-07 23:48:28 -05:00
timeless@mozdev.org
5efd1326d0 Bug 136292 jsdIValue doesn't handle Unicode string values at all
Bug 335098 Strings with \x00 are truncated
support non ascii strings from js engine, r+sr=jst
2009-01-07 20:42:15 -08:00
timeless@mozdev.org
c42ddc47be Bug 468045. r+sr=jst. 2008-12-07 16:15:54 -08:00
Ben Turner
f94fff590e Bug 453865 - 'Workers: Allow JSON-able objects to be passed as messages to worker threads.' r+sr+a=jst. 2008-12-07 16:15:49 -08:00
Ben Turner
7340738ad2 Bug 467162 - 'uninitialized local variable warning in xpcwrappedjsclass.cpp'. r+sr=jst, a=blocking1.9.1 2008-12-07 16:15:43 -08:00
Aiko
aae680fe23 Bug 341901 - versioninfo for js3250.dll is bad. r=bsmedberg 2008-12-07 15:34:58 +01:00
Brendan Eich
1c1214a195 Bug 449657 - JS_SealObject fails on Array objects (r=mrbkap, a=sayrer). 2008-12-07 00:03:12 -08:00
Wan-Teh Chang
289d854372 Bug 466531 - Crash/hang [@ mult][@ Balloc] when loading pages on PPC; Proposed patch for JS (trunk); r=jim 2008-12-06 16:50:49 +01:00
Justin Wood
0a12c9f85c Bug 467050, add config.mk to the GLOBAL_DEPS list as well
r=ted
2008-12-05 23:04:01 -05:00
Peter Van der Beken
d17bae28e1 Partially back out fix for bug 461563 to try to fix Txul regression on Windows. 2008-12-05 14:38:05 +01:00
Peter Van der Beken
71f8bac27f Partially back out fix for bug 461563 to try to fix Txul regression on Windows. 2008-12-05 10:42:17 +01:00
Bob Clary
7c477545da bug 466990 - fix incorrect option in js1_5/Regress/regress-322430.js. 2008-12-04 04:49:27 -08:00
Bob Clary
2d0135a63a bug 450833 - JavaScript Test by Andreas Gal. 2008-12-04 04:49:26 -08:00
Bob Clary
54bc26a732 bug 455973 - JavaScript Test by Jesse Ruderman. 2008-12-04 04:49:24 -08:00
Bob Clary
5e4dbdf1ab bug 456470 - JavaScript Test by Andreas Gal. 2008-12-04 04:49:21 -08:00
Bob Clary
da840a0a84 bug 460870 - JavaScript Test by Jesse Ruderman. 2008-12-04 04:49:20 -08:00
Bob Clary
6c60d49c73 bug 461930 - JavaScript Test by Jesse Ruderman. 2008-12-04 04:49:18 -08:00
Bob Clary
b153a2c2dc bug 461932 - JavaScript Test by Jesse Ruderman. 2008-12-04 04:49:15 -08:00
Bob Clary
6bf0d544ec bug 462879 - JavaScript Test by Jesse Ruderman. 2008-12-04 04:49:14 -08:00
Bob Clary
43a4168bc5 bug 463334 - JavaScript Tests by Jesse Ruderman. 2008-12-04 04:49:11 -08:00
Bob Clary
e1ce26fdcd bug 463782 - JavaScript Test by Gavin Sharp. 2008-12-04 04:49:10 -08:00
Bob Clary
979016c1a7 bug 462470 - JavaScript Test - modify expected results for js1_8_1/decompilation/regress-350991.js due to bug 461233. 2008-12-04 04:49:08 -08:00
Bob Clary
7f5a43a62a bug 464334 - JavaScript Test by Igor Bukanov. 2008-12-04 04:49:06 -08:00
Bob Clary
33b1fd39f6 bug 464403 - JavaScript Test by Gary Kwong and Jesse Ruderman. 2008-12-04 04:49:04 -08:00
Bob Clary
f703ab42bd bug 464418 - JavaScript Test by Jesse Ruderman. 2008-12-04 04:49:01 -08:00
Bob Clary
de4d3987bc bug 464978 - JavaScript Test by Jesse Ruderman. 2008-12-04 04:48:59 -08:00
Bob Clary
d6316f08fe bug 465013 - JavaScript Test by Brendan Eich. 2008-12-04 04:48:58 -08:00
Bob Clary
60862a6708 bug 465135 - JavaScript Test by Jesse Ruderman. 2008-12-04 04:48:56 -08:00
Bob Clary
d281d8d85f bug 465136 - JavaScript Test by Jesse Ruderman. 2008-12-04 04:48:54 -08:00
Bob Clary
62e6e5cdbd bug 465137 - JavaScript Test by Jesse Ruderman. 2008-12-04 04:48:52 -08:00
Bob Clary
6e56fa5092 bug 465220 - JavaScript Test by Brendan Eich. 2008-12-04 04:48:50 -08:00
Bob Clary
ecdd0cd446 bug 465234 - JavaScript Test by Jesse Ruderman. 2008-12-04 04:48:48 -08:00
Bob Clary
67c7cf0ed4 bug 465239 - JavaScript Test by Jesse Ruderman. 2008-12-04 04:48:45 -08:00
Bob Clary
6e3e11c64a bug 465241 - JavaScript Test by Jesse Ruderman. 2008-12-04 04:48:44 -08:00
Bob Clary
4fec1fd920 bug 465249 - JavaScript Test by Jesse Ruderman. 2008-12-04 04:48:42 -08:00
Bob Clary
e7da24f622 bug 465262 - JavaScript Test by Jesse Ruderman. 2008-12-04 04:48:39 -08:00
Bob Clary
522b70b68c bug 465261 - JavaScript Test by Gary Kwong. 2008-12-04 04:48:38 -08:00
Bob Clary
79a5c9b9bf bug 436741 - JavaScript Test by Jesse Ruderman. 2008-12-04 04:48:36 -08:00
Bob Clary
9a991caef8 imported patch perl-permissions 2008-12-04 04:48:34 -08:00
Bob Clary
ed04c834db update public failures and universe.data. 2008-12-04 04:48:32 -08:00
Jeff Walden
443bee95c7 Bug 397227 - Forgot to sync js's config/rules.mk; it would have been helpful if that were checked at build time rather than 'check' time. r=redness still 2008-12-04 00:56:31 -08:00
Jeff Walden
f9ce0e9aa7 Bug 397227 - Reduce the effort needed to write C++ tests. r=ted 2008-12-03 22:25:00 -08:00
Brad Lassey
fdb2d669b4 Bug 464052 - windows compilers don't like variables named far r=crowder 2008-12-03 08:41:12 -05:00
Brian Crowder
91cded4902 Bug 462912 - THIS is defined on windows mobile r=jim 2008-12-03 08:41:12 -05:00
Benjamin Smedberg
438d35294c Merge backout of bug 466486 2008-12-02 17:18:28 -05:00
Benjamin Smedberg
2adc9eec08 Backed out changeset f71446b6fc7e: bug 466486- directories are getting skipped, causing things like xpcshell not to be built 2008-12-02 17:17:41 -05:00
Benjamin Smedberg
f8a9c1a885 Bug 467579: --with-static-checking is broken in spidermonkey. There is currently no useful static checking infrastructure for spidermonkey, so disable it for the time being, r=jimb 2008-12-02 14:46:37 -05:00
Benjamin Smedberg
69b2ad97cb Merge bug 466492, bug 466486, bug 463289, bug 442012, and bug 463420 2008-12-02 14:08:12 -05:00
Igor Bukanov
8626be1ad8 bug 466990 - check for valid option name in js shell. r=crowder 2008-12-02 14:03:30 +01:00
Peter Van der Beken
e58d168174 Fix for bug 461563 (Allow WrapNative to return a jsval without the wrapper). r/sr=jst. 2008-12-02 11:07:34 +01:00
Ben Hearsum
611df67e19 Version bump mozilla-central to 3.2a1pre/1.9.2a1pre. CLOSED TREE 2008-12-01 12:17:55 -05:00
Jesse Ruderman
8641b22aca Add bug 453935 crashtest to CLOSED TREE 2008-11-29 19:13:55 -08:00
Jesse Ruderman
42252a60cc Add crashtest for bug 400349. sdwilsh gave me permission to check in crashtests in today's CLOSED TREE. 2008-11-29 18:12:46 -08:00
Blake Kaplan
f32e0ba3e6 Bug 454142. r=brendan, r=igor, a=beltzner 2008-11-28 18:15:06 -08:00