Commit Graph

13416 Commits

Author SHA1 Message Date
Blair McBride
8ef2ed4de1 Bug 631059 - Creating a FunctionType pointer instance from a JS function can fail.
r=dwitte a=bsmedberg
2011-02-11 15:48:31 +01:00
Igor Bukanov
02ca585380 bug 632003 - var declarations should ignore prototype properties, r=jwalden 2011-02-11 14:58:53 +01:00
Andreas Gal
f13838afa0 Don't reuse native iterators if delete mutated them (bug 633409, r=dvander). 2011-02-11 01:17:55 -08:00
Jonas Sicking
05cbdc2ddd Bug 633414: Update cursor properties to latest spec. r=bent a=jst 2011-02-10 23:47:00 -08:00
David Anderson
d7bd86e796 Fix handling of SETGNAME IC on ARM (bug 627486 part 3, r=cdleary). 2011-02-10 22:15:09 -08:00
Ginn Chen
59707430da Bug 633048 32bit Firefox failed to start on a machine with 16GB memory r=gal a=gal 2011-02-11 14:12:27 +08:00
Steve Fink
91fce5cc8a Backout 1b55728f51ad (bug 633016) due to leaking jsdScript objects 2011-02-10 14:33:10 -08:00
Andreas Gal
93b0cec1d3 Don't lose getter/setter attribute in default proxy set handler (bug 631488, r=brendan). a=blocker 2011-02-07 16:06:24 -08:00
Blair McBride
1ebeb8905e Bug 631059 - Creating a FunctionType pointer instance from a JS function can fail. r=dwitte a=bsmedberg 2011-02-18 00:05:24 +13:00
Blake Kaplan
abb62339da Bug 629227 - ObjectIsNativeWrapper lies for document.domain. a=blocker 2011-02-16 20:29:14 -08:00
Andreas Gal
867ed02473 Fix GC/CC scheduling (bug 630932, patch by gal/smaug, r=mrbkap). a=blocker 2011-02-16 15:47:12 -08:00
Ben Turner
855fe52f2e Bug 614347 - 'XPConnect-wrapped JSObjects must clear their gray bit when they are handed out'. r=peterv+gal, a=blocking. 2011-02-16 12:47:08 -08:00
Benjamin Smedberg
c4a2a5e8a4 More diagnostics for bug 626768 - It seems likely that creating a new XPCJSRuntime is failing, but we don't know why or when. Abort in the most obvious failure location to help diagnose the problem. r=bent a=myself 2011-02-16 11:52:31 -05:00
Andreas Gal
bb44a6acb4 Xray wrappers don't cache resolved native properties on the holder object (bug 633382, r=mrbkap/jst, a=blocker). 2011-02-15 19:00:55 -08:00
Chris Leary
a718b751ed Merge tracemonkey to mozilla-central. (a=blockers) 2011-02-15 12:05:57 -08:00
Andreas Gal
d7d5e97973 Bug 633879 - Stop wrappers from holding old scopes alive. r=mrbkap@gmail.com,jst@mozilla.com, a=blocker 2011-02-14 14:19:36 -08:00
Andreas Gal
408f957e8a js_UnbrandAndClearSlots leaks, use JS_ClearScope and throw if compile-N-go scripts are run after JS_ClearScope (630072, r=brendan, a=blocker). 2011-02-13 20:55:33 -08:00
Michael Wu
3e3e7c29eb Bug 633666 - Ignore return code from GetHost in PathifyURI, r=bsmedberg a=shaver 2011-02-14 12:54:40 -08:00
Luke Wagner
9a96707b3a Bug 632358 - Only call resetCompartment() when safe to GC (r=waldo,a=blocking) 2011-02-11 16:13:08 -08:00
Gijs Kruitbosch
ecb7086c9a Bug 633833 - Add function keyword to all the single function JSD interfaces, r=timeless, a=bzbarsky 2011-02-14 17:14:07 +01:00
Steve Fink
e4a3e6541e Bug 632544 - JSD_GetJSFunction can return NULL (r=dmandelin) 2011-01-28 16:54:42 -08:00
Luke Wagner
89d7214860 Bug 627954, part 2: ensure nsXPCConvert::VariantData2JS et al are in the correct compartment (r=mrbkap)
--HG--
extra : rebase_source : c924f5e87e2f5a6339f4c83c78db1c7f05b600f7
2011-02-05 04:56:05 -08:00
Steve Fink
9def74762b Bug 633016 - Notify debug hooks of script lifetime when pulling script from the eval cache (r=luke)
--HG--
extra : rebase_source : b3b5bcc1c9af9f835a3921fd5a84c4a9d1478b25
2011-02-10 12:02:15 -08:00
Andreas Gal
dc805566a3 Fix bad assert in CallJSNativeConstructor (bug 633043, r=luke, a=NPOTB). 2011-02-09 18:17:34 -08:00
Ben Turner
e29dc44bff Backout 10ebc5ea11ac due to test failures. 2011-02-09 15:29:31 -08:00
Nicholas Nethercote
f9df6712be Bug 631139 - Put Shape::numSearches and Shape::table in a union. r=brendan, a=sayrer. 2011-02-09 15:18:03 -08:00
Ben Turner
3fb884d2a6 Bug 614347 - 'XPConnect-wrapped JSObjects must clear their gray bit when they are handed out'. r=peterv+gal, a=blocking. 2011-02-09 12:51:16 -08:00
Jim Blandy
b775bfcb46 Bug 537873: Add 'strict' argument to setters defined throughout Firefox. r=brendan
This should take care of all setters defined outside SpiderMonkey proper. Very mechanical.
2011-02-09 11:31:40 -08:00
Jim Blandy
ab7774dd66 Bug 537873: Throw errors when strict mode code assigns to an array's length and the truncation would delete non-configurable elements. r=brendan
This is the patch that actually fixes the bug.
2011-02-09 11:31:40 -08:00
Jim Blandy
de75b9fa19 Bug 537873: Add a 'strict' argument to C++ property setter functions. r=brendan
This changes the type of setters to JSStrictPropertyOp, which is just like
JSPropertyOp except that it takes a 'JSBool strict' argument. Most of the
patch is introducing distinct types and using the appropriate stubs.

