Commit Graph

26705 Commits

Author SHA1 Message Date
Gavin Sharp
9edfda8ec6 Bug 878291: define RELEASE_BUILD/NIGHTLY_BUILD in the js configure too, r=ted
--HG--
extra : transplant_source : %20%C3%0EB%1F%F0%ED%84%91%EF3%06vJ%AA%BB3y%A8%D1
2013-05-31 14:56:48 -07:00
Dan Gohman
19add64a43 Bug 875929 - Now that js_bitscan_ctz64 and js_bitscan_clz64 are implemented on all platforms, clean up some compatibility code which isn't needed anymore. r=evilpies 2013-06-05 07:39:10 -07:00
Benjamin Bouvier
e053279032 Bug 879033 - Replace MOZ_DOUBLE_IS_NEGZERO by IsNegativeZero on Solaris. r=jimb 2013-06-03 15:09:22 -07:00
Dan Gohman
783a7c683b Bug 875929 - Generalize the code for materializing double constants. In particular, this new code handles 0x7ff8000000000000, a common NaN. To support this, implement js_bitscan_ctz64 for 32-bit targets. r=evilpies 2013-06-04 21:39:13 -07:00
Bobby Holley
a28e914d2c Bug 877261 - Fold XPCCallContext::Init into XPCCallContext::XPCCallContext. r=Ms2ger
The large block is a simple move.
2013-06-04 21:11:21 -07:00
Bobby Holley
106481e316 Bug 877261 - Remove WrapperInitOptions. r=Ms2ger
Now that we don't have the separate path for initialization from an
XPCLazyCallContext, this stuff can be simplified. We get rid of Init entirely
in the next patch.
2013-06-04 21:11:21 -07:00
Bobby Holley
79e154981a Bug 877261 - Kill XPCLazyCallContext. r=Ms2ger
\o/
2013-06-04 21:11:21 -07:00
Bobby Holley
9ab7c2d38c Bug 877261 - Remove XPCLazyCallContext from Quickstubs. r=Ms2ger
There are a number of places where quickstubs does a scary-looking call to
lccx->SetWrapper. However, the lccx never gets morphed into a ccx, nor does
it escape in any other way. And unlike ccxes, declaring an lccx on the stack
doesn't have any observable side-effects. So this should actually be safe.
2013-06-04 21:11:20 -07:00
Bobby Holley
4843761664 Bug 877261 - Stop Passing lccx in a few Quickstubs places where we just want a JSContext. r=Ms2ger 2013-06-04 21:11:20 -07:00
Bobby Holley
6bfdce50e9 Bug 877261 - Remove the last two non-quickstub XPCLazyCallContexts. r=Ms2ger 2013-06-04 21:11:20 -07:00
Bobby Holley
e7426ec772 Bug 877261 - Remove a bunch of now-unnecessary ccx declarations from nsXPConnect. r=Ms2ber 2013-06-04 21:11:20 -07:00
Bobby Holley
19baba1983 Bug 877261 - Remove XPCCallContext from XPCCComponents. r=Ms2ger 2013-06-04 21:11:19 -07:00
Bobby Holley
ad7187ee15 Bug 877261 - Stop taking a cx in XPCWrappedJS::GetNewOrUsed. r=Ms2ger
Some of these callers seem to be passing a ccx when they don't need to, but
let's just remove the param all together for consistency.
2013-06-04 21:11:19 -07:00
Bobby Holley
41e994226a Bug 877261 - Stop using XPCCallContext for XPCConvert. r=Ms2ger 2013-06-04 21:11:19 -07:00
Bobby Holley
21f7e67df3 Bug 877261 - Stop using XPCCallContext for most stuff in XPCWrappedNative.cpp. r=Ms2ger
Starting with the above, this is the smallest unit change that will compile.
2013-06-04 21:11:18 -07:00
Bobby Holley
84df3243e8 Bug 877478 - Remove the machinery for security managers in XPCContext. r=mrbkap 2013-06-04 19:56:43 -07:00
Bobby Holley
bb1196da20 Bug 877478 - Move all consumers of GetAppropriateSecurityManager to GetDefaultSecurityManager and rm the former. r=mrbkap 2013-06-04 19:56:43 -07:00
Bobby Holley
6592cd4cc4 Bug 877478 - Remove SetSecurityManagerForJSContext and related APIs. r=mrbkap
The only consumers here were the shells, which we've now fixed.
2013-06-04 19:56:43 -07:00
Bobby Holley
213d43e430 Bug 877478 - Remove FullTrustSecMan junk. r=mrbkap
This stuff shouldn't be necessary anymore. The default security manager should
do the right thing given for script running in the scope of a BackstagePass.
2013-06-04 19:56:42 -07:00
Shu-yu Guo
0cd308ad4e Bug 878374 - Support non-Value Handles as VMFunction outparams. (r=nbp) 2013-05-31 19:16:14 -07:00
Shu-yu Guo
763d0a805d Bug 877559 - Fix passing double arguments to callVM in Ion. (r=nbp) 2013-05-29 22:36:51 -07:00
Dan Gohman
d2a696f736 Bug 875419 - Fold ImmWord values which fit in 32-bit immediate fields. r=sstangl 2013-06-04 20:52:21 -04:00
Jeff Walden
338437ecb8 Bug 879376 - Remove a bunch of obsolete files from js/src/tests. r=terrence 2013-06-04 10:46:43 -07:00
Jeff Walden
772f87aada Bug 496923 - Remove js/src/tests/update-test402.sh as update-test262.sh subsumes it. r=trivial 2013-06-04 10:46:36 -07:00
Jeff Walden
1ebf824336 Bug 496923 - Allow update-test262.sh to copy directly from a test262 working directory, when (even local) cloning would be too slow. r=terrence
--HG--
extra : rebase_source : 9d74cf9bd45425defcbfd70291545442f8f5f489
2013-06-03 15:17:42 -07:00
Terrence Cole
4e3a06d9c7 No Bug - Fix merge bustage impacting GGC builds; r=Waldo
--HG--
extra : rebase_source : 8933560f048763af305c6a530f61a97708b90d59
2013-06-04 15:44:48 -07:00
Bobby Holley
6c71d90238 Bug 879341 - Use an AutoPushJSContext in JSD. r=gabor
We can do this now, since it won't cause infinite recursion.
2013-06-04 15:37:59 -07:00
Bobby Holley
a473e25686 Bug 879341 - Use an AutoSafeJSContext in CheckForDebugMode like we should. r=gabor 2013-06-04 15:37:59 -07:00
Bobby Holley
2031113f6a Bug 879341 - Move CheckForDebugMode into the main thread event observer. r=gabor
This gets invoked at the very end of nsThread::ProcessNextEvent(). If the cx stack
is empty here, that means the event loop isn't nested - if it it was, we'd at
least have a null cx on the stack from a higher-level call to OnProcessNextEvent
for the main thread observer.

