Steve Fink
2d00fc8b3a
backout 75010170a6ee (bug 688327)
2011-09-26 17:06:42 -07:00
Steve Fink
215d4f3373
backout 7b4c94293707 (bug 686230)
2011-09-26 17:06:15 -07:00
Steve Fink
3008328012
backout 0cce4b4dead8 (bug 687102)
2011-09-26 16:55:37 -07:00
Steve Fink
f34cf265e4
backout 91f8565205db
2011-09-26 16:55:05 -07:00
Chris Leary
931f3f492b
Back out bug 684039.
...
--HG--
rename : js/src/ds/LifoAlloc.h => js/src/jsarena.h
2011-09-26 16:50:17 -07:00
Chris Leary
8e7db87c8c
Bug 684039: rewrite JS LIFO allocator, avoids thrashing. (r=luke)
...
--HG--
rename : js/src/jsarena.h => js/src/ds/LifoAlloc.h
2011-09-22 13:22:30 -07:00
Terrence Cole
2c7812b967
Bug 688646 - Remove its.bindMethod and js/src/tests/js1_5/Function/15.3.4.4.js; r=jwalden
...
Section 1 of the existing tests is already in js/src/tests/ecma_3/Function/
15.3.4.4-1.js. Section 2 is an internal detail of our implementation that in
the near future is going to be changing. Currently, we sometimes stilll walk
the parent pointers to get to globals; soon we will have a faster way to get
them in all cases, either through compile-n-go or IM. What we really want to
test is that we get the lexical globals, not the caller globals. This adds such
a test to our newer Function tests and simply removes the old Function tests.
--HG--
extra : rebase_source : 8d4c9440750245e895a01f8b92d1ceb3d18d8e8f
2011-09-26 15:17:05 -07:00
Jeff Walden
30f829f162
Bug 689285 - Make [[ThrowTypeError]] properly non-extensible. r=luke
...
--HG--
extra : rebase_source : 159ea15fc162ce0f7fe9e92adf18175c6ae15a8d
2011-09-26 13:59:23 -07:00
Chris Leary
5db5bc98eb
Fix JS shell build. (r=luke)
2011-09-26 16:09:47 -07:00
Steve Fink
ae4efa89c7
Bug 687102 - Range check the PC argument to trap/untrap/line2pc/etc. in JS shell (r=cdleary)
2011-09-16 15:55:03 -07:00
Steve Fink
0c6caf335b
Backout a21f23d350d8 (bug 645111)
2011-09-26 15:38:51 -07:00
Steve Fink
a11570a981
Bug 686230 - Add JS_CallOnce to the JSAPI for module initialization (r=luke)
...
--HG--
extra : rebase_source : 02b57a1e87cbc6676db9e9eb2c6567f43da99ba8
2011-09-11 11:37:43 -07:00
Steve Fink
53e932943b
Bug 645111 - Insert .cfi directives into inline assembly to provide debug info (r=jimb)
...
--HG--
extra : rebase_source : 309caa68ba398c37b7cf481ce85fab9e2b83ad83
2011-03-25 11:45:00 -07:00
Steve Fink
d19c36ec0f
Bug 688327 - tempCallReg cannot return callee-saved registers since they may be held live across FASTCALLs (r=dvander)
...
--HG--
extra : rebase_source : c85a6813280bed86f98239ab12d91fe3c08f1a5b
2011-09-22 15:06:08 -07:00
Atul Aggarwal
d8d9264cde
Bug 581473: Fix uninitialized variable warnings in XPCConvert::JSData2Native. r=mrbkap
2011-09-01 01:06:48 +05:30
Jeff Walden
af8e4ab1e2
Bug 656810 - Implement js::NumberObject. r=njn
...
--HG--
extra : rebase_source : 0ca4eba24d64c8baac02a6c95b9079a7940fa345
2011-05-13 14:12:15 -07:00
Jeff Walden
8a53b65818
Bug 686002 - Refactor WeakMap class initialization. r=bhackett
...
--HG--
extra : rebase_source : cccef99e3ed5b084fa28bb59a1338ca6e7045e54
2011-05-04 16:54:24 -04:00
Jeff Walden
4cefe33e4c
Bug 686002 - Refactor Date class initialization. r=bhackett
...
--HG--
extra : rebase_source : 0dcb02dc1f79b23a29655dd91dd48957b10d8344
2011-05-03 15:18:36 -04:00
Jeff Walden
5b2525a5c3
Bug 686002 - Refactor Number class initialization. r=bhackett
...
--HG--
extra : rebase_source : dfcfd4ce1e78c921ce9348f44fb50ed4be646fda
2011-05-02 17:03:47 -04:00
Jeff Walden
572d901868
Bug 686002 - Refactor Boolean class initialization. r=bhackett
...
--HG--
extra : rebase_source : 0bbe5cf03528ce1b4fcc4ed2df6941448c19d147
2011-05-02 16:36:42 -04:00
Ehsan Akhgari
fe0d0ce6ff
Backed out changeset 020f14584a2a (bug 680246) because it broke builds on all platforms
2011-09-26 11:53:28 -04:00
Joey Armstrong
9cb3971e04
Bug 680246 - makefile logic to support threadsafe mkdir -p; r=ted
2011-08-18 17:16:21 -04:00
Atul Aggarwal
8361541a0b
Bug 581477 - Silence uninitialized variable warnings in xpcwrappednativeproto.cpp; r=bsmedberg
2011-09-01 01:56:33 +05:30
Bobby Holley
aa1965160b
Bug 683802 - Pass useAllocator=false only for wrappedjs dipper params. Everything else can allocate. r=mrbkap
...
We only have one good reason for the useAllocator distinction: when C++ calls JS with a dipper parameter (ie, a string), the caller has already created the relevant nsAString or nsCString, so we shouldn't allocate another one. All other uses are superfluous or irrelevant, so we can get rid of them.
2011-09-25 15:38:02 +01:00
Bobby Holley
1d473af0de
Bug 683802 - Force allocation for sized PWSTRINGs in XPCWrappedNative argument conversion. r=mrbkap
...
This is the last remaining place where we might pass a non-dipper with useAllocator==false to XPCConvert *and, as a consequence*, do something different within XPCConvert. This paves the way for the elimination of useAllocator for non-dipper types.
2011-09-25 15:38:01 +01:00
Bobby Holley
0ef52222c1
Bug 683802 - Remove XPC_JSArgumentFormatter and friends. r=mrbkap
...
XPC_JSArgumentFormatter adds 3 special format string tokens to spidermonkey: %ip, %iv, and %is. These were unused outside of testing according to a free-text MXR search, and don't appear to be well-documented anywhere either. They also happen to be quite dangerous and easy to use improperly: we pass untyped variadic parameters to XPCConvert::JSData2Native with useAllocator==false. This causes JSData2Native to blindly cast the values to concrete class pointers (like nsAString*) and call methods on them.
2011-09-25 15:38:01 +01:00
Bobby Holley
d9a517269b
Bug 683802 - Eliminate questionable support for [shared] parameters. r=mrbkap
...
AFAICT we'd crash if we hit these cases anyway. bsmedberg and khuey requested that I assert against this case within XPConnect, and file a bug to make XPIDL enforce that [shared] parameters exist only in [noscript] methods. Filed bug 685281 for this.
2011-09-25 15:38:01 +01:00
Bobby Holley
3f12803681
Bug 683802 - Coalesce type-specific cleanup indicators. r=mrbkap
2011-09-25 15:38:01 +01:00
Bobby Holley
85a6b92ebd
Bug 683802 - Add jsval to the XPTCMiniVariant union for type safety. r=mrbkap
2011-09-25 15:38:01 +01:00
Bobby Holley
4764ad32ea
Bug 683802 - Use an explicit indicator for direct vs indirect calling semantics. r=mrbkap
2011-09-25 15:38:01 +01:00
Bobby Holley
05a47898e5
Bug 683802 - Define and restrict the semantics of PTR_IS_DATA. r=mrbkap
2011-09-25 15:38:01 +01:00
Bobby Holley
32b99c391c
Bug 683802 - Always store jsvals directly within the val union (fixes bug 655878). r=mrbkap
2011-09-25 15:38:00 +01:00
Bobby Holley
6eb6ef3dba
Bug 683802 - Factor dipper handling out into a helper method. r=mrbkap
2011-09-25 15:38:00 +01:00
Bobby Holley
3c6c5e3a02
Bug 683802 - Separate reindentation from previous patch for easier review. No other changes. r=mrbkap
2011-09-25 15:38:00 +01:00
Bobby Holley
655481c1ac
Bug 683802 - Move the loop contents of ConvertIndependentParams into a separate method (without re-indentation). r=mrbkap
2011-09-25 15:38:00 +01:00
Bobby Holley
06b0d11298
Bug 683802 - Remove mAutoString micro-optimization. r=mrbkap
2011-09-25 15:38:00 +01:00
Bobby Holley
7d32af0621
Bug 684327 - Package the typelib along with the components so that it's accessible from the test harness. r=khuey
2011-09-25 15:38:00 +01:00
Bobby Holley
c2fad28573
Bug 684327 - Test parameter passing. r=khuey
2011-09-25 15:38:00 +01:00
Bobby Holley
82d89ea7b4
Bug 684327 - Generalize test_readwriteattributes.js into test_attributes.js. r=khuey
...
--HG--
rename : js/src/xpconnect/tests/unit/test_readwriteattributes.js => js/src/xpconnect/tests/unit/test_attributes.js
2011-09-25 15:38:00 +01:00
Bobby Holley
ef44402842
Bug 684327 - Add an xpcshell test that exercises both the native and js components. r=khuey
2011-09-25 15:37:59 +01:00
Bobby Holley
a8f0c05399
Bug 684327 - Introduce js-implemented test component. r=khuey
2011-09-25 15:37:59 +01:00
Bobby Holley
9055a80409
Bug 684327 - Move the C++ implementation of the test component into its own subdirectory. r=khuey
...
--HG--
rename : js/src/xpconnect/tests/components/Makefile.in => js/src/xpconnect/tests/components/native/Makefile.in
rename : js/src/xpconnect/tests/components/xpctest.manifest => js/src/xpconnect/tests/components/native/xpctest.manifest
rename : js/src/xpconnect/tests/components/xpctest_attributes.cpp => js/src/xpconnect/tests/components/native/xpctest_attributes.cpp
rename : js/src/xpconnect/tests/components/xpctest_module.cpp => js/src/xpconnect/tests/components/native/xpctest_module.cpp
rename : js/src/xpconnect/tests/components/xpctest_private.h => js/src/xpconnect/tests/components/native/xpctest_private.h
2011-09-25 15:37:59 +01:00
Bobby Holley
cb36277b94
Bug 684327 - Misc fixes to xpctest_attributes. r=khuey
...
This patch is best reviewed while listening to http://www.youtube.com/watch?v=MK6TXMsvgQg
NB - The code here would make a great "find the bugs in this code" interview screen question.
2011-09-25 15:37:59 +01:00
Bobby Holley
232e6d4229
Bug 684327 - Start building a small subset of the xpconnect test component again, kill the rest. r=khuey
...
Thanks to Mook for the initial patch!
2011-09-25 15:37:59 +01:00
Bobby Holley
836ad39fe6
Bug 684327 - Remove TestXPC.cpp, which currently printfs that it's failing various things and then segfaults. r=khuey
2011-09-25 15:37:58 +01:00
Brian Hackett
5d2e46b208
Sync state on all exit paths in CALLPROP PICs when allowing getter stubs, bug 688478. r=dvander
2011-09-24 14:15:38 -07:00
Matheus Kerschbaum
6a1e69506a
Bug 669829 - Remove check for atlbase.h and oleacc.idl from configure. r=ted
2011-09-24 12:53:07 +02:00
Ed Morley
261cdd7af4
Backout 3bfef7f630dc and all ancestors until cba5d081f15d inclusive (bug 683802, bug 684327 & bug 652571); a=use-try-before-crapping-23-changesets-on-the-tree-thank-you-please
2011-09-24 03:33:31 +01:00
Ed Morley
9381ac8563
Backout changeset 737c2fdb9148 (bug 683802), since bustage fix not relevant now that the whole bug is being backed out
2011-09-24 03:29:48 +01:00
Andrew McCreight
5dda5020df
Bug 683802 - remove trailing ; to fix Maemo bustage. r=bholley
2011-09-23 17:26:19 -07:00