The following are left for subsequent patches:

x Similar fixes to the browser outside SpiderMonkey.

x Actually *using* the newly available strictness information. This patch
  should have no user-visible effect. I didn't want the interesting stuff
  to get lost in this noise.
2011-02-09 11:31:40 -08:00
Jim Blandy
e3a9cfa011 Bug 537873: Use the standard JS_PropertyStub for setters of typed arrays' read-only properties, not a Jsvalification of the getters. r=brendan
This makes the patch to give getters and setters distinct types a little easier to read.
2011-02-09 11:31:39 -08:00
Jim Blandy
f0eff5928d Bug 537873: Re-enable tests for assignments to array lengths in strict mode; add new regression tests. r=brendan 2011-02-09 11:31:39 -08:00
Jim Blandy
53cbd36a1c Bug 537873: Avoid writing past the end of ScriptObjectFixture::uc_code. r=jorendorff
This silences a warning when building testScriptObject.o under GCC -O3.
2011-02-09 11:31:39 -08:00
Jim Blandy
d14390e72e Bug 537873: Make --enable-methodjit-spew work in non-DEBUG code. r=brendan
This isn't strictly necessary for the bug, but it was handy in making sure
the patch hadn't affected SM's behavior.
2011-02-09 11:31:39 -08:00
Jim Blandy
54decafd0c Bug 605295: Return boolean values from JSStackFrame::computeThis, not random stuff that converts silently to bool. r=waldo 2011-02-09 10:20:54 -08:00
Ben Turner
314aa75aac Backout bug 614347 due to test failures 2011-02-08 22:15:48 -08:00
Ben Turner
4e5f2c1808 Bug 614347 - 'XPConnect-wrapped JSObjects must clear their gray bit when they are handed out'. r=peterv+gal, a=blocking. Bustage fix. 2011-02-08 20:12:48 -08:00
Ben Turner
3dd9784466 Bug 614347 - 'XPConnect-wrapped JSObjects must clear their gray bit when they are handed out'. r=peterv+gal, a=blocking. 2011-02-08 18:54:14 -08:00
David Anderson
2f11cc3416 Split up MIC structures (bug 627486 part 2, r=cdleary). 2011-02-01 11:48:58 -08:00
David Anderson
28073df033 Fix global set ICs with branded global objects (bug 627486, r=cdleary). 2011-02-01 11:47:35 -08:00
Steve Fink
2af7d0908f Bug 628758 - Various compartment and request fixes for JSD (r=luke)
--HG--
extra : rebase_source : 98a06e6f9c7528ebbdbaa445d7cc8e28973d5d02
2011-01-27 18:31:48 -08:00
Jason Orendorff
15bded8c53 Bug 628334 - TM: In the special case where o.x=v re-creates a deleted watched property, give up tracing rather than assert. r=gal. 2011-02-07 15:17:42 -06:00
Jason Orendorff
df71f03c9f Bug 629968 - Patch SunSpider performance regression. r=brendan, a=sayrer.
This is a temporary hack.

There are two closely related bugs in methodWriteBarrier. One: the two
signatures are meant to be essentially the same, but they aren't; the
slot-based signature fails to do thrash detection in a common case.
Two: if thrash detection were always done, it would unbrand the global
object, wrecking our SunSpider score. Both bugs are tracked in bug
630354.

The bugs have been precariously balanced against one another for a
while. I accidentally changed the status quo in rev b90090c29571,
causing a 15% SS regression. This patch changes it back.

