Commit Graph

16517 Commits

Author SHA1 Message Date
Brian Hackett
e89780c40d Remove jsobj.h from installed headers, bug 690943. r=luke 2011-10-04 07:06:54 -07:00
Brian Hackett
3e87f078bb Fix warning, bug 689892. 2011-10-03 15:01:09 -07:00
Brian Hackett
9eefc220c1 Fix bogus assert, bug 688968. r=dvander 2011-10-03 14:51:40 -07:00
Brian Hackett
e707b2f190 Check for operations on integers in loops, bug 689892. r=dvander 2011-10-03 14:43:09 -07:00
Chris Leary
eea74f7062 Bug 691143: Avoid negation of unsigned. (r=luke) 2011-10-03 10:28:50 -07:00
Marco Bonardo
977ee4f471 Merge last good changeset from mozilla-inbound to mozilla-central 2011-10-03 15:34:14 +02:00
Ms2ger
eacbc5f7f3 Bug 688531 - Remove NameList; r=jst 2011-10-01 18:14:40 +02:00
Doug Sherk
5b5702d6a4 Bug 684853: implement OES_standard_derivatives
Implemented OES_standard_derivatives and fallbacks if it isn't available. Exposes dFdx, dFdy, and fwidth functions to WebGL scripts.
2011-10-01 00:45:50 -04:00
Phil Ringnalda
8f9ce9c2c1 Bug 686143 - temporarily skip ecma/Date/15.9.5.9.js on Android to see what effect it has on frequency and location of timeouts, rs=bc 2011-10-01 17:54:43 -07:00
Matt Brubeck
10cd4a93c8 Merge mozilla-central to mozilla-inbound 2011-09-30 21:02:01 -07:00
Matt Brubeck
82fb7ff53c Back out cb715f8a1363 (bug 680246) because of Win opt build failures on a CLOSED TREE 2011-09-30 20:43:13 -07:00
Matt Brubeck
3d8b943004 Merge mozilla-central to mozilla-inbound 2011-09-30 18:39:57 -07:00
Michal Novotny
05093e122d Bug 682727 - Handle OOM in xpc_qsDOMString and xpc_qsAUTF8String 2011-09-30 21:13:55 +02:00
Kyle Huey
b71da150fd Merge m-c to b-s. 2011-09-30 16:25:07 -04:00
Jason Orendorff
d8a251886e Fix GCC warnings about using CHECK_EQUAL macro to compare a pointer to NULL. no_r=red. 2011-09-29 15:52:05 -05:00
Jason Orendorff
7ebbbb1c1a Bug 688571 - JS_PropertyIterator is broken. r=Waldo.
--HG--
extra : rebase_source : bde827991fb39bfc1fbae9e39dac2923713cf13d
2011-09-29 15:05:07 -05:00
Chris Leary
924c144871 Fix license block errors. (DONTBUILD) 2011-09-29 11:54:51 -07:00
Rafael Ávila de Espíndola
b9c70d96b3 Bug 689066 - Fix c++11 incompatibility. r=luke. 2011-09-29 13:49:54 -04:00
Ehsan Akhgari
a8d2514455 Merge mozilla-central into mozila-inbound 2011-09-29 12:51:50 -04:00
Kyle Huey
0b7e698fb5 Bug 688417: Test for Bug 505915 expects setting xhr.onreadystatechange to unwrap the object passed in. r=mrbkap 2011-09-29 12:06:36 -04:00
Kyle Huey
84a3c222e7 Bug 688776: test_doublewrappedcompartments.xul relies on XHR event listener being a wrapped JSObject. r=mrbkap 2011-09-29 12:06:36 -04:00
Kyle Huey
0b5c883353 Bug 688416: Test for Bug 502959 relies on XHR event listener being an nsIDOMEventListener. r=mrbkap 2011-09-29 12:06:35 -04:00
Michael Wu
d8e503c38b Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Makoto Kato
760958734d Bug 681202 - Add Android x86 target. r=glandium 2011-09-29 13:39:03 +09:00
Reuben Morais
b5b37104ac Bug 647390 - Remove the calloc+placement-new pattern (r=luke) 2011-09-28 09:17:51 -07:00
Felix Fung
047e9060cf Bug 674012 - Remove checks for HAVE_GCC3_ABI. r=glandium 2011-09-28 11:32:39 -07:00
Teemu Mannermaa
ab3d709d37 Bug 689157 - Fix CC variables used in "cl -showIncludes" detection logic. r=khuey 2011-09-29 15:20:51 +02:00
Makoto Kato
a1c2ba06b3 Bug 689288 - xpcshell\tests\js\src\xpconnect\tests\unit\test_attributes.js and test_params.js are perma-orange on Win64. r=bsmedberg 2011-09-29 18:43:50 +09:00
Jim Blandy
c5a26e35be (no bug): Fix comment reference to RejoinInterpreter (now js_InternalInterpret). r=bhackett
DONTBUILD
2011-09-28 15:40:23 -07:00
Luke Wagner
46803bb586 Bug 683361 - Fix part 6: add and call Proxy::objectClassIs (r=waldo)
--HG--
extra : rebase_source : b387bc288a45fc985df06ce2ca84823cf45803b3
2011-09-28 08:48:16 -07:00
Chris Leary
14bc4cf54d Bug 684039: rewrite JS LIFO allocator, avoids thrashing. (r=luke)
--HG--
rename : js/src/jsarena.h => js/src/ds/LifoAlloc.h
extra : rebase_source : 098bf9561114f82363ebd0862213acf952709257
2011-09-22 13:22:30 -07:00
Luke Wagner
edba706beb Bug 683361 - quell GCC over-warning from 90ff7402febc (r=me) 2011-09-27 23:20:46 -07:00
Luke Wagner
2ca10ad65e Bug 683361, part 5 - Handle transparent proxies correctly in [[Class]] == "X" queries (r=waldo)
--HG--
extra : rebase_source : 42d32c87f8cffc765649bbb5890009edfb4a4807
2011-09-20 16:48:50 -07:00
Luke Wagner
291999169a Bug 683361, part 4 - Handle transparent proxies correctly in non-generic methods (r=waldo)
--HG--
extra : rebase_source : 0f36c83685f2822453ce203a87cca4076222c48c
2011-09-08 21:18:23 -07:00
Luke Wagner
d8b2ca4ce3 Bug 683361, part 3 - add ProxyHandler::nativeCall (r=mrbkap)
--HG--
extra : rebase_source : 4494ddfc1e3f76bf550013c199a3f3b17a5e941f
2011-09-08 21:06:41 -07:00
Luke Wagner
2c8c55d13f Bug 683361, part 2 - use CallArgs more (r=waldo)
--HG--
extra : rebase_source : 0825a9729a7e24706e9fa1f3fdfb1586c475d8cf
2011-09-08 21:02:26 -07:00
Luke Wagner
7ff16e4820 Bug 683361, part 1 - Strip JS prefix from proxy names since they are already in namespace js (r=gal)
--HG--
extra : rebase_source : 5eded8e02c36991322c94fca1092970910c2ceea
2011-09-08 20:29:15 -07:00
Jeff Walden
224523470b Rewrite a very awkwardly worded comment describing the flat closure optimization. rs=cdleary over IRL 2011-09-27 16:35:41 -07:00
Chris Leary
f920b34e5b Bug 687951: Shrink js_EmitTree frame. (r=Waldo) 2011-09-27 13:35:07 -07:00
Rafael Ávila de Espíndola
3e524a04f6 Bug 689269 - Don't read memory from other compartments in gc. r=wmccloskey. 2011-09-27 15:44:26 -04:00
Boris Zbarsky
377a55505b Version bump to 10.0a1 on CLOSED TREE 2011-09-27 13:19:35 -04:00
Jonas Sicking
4bfb8cc06d Bug 687400 - Adds a warning about isSameNode going to be removed. r=smaug 2011-09-27 12:07:11 +02:00
Mounir Lamouri
6453ab8669 Backout last two commits because of ownership issue. 2011-09-27 12:18:02 +02:00
Jonas Sicking
f6dcc9c4d8 Bug 687400 - Adds a warning about isSameNode going to be removed. r=smaug 2011-09-27 12:07:11 +02:00
Matheus Kerschbaum
3d31a8f676 Bug 687766 part 1: Remove build-time dependency on libIDL. r=khuey 2011-09-27 10:09:54 +02:00
Steve Fink
d61dde7689 Bug 688327 - tempCallReg cannot return callee-saved registers since they may be held live across FASTCALLs (r=dvander)
--HG--
extra : rebase_source : 10d63c752478157a9eb3fb4a5325405de9d20227
2011-09-22 15:06:08 -07:00
Matt Brubeck
f97e38bdc3 Merge mozilla-central to mozilla-inbound 2011-09-26 19:09:08 -07:00
Jeff Walden
7c296f5d20 Bug 688646 - Followup fix to make recent test changes feature-test for shell-only functionality. r=orange 2011-09-26 18:28:57 -07:00
Steve Fink
1750738c1d backout 75010170a6ee (bug 688327) 2011-09-26 17:06:42 -07:00
Steve Fink
538fc70e92 backout 7b4c94293707 (bug 686230) 2011-09-26 17:06:15 -07:00
Steve Fink
2742deb964 backout 0cce4b4dead8 (bug 687102) 2011-09-26 16:55:37 -07:00
Steve Fink
6262b6572f backout 91f8565205db 2011-09-26 16:55:05 -07:00
Chris Leary
073072052c 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
b7a2ff75e7 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
ca11d64326 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
fdc99b2376 Bug 689285 - Make [[ThrowTypeError]] properly non-extensible. r=luke
--HG--
extra : rebase_source : 159ea15fc162ce0f7fe9e92adf18175c6ae15a8d
2011-09-26 13:59:23 -07:00
Chris Leary
4efc1d86d0 Fix JS shell build. (r=luke) 2011-09-26 16:09:47 -07:00
Steve Fink
5128008a7d 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
bf0e736d80 Backout a21f23d350d8 (bug 645111) 2011-09-26 15:38:51 -07:00
Steve Fink
654dd204ab 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
Joey Armstrong
dade8fca23 Bug 680246 - threadsafe mkdir makefile library rules. r=ted 2011-08-18 17:16:21 -04:00
Matt Brubeck
c78c700e5a Bug 689288 - Annotate failing xpcshell tests on Win64 [r=khuey] 2011-09-26 14:27:37 -07:00
Ehsan Akhgari
0f6e3e18c4 Backed out changeset 020f14584a2a (bug 680246) because it broke builds on all platforms 2011-09-26 11:53:28 -04:00
Joey Armstrong
d1f0112849 Bug 680246 - makefile logic to support threadsafe mkdir -p; r=ted 2011-08-18 17:16:21 -04:00
Atul Aggarwal
1f0d1d7bf8 Bug 581477 - Silence uninitialized variable warnings in xpcwrappednativeproto.cpp; r=bsmedberg 2011-09-01 01:56:33 +05:30
Bobby Holley
3bb161b410 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
76631b6402 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
b11b764aae 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
f8d046ce9c 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
53f973b84d Bug 683802 - Coalesce type-specific cleanup indicators. r=mrbkap 2011-09-25 15:38:01 +01:00
Bobby Holley
c6981dfa25 Bug 683802 - Add jsval to the XPTCMiniVariant union for type safety. r=mrbkap 2011-09-25 15:38:01 +01:00
Bobby Holley
8a2ae11493 Bug 683802 - Use an explicit indicator for direct vs indirect calling semantics. r=mrbkap 2011-09-25 15:38:01 +01:00
Bobby Holley
6aab3db9fd Bug 683802 - Define and restrict the semantics of PTR_IS_DATA. r=mrbkap 2011-09-25 15:38:01 +01:00
Bobby Holley
0007397e8c 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
d228a521a2 Bug 683802 - Factor dipper handling out into a helper method. r=mrbkap 2011-09-25 15:38:00 +01:00
Bobby Holley
502e318d55 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
a054a34e65 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
775809e6a1 Bug 683802 - Remove mAutoString micro-optimization. r=mrbkap 2011-09-25 15:38:00 +01:00
Bobby Holley
309a2dc785 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
ccd5a6439b Bug 684327 - Test parameter passing. r=khuey 2011-09-25 15:38:00 +01:00
Bobby Holley
1196662e29 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
d8e94b80ac 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
5cede67fc3 Bug 684327 - Introduce js-implemented test component. r=khuey 2011-09-25 15:37:59 +01:00
Bobby Holley
e1a2873779 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
6258dae585 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
8625141d3e 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
86fdb9d672 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
c61a469092 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
e1d3c86e9c Bug 669829 - Remove check for atlbase.h and oleacc.idl from configure. r=ted 2011-09-24 12:53:07 +02:00
Ed Morley
f5a2b818d7 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
d06542a2e2 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
bac8bd20e7 Bug 683802 - remove trailing ; to fix Maemo bustage. r=bholley 2011-09-23 17:26:19 -07:00
Bobby Holley
43108c0900 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-23 14:50:29 -07:00
Bobby Holley
2f66a40072 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-23 14:50:29 -07:00
Bobby Holley
4170b80aaf 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-23 14:50:28 -07:00
Bobby Holley
0d7e07547c 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-23 14:50:28 -07:00
Bobby Holley
364f0f80e5 Bug 683802 - Coalesce type-specific cleanup indicators. r=mrbkap 2011-09-23 14:50:28 -07:00
Bobby Holley
7386fc9507 Bug 683802 - Add jsval to the XPTCMiniVariant union for type safety. r=mrbkap 2011-09-23 14:50:28 -07:00
Bobby Holley
c0aa2b6439 Bug 683802 - Use an explicit indicator for direct vs indirect calling semantics. r=mrbkap 2011-09-23 14:50:28 -07:00
Bobby Holley
21981b746e Bug 683802 - Define and restrict the semantics of PTR_IS_DATA. r=mrbkap 2011-09-23 14:50:28 -07:00
Bobby Holley
bb7989ef1e Bug 683802 - Always store jsvals directly within the val union (fixes bug 655878). r=mrbkap 2011-09-23 14:50:28 -07:00
Bobby Holley
b39a7f2504 Bug 683802 - Factor dipper handling out into a helper method. r=mrbkap 2011-09-23 14:50:28 -07:00
Bobby Holley
757407104f Bug 683802 - Separate reindentation from previous patch for easier review. No other changes. r=mrbkap 2011-09-23 14:50:27 -07:00
Bobby Holley
b88cd46009 Bug 683802 - Move the loop contents of ConvertIndependentParams into a separate method (without re-indentation). r=mrbkap 2011-09-23 14:50:27 -07:00
Bobby Holley
b6cbc3e44d Bug 683802 - Remove mAutoString micro-optimization. r=mrbkap 2011-09-23 14:50:27 -07:00
Bobby Holley
61ec2b2260 Bug 684327 - Package the typelib along with the components so that it's accessible from the test harness. r=khuey 2011-09-23 14:50:27 -07:00
Bobby Holley
9ee149cc53 Bug 684327 - Test parameter passing. r=khuey 2011-09-23 14:50:27 -07:00
Bobby Holley
608c7d4d5f 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-23 14:50:27 -07:00
Bobby Holley
4525104bc9 Bug 684327 - Add an xpcshell test that exercises both the native and js components. r=khuey 2011-09-23 14:50:27 -07:00
Bobby Holley
3c889d66dd Bug 684327 - Introduce js-implemented test component. r=khuey 2011-09-23 14:50:27 -07:00
Bobby Holley
6f02e9f167 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-23 14:50:27 -07:00
Bobby Holley
91964a9e10 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-23 14:50:27 -07:00
Bobby Holley
4252ab2c8a 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-23 14:50:27 -07:00
Bobby Holley
93d027b403 Bug 684327 - Remove TestXPC.cpp, which currently printfs that it's failing various things and then segfaults. r=khuey 2011-09-23 14:50:26 -07:00
Luke Wagner
97b8d5795c Bug 688769 - rm resource.h and t/ from js/src (r=dmandelin)
--HG--
extra : rebase_source : ac5bb528ab1c25c649cab1e6c5c63f778e2594eb
2011-09-23 09:07:33 -07:00
Luke Wagner
f4a84db75a Bug 688769 - Remove dead args from StackFrame::functionEpilogue (r=bhackett)
--HG--
extra : rebase_source : ebb55d46c774a4e1dad6eacf59d55e5da496948c
2011-09-23 08:59:19 -07:00
Tom Schuster
6348ebba8c Bug 685150 - Generate native code for Math.min/Math.max in the methodjit. r=bhackett 2011-09-09 14:53:28 +02:00
Brian Hackett
8034f0a1a6 Fix bogus assert, bug 687399. r=dvander 2011-09-23 07:12:36 -07:00
Brian Hackett
fd136b659e Only inline scripts which have already been analyzed, bug 687125. r=dvander 2011-09-23 07:02:28 -07:00
Brian Hackett
baeabd8f01 Don't drop contents of copied dead slots at branches, bug 687768. r=dvander 2011-09-23 06:33:20 -07:00
Mike Hommey
8a2b143076 Bug 653056 - Use a bitwise version of JSDOUBLE_IS_NaN that Visual Studio PGO doesn't miscompile. r=jimb 2011-09-23 14:27:21 +02:00
Mike Hommey
cf96279041 Bug 671423 - Manually inline DOUBLE_TO_JSVAL to avoid Xcode 3.1.4 miscompilation. r=jimb 2011-09-23 14:25:16 +02:00
Boris Zbarsky
085b188f8c Bug 684671. Allow the onreadystatechange getter/setter on Document.prototype to not throw even if its |this| is bogus. r=peterv,sicking 2011-09-23 01:03:50 -04:00
Andreas Gal
195f6fccb6 Bug 660233 part 2. Move nodePrincipal, baseURIObject, and documentURIObject from classinfo to XrayWrapper and to DOM prototypes in chrome documents. r=mrbkap 2011-09-21 21:30:27 -04:00
Boris Zbarsky
18cca0613a Bug 688685. Propcached property adds that just write to a slot are not sound when the class has an addProperty hook. r=bhackett 2011-09-23 01:03:49 -04:00
Jeff Walden
37632bfcb5 Bug 687621 - Convert getProperty to take a PropertyName*, and make getGeneric the only way to get a property for a jsid. r=luke 2011-09-15 11:44:10 -07:00
Jeff Walden
ddb8886dc3 Bug 687621 - Introduce js::SpecialId, encapsulating the non-index, non-string bizarro property names. r=luke 2011-09-20 14:34:11 -07:00
Jeff Walden
9d85b7ddf3 Add PropertyName to the string-types tree in vm/String.h, and beef up the comment by PropertyName itself to better explain its utility. rs=luke 2011-09-21 15:37:43 -07:00
Jeff Walden
229554194a Bug 687621 - Further split ObjectOps to add a third property type (and temporarily a fourth to use for a property of indeterminate type), to encapsulate object-valued jsids and properties that don't fit in the property name/element distinction. r=luke
--HG--
extra : rebase_source : 4cfd216dcbff77750cb54ea48b546e83bd555513
2011-08-12 14:26:48 -04:00
Jeff Walden
00521e3dfd Bug 687642 - Rename JSFlatString::isElement to JSFlatString::isIndex. This better comports with other terminology being thrown around, and it makes it simpler to distinguish between the value used as the property name (the index, potentially) and the value the property contains (the element). r=dvander
--HG--
extra : rebase_source : e66315100fc331a4bd961a2cd281c36ed23ce471
2011-09-19 13:57:33 -07:00
Paul Biggar
d8fd60d75c Change in-tree users of Array.prototype.splice to not rely on non-standard behavior of deleting all elements from |k| onward for |arr.splice(k)|. r=jwalden
--HG--
extra : rebase_source : b2f041ab27c500636598fe6213481c1a5f0989e8
2011-09-22 15:43:11 -07:00
Bill McCloskey
e5701ded7e Bug 677431 - Clean up MarkAndSweep code in GC (r=igor) 2011-08-05 10:25:51 -07:00
Igor Bukanov
abe648ab25 bug 688551 - specialize ~Anchor for Value only outside GCC. r=luke 2011-09-22 21:01:49 +02:00
Bill McCloskey
ee58d4bd06 Bug 674776 - Replace giganto test with code to generate it (rs=jorendorff) 2011-09-21 16:37:30 -07:00
Terrence Cole
59f4dc6032 Bug 685315 - Remove the GETGLOBAL opcode; r=dvander
This was a nice and simple way to get a perf boost in the
interpreter and JM, but JSOP_GETGNAME has the same
information and more. TI doesn't need it, JM technically
doesn't, and IM won't either. We can just do a normal
property lookup during compilation.
2011-09-22 17:35:25 +01:00
Brian Hackett
e29e34dc29 Try to release native call stubs on GC, bug 688292. r=dvander 2011-09-22 07:26:14 -07:00
Sean Stangl
94e87deaa3 Correct typo in NumberDiv. (Bug 686323, r=dvander) 2011-09-21 20:51:18 -07:00
Boris Zbarsky
342e93102b Merge backout of revision adceb7fb0fce (bug 660233) 2011-09-21 23:06:22 -04:00
Boris Zbarsky
8846761995 Backed out changeset adceb7fb0fce (bug 660233) due to test failures. 2011-09-21 23:05:42 -04:00
Andreas Gal
50f364a16d Bug 660233. Move nodePrincipal, baseURIObject, and documentURIObject from classinfo to XrayWrapper. r=mrbkap 2011-09-21 21:30:27 -04:00
Mark Hammond
c055f5481f Bug 683400 - SandboxDump should flush stderr after writing output. r=mrbkap 2011-09-21 20:56:20 +02:00
Ehsan Akhgari
7c4401c2bc Merge mozilla-central and mozilla-inbound 2011-09-21 13:13:10 -04:00
Mike Hommey
e47f41066a Bug 687805 - Allow DIST_FILES, DIST_CHROME_FILES and PREF_JS_EXPORTS to be in objdir. r=khuey 2011-09-21 18:06:14 +02:00
Landry Breuil
4c2a5bcfec Bug 684559 - Don't include now missing jswtfbridge.h on non-YARR JIT architectures (NPOTDB); r=dmandelin 2011-09-21 13:41:17 +01:00
Marco Bonardo
7a5befcc01 Merge last green changeset from mozilla-inbound to mozilla-central 2011-09-21 10:35:19 +02:00
Brian Hackett
9aa0e92fea Verify range against previous stub when linking getter PIC stubs, bug 688090. r=dvander 2011-09-20 21:33:35 -07:00
Brian Hackett
4f83e99a93 Don't clobber callee-save register when testing pushed value after stub calls, bug 687856. r=dvander 2011-09-20 20:14:28 -07:00
Luke Wagner
61f76ef0bd Bug 684526 - Remove Jsvalify/Valueify (r=waldo)
--HG--
extra : rebase_source : a3047338ed088c26a93486addd0be8092fe52934
2011-09-20 11:40:24 -07:00
Ehsan Akhgari
41c2a18909 Merge the last green changeset of mozilla-inbound to mozilla-central 2011-09-20 10:22:17 -04:00
Brian Hackett
ca868dfc21 Merge MC -> JM 2011-09-19 15:29:22 -07:00