As such, this seems like a much more reasonable place to make debug mode changes.
2013-06-04 15:37:58 -07:00
Terrence Cole
ed87f7b6ab Bug 877835 - Make the nursery a permanent allocation; r=bhackett
--HG--
extra : rebase_source : 5a874d10b07abb61c093a3dc19af6d4eeb3d9497
2013-05-28 15:51:34 -07:00
Sean Stangl
5558d79d00 Bug 877912 - Fix incorrect MatchOnly start position. r=mjrosenb 2013-06-04 15:01:38 -07:00
Brian Hackett
f23fc8246e Bug 878293 - Remove Parser::init, cleanup parse maps pool, r=waldo. 2013-06-04 15:53:29 -06:00
Terrence Cole
52040880fe Bug 879112 - Allocate singleton call objects tenured; r=bhackett
--HG--
extra : rebase_source : 42ec6e999f44503a32137bca4fe0e92eedd831cc
2013-06-04 14:52:32 -07:00
Jason Orendorff
2efce2a180 Backed out changeset 5d6e363a7b4b, which hasn't got review yet. 2013-06-04 16:29:01 -05:00
Jason Orendorff
fd5c141863 Bug 872416, part 6 - Make jsobjinlines.h not include jsscriptinlines.h, eliminating the #include cycle jsscriptinlines.h -> vm/Shape-inl.h -> jsobjinlines.h -> jsscriptinlines.h. NOT REVIEWED YET. 2013-06-04 16:24:43 -05:00
Jason Orendorff
71b9aa4a74 Bug 872416, part 5b - Make objinlines.h not include vm/RegExpStatics-inl.h. r=luke. (Reviewed as "part 5".) 2013-06-04 16:24:43 -05:00
Jason Orendorff
a607f02366 Bug 872416, part 5a - Make vm/RegExpObject-inl.h and vm/RegExpStatic-inl.h not include each other, breaking an include cycle. r=luke. (Reviewed as "part 10", but changing the order of the patches made it easier to get the whole stack working in GCC.) 2013-06-04 16:24:43 -05:00
Jason Orendorff
025ec9e12f Bug 872416, part 4 - Make jsobjinlines.h not include builtin/Iterator-inl.h (since that includes jsobjinlines.h, making a cycle). r=luke. 2013-06-04 16:24:42 -05:00
Jason Orendorff
606bb7c3d3 Bug 872416, part 3 - Make frontend/BytecodeCompiler.h not include frontend/Parser.h. r=luke. 2013-06-04 16:24:42 -05:00
Jason Orendorff
6efe7b3485 Bug 872416, part 2b - Make jsanalyze.h not include jspocodeinlines.h. Factor out inlines into jsanalyzeinlines.h. r=luke. (This is only half of the patch reviewed as "part 2". The other half didn't work in GCC and is on hold.) 2013-06-04 16:24:42 -05:00
Jason Orendorff
b27c0c3072 Bug 872416, part 2a - Factor out source notes into a new header file. Make jsopcodeinlines.h not include BytecodeEmitter.h. r=luke. (Reviewed as "part 11", but doing this first made it easier to get the whole stack working in GCC.) 2013-06-04 16:24:42 -05:00
Jason Orendorff
df9f5f7056 Bug 872416, part 1 - Move js::frontend::LexicalLookup from a header into the only file that uses it. r=luke. 2013-06-04 16:24:42 -05:00
Jason Orendorff
a50604fd0f Bug 879138 - Silence GCC warnings about inline functions used but not defined. r=njn. 2013-06-04 16:24:41 -05:00
Ryan VanderMeulen
e6717fa65c Backed out 4 changesets (bug 496923) for jsreftest failures on a CLOSED TREE.
Backed out changeset 55796a799ea9 (bug 496923)
Backed out changeset 05a46b5b3fec (bug 496923)
Backed out changeset 0fde7e7ba61c (bug 496923)
Backed out changeset 8dff0aaddd1c (bug 496923)
2013-06-04 15:10:33 -04:00
Jeff Walden
5f27020fd5 Bug 496923 - Remove js/src/tests/update-test402.sh as update-test262.sh subsumes it. r=trivial
--HG--
extra : rebase_source : 18d64c90097ab0776657e67cc146cc7f25fedb8c
2013-06-04 10:46:36 -07:00
Jeff Walden
bb634b85df Bug 496923 - Import all the ch10/ tests from test262 into jstests. r=importing-script-was-reviewed
--HG--
extra : rebase_source : dea30b698346549b29d01a8506cc05fde981569e
2013-06-04 10:43:51 -07:00
Jeff Walden
363504ff37 Bug 496923 - Make the test262-importing script import tests from ch10/, and skip the tests that we don't currently pass (6 for test harness shortcomings, 2 for actual bugs). r=terrence
--HG--
extra : rebase_source : 92c4b241bb0ad55f5de7077cca5c4cf75fbecfe1
2013-06-04 10:43:42 -07:00
Jeff Walden
caccc28835 Bug 496923 - Allow update-test262.sh to copy directly from a test262 working directory, when (even local) cloning would be too slow. r=terrence
--HG--
extra : rebase_source : be0f8b238ad16e990d44167739e9b8793baca6de
2013-06-03 15:17:42 -07:00
Bobby Holley
f21d52542c Bug 877862 - Propagate exceptions from PrepareForWrapping. r=mrbkap 2013-06-04 10:30:11 -07:00
Shu-yu Guo
b4ab7bde42 Bug 878038 - Fix stack mismatch when inlining rest args in Ion. (r=djvj) 2013-06-03 14:27:19 -07:00