--HG--
extra : rebase_source : d2e4605599b633b968277b7f5c1a4fba7218d7d7
2011-02-07 09:18:11 -06:00
Chris Leary
393554af44 Follow up fix for bug 626361. 2011-02-08 16:20:45 -08:00
Chris Leary
d92590a87a Bug 626361: Reserve space for call/equality ICs. (r=dmandelin) 2011-02-08 15:18:55 -08:00
Nicholas Nethercote
a2c6dac999 Fix test broken by bug 630456 (NPOTB). 2011-02-08 14:05:30 -08:00
Steve Fink
e5c82a1fa9 Bug 632314 - Clean up ephemeral stack frames (r=timeless)
--HG--
extra : rebase_source : f8190baf0a3e46c94933dcdea512e4f6ea922a67
2011-02-07 17:34:15 -08:00
Nicholas Nethercote
71222f4515 Bug 630456 - Convert objects to dictionary mode less aggressively. r=brendan, a=bz. 2011-02-07 19:10:01 -08:00
David Mandelin
a19b006a53 Bug 632206: remove unneeded rooting, r=lw 2011-02-07 17:49:18 -08:00
Nicholas Nethercote
9340a22863 Bug 631788 - Assertion failure: unexpected constantly false guard detected, at jstracer.cpp:4444. r=dmandelin. 2011-02-07 16:33:40 -08:00
Andreas Gal
8d1e015485 Don't lose getter/setter attribute in default proxy set handler (bug 631488, r=brendan). 2011-02-07 16:06:24 -08:00
Blake Kaplan
f1f6cc2faf Bug 615834 - get rid of annoying build warning. r+a=merge error
--HG--
extra : rebase_source : f90083159468d4430eeb76787e6f34fd35dfd444
2011-01-31 20:54:19 -08:00
David Mandelin
7f17d4c246 Bug 631082: assume functions defined or seen in generators escape, r=brendan 2011-02-03 17:18:18 -08:00
Bill McCloskey
667b23ee82 Bug 629817 - Add an AutoShapeVector to root shape vectors on the stack (r=luke) 2011-02-07 12:06:32 -08:00
Gregor Wagner
b84e4431ab Bug 631969 - gc_per_compartment option does not work. r=gal 2011-02-07 11:24:08 -08:00
Jacob Bramley
0bee0f9f20 Reserve IC space in CallICs, and increase the RESERVE_IC_SPACE size. [Bug 627783] [r=cdleary] 2011-02-07 09:43:02 +00:00
Nicholas Nethercote
9fc7e19ada Move a test into the right place (NPOTB).
--HG--
rename : js/src/jit-test/tests/bug606083.js => js/src/jit-test/tests/basic/bug606083.js
2011-02-06 21:09:06 -08:00
Chris Leary
4e1d0a6b70 Merge mozilla-central and tracemonkey. (a=blockers) 2011-02-06 15:30:39 -08:00
Phil Ringnalda
7a330cbd18 Back out a26c9e7823e4 (bug 620291), didn't notice it was nanojit 2011-02-06 09:32:24 -08:00
Mark Finkle
e65a18067e Backout c49735ad9fa0 (bug 632037) no perf data to support the size increase [a=make-fennec-smaller] 2011-02-11 23:17:22 -05:00
Johnny Stenback
6b87b64c44 Backed out changeset 3fb25cc2c040 due to orange. 2011-02-11 18:04:09 -08:00
Andreas Gal
cabd660fbb Bug 630072. Fix issue with wrappers holding objects from old scopes alive. r=mrbkap@gmail.com, a=blocker 2011-02-11 16:36:48 -08:00
Blake Kaplan
ec5802cfe2 Fixing bug 623810. r=jst@mozilla.org, gal@uci.edu, a=blocker. 2011-02-11 16:17:25 -08:00
Luke Wagner
b40fed9201 Bug 635805 - Fix thinko in fix for bug 634542 (r=dvander,a=blocking-a-blocker) 2011-02-21 19:36:27 -08:00
Luke Wagner
0676a0d442 Bug 634542 - Don't leave dangling call object when executing script with JS_ClearScope'd global (r=gal,a=hardblocker) 2011-02-21 13:32:45 -08:00
Luke Wagner
08e66296bc Bug 634542 - Back out diagnostic patches (r=dvander,a=backout) 2011-02-19 14:37:46 -08:00
Makoto Kato
7fb26057d9 Bug 621259 - USE -OPT:REF,ICF on Win64 PGO. r=ted a=beltzner 2011-02-21 13:04:32 +09:00
Brendan Eich
e2c6050a6b Back out on orange (635548, r/a=shaver). 2011-02-19 22:35:13 -08:00
Brendan Eich
bd1ec738ae Fix spurious "attempt to run compile-and-go script on a cleared scope" errors (635548, r/a=shaver). 2011-02-19 20:56:17 -08:00
Mike Shaver
85c4348adc Backed out changeset 4d86e63ff60d, diagnostic patch; back out 3da12edf735e, followup fix; back out bug 631135 completely, unexplained intermittent orange. r=waldo, a=orange 2011-02-19 20:46:44 -08:00
Luke Wagner
e8cc2a25ba Luke Wagner – Bug 634542 - Temporary diagnostic patch 2 (r=dvander,a=shaver) 2011-02-18 18:38:10 -08:00
Jeff Walden
3db0e1e2a2 Followup fix for bug 631135 to use the right method to compute calling scope when calling evalInSandbox. r=mrbkap, a=reported-extension-bustage 2011-02-18 20:54:47 -08:00
Jeff Walden
414ac259f6 Bug 631135 - Objects created by or on behalf of fast natives and property ops (getters or setters) are parented to the wrong proto and global. r=lw,jst,mrbkap,bz, a=jst
--HG--
extra : rebase_source : a2f6a11ac3bcc7925cbf122057b694a0aafac970
2011-02-08 17:20:06 -08:00
David Anderson
1c47a5ff17 Fix gmail JIT crash (bug 635295, r=luke, a=blocking). 2011-02-18 18:29:20 -08:00
Luke Wagner
04ad54d7a4 Bug 634542 - Temporary diagnosis patch (r=dmandelin,a=shaver) 2011-02-17 21:42:27 -08:00
Peter Van der Beken
1cd3e600fb Fix for bug 634855 (Memory leak with NoScript 2.0.9.8 installed). r=bent, a=sicking. 2011-02-17 19:13:28 -08:00
Chris Leary
1df70dc742 CLOSED TREE: TraceMonkey merge head. (a=blockers) 2011-02-17 16:17:45 -08:00
Chris Leary
e5a463842a Merge mozilla-central and tracemonkey. (a=blockers) 2011-02-17 15:30:14 -08:00
Michael Wu
6b366b61a3 Bug 634752 - Always drop jsPrincipals before returning from LoadSubScript, r+a=jst 2011-02-17 14:20:00 -08:00
timeless@mozdev.org
2bbde0f2ee Bug 620291 useless assert of free_block [@ CodeAlloc::free], r=gal, edwsmith 2010-12-19 20:50:00 -08:00
Mark Finkle
5d80dfe3aa Bug 632037 - Optimize more for speed and less for size [r=blassey r=cdleary a=blocking-fennec] 2011-02-09 17:18:09 -05:00
Ull Link
86a18d503e Bug 545634 - AIX failure to run configure script in js/ctypes/libffi; r=ted,dwitte a=bsmedberg
--HG--
extra : rebase_source : aee56c53afb1dadc3e667b04e4b4836c18cdf7e5
2011-02-09 15:02:31 -05:00
Matt Brubeck
ccb0540dd3 Bug 632490: Use a content-type hint in mozJSSubScriptLoader::LoadSubScript. r=shaver a=blocking-fennec
--HG--
extra : rebase_source : ff4aba30c6ac11b97921c368d8220a63d698692d
2011-02-08 12:16:06 -08:00
Dan Witte
b39a896a01 Bug 508167 - NPAPI additions for clearing recent history (e.g. for "flash cookies"). r=josh, a=beltzner 2011-02-08 14:16:07 -08:00
Boris Zbarsky
596e3fdc0b Fix test description. a=DONTBUILD 2011-02-08 16:41:47 -05:00
Peter Van der Beken
66e6b2447c Bug 623437 - restore for-in order of canvas methods (r=gal/peterv, a=jst). 2011-02-08 13:34:25 -08:00
Boris Zbarsky
ac8850b133 Bug 623437. Restore the relative enumeration order of arc and arcTo. r=peterv,gal a=jst 2011-02-08 16:30:57 -05:00
Vladimir Vukicevic
535a8cbf62 b=632162; use correct flags on armv7 to enable VFP FPU; r=blassey, a=b 2011-02-07 23:19:12 -08:00
Vladimir Vukicevic
a9695b6b01 Back out 6cfd4d2e due to maemo breakage. a=backout 2011-02-07 22:38:13 -08:00
Vladimir Vukicevic
8dd729ebd6 Bug 632162 - specify hardware vfp flags for armv7. r=blassey, a=blocking-fennec 2011-02-07 22:13:23 -08:00
Jory A. Pratt
6eb3c34ce5 Bug 623797 (1/2) - Work around new features that are not avaliable in system-cairo on linux. r=jmuizelaar a=joe
(romaxa's original patch with modifications to use cairo-tee)
2011-02-07 19:52:40 +01:00
timeless@mozdev.org
717b9e0a0b Bug 583727 DOMCI_CASTABLE_INTERFACE: macro redefinition; r=peterv a=jst 2010-08-02 16:52:12 +03:00
Ehsan Akhgari
c07c875d05 Backout all of the bugs in the 7e12e3e16e6c pushlog because of the orange.
It is not clear which one of these bugs is at fault.
2011-02-04 16:34:02 -05:00
timeless@mozdev.org
6493b0d2b1 Bug 583727 DOMCI_CASTABLE_INTERFACE: macro redefinition; r=peterv a=jst
--HG--
extra : rebase_source : 4b4ddb3c7c720ff1266f0d868d1e101942d72b10
2010-08-02 16:52:12 +03:00
Jacek Caban
8bb0de887e Bug 631252 - Use -mstackrealign on 32-bit mingw r=dbaron a=NPOTB 2011-02-04 13:40:02 +00:00
Blake Kaplan
5b0b819c30 Bug 630716 - Use a better method of comparing URIs for determining whether two compartments are same origin. r=bzbarsky, r=gal, a=blocker 2011-02-02 22:05:07 -08:00
Blake Kaplan
9790bbbe74 Bug 629331 - Fix handling of class getters with slotful values. r=gal, r=brendan, a=blocker
try: -b do -p linux,win32 -u all
2011-02-03 20:13:18 -08:00
Andreas Gal
5c5bdfb009 Bug 630772. Fix compartment mismatch in evalInSandbox(). r=jst@mozilla.com. a=blocker 2011-02-02 19:47:34 -08:00
Mounir Lamouri
ce749fb7f5 Bug 620788 - Do not silently fall back to bundled NSS/NSPR if system ones can't be used. r=khuey a=bsmedberg 2011-02-03 00:13:07 +01:00
Peter Van der Beken
359a7a5eac Bug 628599. Traverse expando objects. r=jst@mozilla.com, a=blocker 2011-02-02 14:08:13 -08:00
timeless@mozdev.org
bf00e23933 Bug 577913 mark DEBUG only variables as ifdef DEBUG in xpconnect; r=mrbkap a=jst
--HG--
extra : rebase_source : ce14e3eb2ea17a5350cbb85af355b89c5d002fce
2010-07-11 15:42:47 +03:00
ffxbld
ebb386f7bf Automated checkin: version bump for firefox 4.0b11 release. CLOSED TREE a=release 2011-02-02 09:38:52 -08:00
Andreas Gal
c342e4f1c3 Enter compartment in AutoScriptEvaluate (bug 630243, r=jst, a=blocker). 2011-02-01 14:58:00 -08:00
Vladimir Vukicevic
5c95af4819 b=630117, rename typed array slice() -> subarray(); r=jwalden, a=block 2011-02-01 15:08:57 -08:00
Jonas Sicking
e0cf36d329 Backed out changesets 808970eca6d5 and 84c8b33619e0 due to continued orange. a=bustage 2011-02-01 16:45:54 -08:00
Vladimir Vukicevic
5b3968a376 b=630117, rename typed array slice() -> subset(); r=jwalden, a=block 2011-02-01 15:08:57 -08:00
Chris Leary
403f8bb077 Bug 630284: Restore |RegExp.compile|, don't break the web. (r=brendan, a=sayrer) 2011-02-01 15:07:31 -08:00
Luke Wagner
7837d79b90 Bug 629974 - js_TraceObject doesn't need to mark past slotSpan (r=brendan,a=blocking) 2011-02-01 14:19:07 -08:00
Andreas Gal
4f81a9d589 Disable jetpack service and unit tests (bug 629197, r=shaver, a=blocker). 2011-01-31 19:33:15 -08:00
Jeff Walden
2da1a60948 Bug 619283 - Built-in JS methods must not box undefined or null into the global object when called, both to comply with ES5 and to prevent inadvertent global object exposure to secure JS variants. r=dmandelin, a=blocking 2011-01-26 13:37:45 -08:00
Jeff Walden
bb7b92659a Detabify js1_6/extensions/regress-312385-01.js for readability. r=tabsmustdie 2011-01-26 10:20:29 -08:00
Chris Leary
86d81ea3d6 Merge tracemonkey to mozilla-central. (a=blockers) 2011-01-31 19:43:36 -08:00
Jim Blandy
2016210905 Bug 554955: Revert fix (changesets 297b1312f534, 18a1effafe19, 26d40e1e80bf, f6117465a979): 14% performance hit as measured by Talos. r=talos 2011-01-31 16:48:26 -08:00
David Mandelin
6242f450e2 Bug 627609 followup 2: add missing helper for tests, r=orange 2011-01-31 16:41:45 -08:00
David Mandelin
8e65dc49e0 Bug 627609 followup: address comments and check for start of opcode stream before atOptionalBracket 2011-01-31 16:15:56 -08:00
David Mandelin
fddedf5950 Bug 627609: make PCRE handling of empty matches within quantified groups match ECMA-262, r=cdleary 2011-01-31 16:03:11 -08:00
Steve Fink
6a333d3f55 Bug 627758 - Handle cancelled GC runs properly (r=dmandelin)
--HG--
extra : rebase_source : a215df78cb2bedb190f8655df4cd5b7dd6ec5f3a
2011-01-31 15:00:52 -08:00
Jim Blandy
672dd55a28 Bug 621103: Rename js::Anchor to JS::Anchor: 'JS' is the public namespace. r=waldo 2011-01-31 14:42:53 -08:00
Bill McCloskey
fa08e98f10 Bug 630340 - Fix undefined value in compartment assertion (r=Waldo) 2011-01-31 13:54:28 -08:00
Jason Orendorff
bb4fd3c0ab Call a class a class, to avoid MSVC warning. rs=Waldo. 2011-01-31 15:37:13 -06:00
Jason Orendorff
f1be13e671 js_InitExceptionClasses was skipping part js_InitClass, leading to "Assertion failure: proto->canProvideEmptyShape". Bug 624968, r=Waldo.
--HG--
extra : rebase_source : 08ebb71574a0b1962e8f1c0c3f9a7aa7ec904b03
2011-01-24 17:32:44 -06:00
Jason Orendorff
2c260dfeff Remove assertion that has clearly outlived its usefulness. Bug 626592, r=dvander.
--HG--
extra : rebase_source : a629cbdfb129ac557f68a9d5938880ebd11c1305
2011-01-24 13:49:06 -06:00
David Anderson
9a680c6236 Fix constant folding bug in Uint8Clamped arrays (bug 624483, r=vlad). 2011-01-31 12:46:09 -08:00
David Anderson
b1acdbb117 Fix jsanalyze missing a GETLOCAL case (bug 630048, r=dmandelin). 2011-01-31 12:41:17 -08:00
Jim Blandy
a237e87988 Bug 554955: Give blocks and call objects unique shapes when they have parents that may be extended with new bindings. r=jorendorff
The comments for js::Bindings::extensibleParents explain why this is necessary.

AssertValidPropertyCacheHit should have been catching this bug, but for
reasons I don't understand, it is restricted from checking this case. This
patch extends it to assert when the bug is detected.

I've gathered the infallible parts of the initialization for Call objects
and cloned block objects into their own functions.
2011-01-31 12:08:13 -08:00
Jim Blandy
4b5d129a27 Bug 554955: Make JSObject::setMap not pretend to take a const shape. r=jorendorff
Without this patch, JSObject::setMap takes a const js::Shape *, which is
kind of misleading. The object will not actually treat the shape as const
(it does a const_cast). At all but one call site, setMap's argument is not
a const shape --- and in fact, many call sites are installing empty shapes
whose role in life is to be extended.

The only place where a const js::Shape appears is in setSharedNonNativeMap,
which is doing something unusual. The const cast should be there.

Changing js::Bindings::lastShape to return a non-const shape is then
natural, and cleans up the definition of initCall coming in the next patch.
2011-01-31 12:08:13 -08:00
Jim Blandy
e0523545cd Bug 554955: Introduce a typed accessor for retreiving functions from JSFunctionBoxes. r=brendan 2011-01-31 12:08:13 -08:00
Jim Blandy
403f750c48 Bug 554955: Drive-by comment fix. no r. 2011-01-31 12:08:13 -08:00
Jonas Sicking
8ae905de30 Tests for bug 594999 (r=mrbkap). 2011-01-29 18:53:59 -08:00
Andreas Gal
80068e5cca Silenty return undefined instead of throwing when content tries to access non-exposed chrome properties (bug 594999, r=mrbkap). 2011-01-29 18:48:30 -08:00
Jonas Sicking
6c6a7cea3e Disallow content access to chrome functions without __exposedProps__ (bug 628410, r=gal). 2011-01-29 18:47:17 -08:00
Igor Bukanov
7c65c6fde5 bug 624880 - renaming JSD public API to reflect the signature change. r=timeless 2011-01-29 22:40:29 +01:00
Igor Bukanov
276b0a6237 bug 624364 - r=jorendorff
--HG--
extra : rebase_source : 6e410f6a4aaf21779741b19f6b9ae228946b25bc
2011-01-25 00:04:29 +01:00
Brendan Eich
de8093385a Followup fix for gaping hole in patch for bug 591846 (credit to jorendorff, r=me). 2011-01-29 01:01:54 -08:00
Igor Bukanov
6d2d81f9db bug 629655 - avoid influencing the malloc GC counters when dumping the heap. r=anygregor 2011-01-28 23:25:05 +01:00
Andreas Gal
48adc47ad7 Cache result of Function.prototype.toString (bug 629590, r/a=shaver). 2011-01-28 10:19:13 -08:00
Boris Zbarsky
8988295145 Bug 628209 partial fix. On trace, make the element getter for typed arrays of unsigned integers that are less than 32 bits get signed 32-bit ints, not unsigned 32-bit ints. r=gal 2011-01-28 10:33:12 -05:00
Brendan Eich
1d606e7be9 Allow PropertyOp-based data properties to be frozen at last-got value (591846, r=jwalden). 2011-01-25 18:04:45 -08:00
Chris Leary
2b67ce4256 CLOSED TREE: Merge mozilla-central and tracemonkey. (a=blockers) 2011-01-27 20:06:21 -08:00
Chris Leary
6d0cc31d27 Back out changeset 7d82892cb8df. 2011-01-27 19:43:33 -08:00
Chris Leary
001cef1fd8 Merge the backout head. 2011-01-27 16:26:21 -08:00
Chris Leary
8f8ea8fd48 Backed out changeset b5ca98debed0 2011-01-27 16:25:30 -08:00
Bill McCloskey
a4f9ab0da8 Bug 609104 - Move the property tree to the compartment (r=brendan) 2011-01-27 15:46:39 -08:00
Blake Kaplan
f6e1daac94 Bug 611485 - Don't enter the foreign compartment when calling through Xray wrappers. r=gal 2011-01-25 15:06:45 -08:00
David Mandelin
62ff5f09d8 Bug 611653: clear values instead of scope when global window shuts down, r=brendan,smaug 2011-01-21 18:37:30 -08:00
Andreas Gal
809f0911fc Remove JSAutoRequest from Handle::ToJSObject (bug 628930, r=jst). 2011-01-26 15:20:20 -08:00
Andreas Gal
c6e66c8f0b Fix compartment mismatches in js/jetpack (bug 624366, r=jst). 2011-01-26 15:18:51 -08:00
Jeff Walden
b33b7b3c3e Bug 497869 - Switch ES5's FutureReservedWords to be reserved only in strict mode, because we foolishly unreserved them once in the past. r=brendan 2011-01-26 15:02:07 -08:00
David Anderson
70bb6ed2af Clone lambdas in heavyweight scopes (bug 625157, r=brendan). 2011-01-26 12:41:15 -08:00
Andreas Gal
f2f643add9 In Proxy get(own)PropertyDescriptor return undefined if property doesn't exist (bug 582967, r=brendan/jorendorff). 2011-01-26 10:43:10 -08:00
Chris Leary
96ff8c4ba9 Follow up fix 2 for bug 623435. (r=brendan)
--HG--
extra : rebase_source : 5c9b8aec39f707f0539b1a9e299f8a5fcc5ee753
2011-01-25 18:00:31 -08:00
Chris Leary
e9f1beb7d9 Follow up fix for bug 623435. (r=brendan) 2011-01-25 17:16:38 -08:00
Chris Leary
986ed207fa Bug 623435: Rip out deprecated RegExp.compile. (r=brendan) 2011-01-25 14:32:53 -08:00
Luke Wagner
36e619deba Bug 627227 - Remove retval-jsval optimization in CallMethod; take the normal wrapping path (r=jst)
--HG--
extra : rebase_source : 899a628dd668efc48d91bd7098010f9c8d4ae61c
2011-01-25 12:27:17 -08:00
timeless@mozdev.org
313f426282 Bug 615834 warning: inline function ‘JSCompartment* JSObject::getCompartment() const’ used but never defined. r=gal
r=mrbkap

--HG--
extra : rebase_source : fe12e4864bb95a55802be395bd119a064af64baf
2011-01-18 14:25:46 -08:00
Chris Leary
074bd0c596 Bug 595691, take 2: fix versioning across VM instances, remove _options. (r=luke,brendan,igor) 2011-01-27 02:54:58 -08:00
Andreas Gal
3c34eab945 Follow-up fix for bug 625559. 2011-01-26 19:19:33 -08:00
Blake Kaplan
8f27ca08f2 Catch chrome eval escaping into content (bug 625559, r=gal). 2011-01-26 18:28:49 -08:00
Jeff Walden
d1158ba854 Followup to change a no-longer-passed-by-us test after the last push for bug 497869. r=orange
--HG--
extra : rebase_source : de824bfb0a7d718e555a85cfad907fb42a5346c0
2011-01-26 16:46:25 -08:00
Mike Hommey
027a27b5f0 Merge backout. a=bustage 2011-01-29 09:33:40 +01:00
Mike Hommey
e781951704 Backed out changeset 32542df68da3 because of maemo bustage. a=bustage 2011-01-29 09:30:17 +01:00
Mike Hommey
ffb82fe543 Bug 627299 - Fix assembler arguments passed in CFLAGS. r=khuey,r=wtc,a=sdwilsh 2011-01-28 09:22:59 +01:00
David Mandelin
618cf9a71d Bug 624041: skip elements deleted via shift or reverse in iteration, r=igor
--HG--
extra : rebase_source : 4e6862e68ee808b172c782412a2983ad0ea5ac4a
2011-01-10 18:39:46 -08:00
Jeff Walden
4c28b52d07 Oops, shell-only test. r=sparky 2011-01-25 11:48:32 -08:00
Luke Wagner
d7acf11bcb Bug 627959, part 3 - move dtoaCache into the compartment (r=billm)
--HG--
extra : rebase_source : 19f2f0bebdfa7f8b349086be18847ffeb834ef4e
2011-01-24 16:30:16 -08:00
Luke Wagner
acc89d7129 Bug 627959, part 2 - wrap exception in XPCThrower::ThrowExceptionObject (r=gal)
--HG--
extra : rebase_source : ea39e580d733130b63d0a71c19c32e773e50f50b
2011-01-24 16:30:16 -08:00
Luke Wagner
9ff73cbdc7 Bug 627959, part 1 - Also assert same compartment on strings (r=me)
--HG--
extra : rebase_source : c6d45ea9f46d68b12b03efd13192d4d217ed4783
2011-01-24 16:30:08 -08:00
Jeff Walden
55ae2cef53 Add tests for behavior of function statements inside with. r=tests
--HG--
extra : rebase_source : c8088e21fb5aeca0b8f62dd8364435ac67e6aa6e
2011-01-24 16:49:26 -08:00
Steve Fink
dc0764a56d Improve comment. Related to bug 627943.
--HG--
extra : rebase_source : ba7505cfd9c0b1957172ba12a0fd39f44050916f
2011-01-24 23:16:48 -08:00
Steve Fink
f448c5faf9 Bug 627516 - Unconditionally #include assembler/wtf/Platform.h to fix crash with --disable-methodjit, r=cdleary
--HG--
extra : rebase_source : cffc3a025b7f32111f97a6853fc5555282568ffe
2011-01-20 14:03:51 -08:00
Steve Fink
afccee8a2d Bug 627943 - Bad ordering of exception save/wrap/restore, r=gal
--HG--
extra : rebase_source : bc2bdd4af8c4639456a8a7c77f8a0353e44ac1d2
2011-01-21 17:32:00 -08:00
Chris Leary
1771b7c232 Backed out changeset b88172246b66 due to Win32 debug failures. 2011-01-25 04:11:47 -08:00
Chris Leary
b462e1fb98 Bug 595691: fix versioning across VM instances, remove _options. (r=luke,brendan,igor) 2011-01-25 02:33:27 -08:00
Andreas Gal
390064e4c9 Trigger appropriate proxy trap for Object.getOwnPropertyNames (bug 628333, r=jwalden). 2011-01-24 22:39:58 -08:00
Chris Leary
a490c5bc24 Merge mozilla-central and tracemonkey. (a=blockers) 2011-01-24 19:47:52 -08:00
Chris Leary
e41aa73d24 Back out changeset 72cb2f4a893c 2011-01-24 19:45:08 -08:00
Andreas Gal
6629b9fa11 Trigger appropriate proxy trap for Object.getOwnPropertyNames (bug 628333, r=jwalden). 2011-01-24 16:10:54 -08:00
Bill McCloskey
3b8a90ccae Bug 627475 - Fix missing return stmt for Android (fixes changeset 4031baed59f7) 2011-01-24 15:16:27 -08:00
Steve Fink
db1cdf9f0a Backed out changeset e13f3b909fa2 2011-01-24 15:12:18 -08:00
Steve Fink
c862f01fdc Backed out changeset 6dcf1547ea08 2011-01-24 15:11:58 -08:00
Steve Fink
937c639424 Backed out changeset 47678330818a 2011-01-24 15:11:34 -08:00
Steve Fink
08a1d24071 Backed out changeset 8743def9e748 2011-01-24 15:11:13 -08:00
Steve Fink
2dacef3f04 Backed out changeset b7e91bafdcd9 2011-01-24 15:10:52 -08:00
Steve Fink
31df3a402a Backed out changeset d54eac606dd7 2011-01-24 15:10:23 -08:00
Steve Fink
8beba6e0ff Backed out changeset c10e63cba3b6 2011-01-24 15:07:00 -08:00
Steve Fink
aa873a798d Improve comment. Related to bug 627943.
--HG--
extra : rebase_source : 66619f6ab6ed81dd0a7d01df5a03274229b5e12e
2011-01-24 14:43:39 -08:00
Steve Fink
b500ebd4d9 Bug 626830 - XPConnect should turn debugging off immediately, without waiting for a quiescent stack
--HG--
extra : rebase_source : 62a7bb8024313841b4c40c86ccaedd1ae9f56ad1
2011-01-24 13:24:52 -08:00
Steve Fink
e2145da10c Bug 626830 - Allow JSD to turn on debugging when no JS code is running, not just when XPConnect stack is completely empty, r=dmandelin
--HG--
extra : rebase_source : 3f177904d2708642dfec8d5937964ec8fc83427a
2011-01-24 13:21:18 -08:00
Steve Fink
65d69cfc54 Bug 627758 - Detect forced GC end case to fix jsd.off() giving NS_ERROR_NOT_AVAILABLE, r=dmandelin
--HG--
extra : rebase_source : 6525e0b9abca2b0096d3fe0d5b8248dcfaebe7ba
2011-01-20 22:10:54 -08:00
Steve Fink
431720e0ac Bug 626743 - Set debug mode for whole runtime, avoiding compartment-less contexts, r=dmandelin
--HG--
extra : rebase_source : 198e9c85fd8126ef0ec24eb390641ece2f2cd61e
2011-01-19 15:33:34 -08:00
Steve Fink
3046e8cfdb Bug 627516 - Unconditionally #include assembler/wtf/Platform.h to fix crash with --disable-methodjit, r=cdleary
--HG--
extra : rebase_source : 8381615c16097fd6eb86e63f7c59b7f33587b47c
2011-01-20 14:03:51 -08:00
Steve Fink
82dbc5d4cf Bug 627943 - Bad ordering of exception save/wrap/restore, r=gal
--HG--
extra : rebase_source : c317f6f3357885077c7182834d3b29412a5606f2
2011-01-21 17:32:00 -08:00
Bill McCloskey
d2d16afad0 Bug 627475 - Clean up methodjit OOM handling (r=dmandelin) 2011-01-24 14:36:34 -08:00
Bill McCloskey
bc4fee0689 Bug 610088 - Don't assert when DecompileValueGenerator called from script prologue (r=dmandelin) 2011-01-24 11:55:02 -08:00
Bill McCloskey
7cf78aa843 Backed out changeset f3b470fb91a9 (orange) for bug 623297 2011-01-24 11:18:53 -08:00
Bill McCloskey
b7ffccbd4b Bug 623297 - To decide JS_ON_TRACE, check the thread, not the compartment (r=gal) 2011-01-24 10:36:28 -08:00
Luke Wagner
75d92493c9 Bug 626526 - Change cx->busyArrays to use SystemAllocPolicy; avoid JSContext init subtleties (r=pbiggar) 2011-01-24 09:47:25 -08:00
Jeff Walden
388e0a33f7 Bug 497869 - Forbid let and yield in strict mode code in scripts which are not JS1.7 or greater (that is, any web script not explicitly opted into JS1.7+ with a <script type>). r=brendan 2011-01-24 07:26:26 -08:00
Jeff Walden
15fda24aa9 Bug 497869 - Future reserved words are syntax errors in strict mode. r=brendan 2011-01-22 17:46:22 -08:00
Jeff Walden
50cccbcec6 Bug 624110 - Properly traverse the scope chain over strict eval frames in the tracer. r=brendan 2011-01-10 13:09:07 -06:00