Commit Graph

27392 Commits

Author SHA1 Message Date
Bobby Holley
b97faac20c Bug 860085 - Remove XPCCallContext refcounting optimization. r=gabor
We only use XPCCallContext for reflector calls now, at which point an AddRef
is totally insignificant. Using an auto pointer here lets us clean up some
code, and makes the XPCCallContext destructor start to look pretty sane. :-)
2013-07-03 11:05:20 -06:00
Bobby Holley
dc6e1fc657 Bug 860085 - Remove nsIXPConnect::ReleaseJSContext. r=gabor 2013-07-03 11:05:19 -06:00
Bobby Holley
e742285dcd Bug 860085 - Stop using XPConnect::ReleaseJSContext in nsJSEnvironment::DestroyJSContext. r=gabor,mccr8
We now have the invariant that any in-use cx must be pushed onto the JSContext
stack with one of our stack-scoped automatic nsCxPusher classes. These classes
hold a strong ref to the nsIScriptContext associated with the JSContext they
push (if any). This means that, if this cx is in use, we will always have at
least one strong reference to the nsJSContext coming from the stack, meaning
that neither the destructor nor the Unlink() implementation will be called.
So we don't need to do any deferred destruction of the cx anymore.
2013-07-03 11:05:19 -06:00
Bobby Holley
bace2e0d83 Bug 860085 - Make XPCJSContextStack manipulators private to enforce that we go through the RAII classes. r=gabor
With this change, we can be very, very sure that we never push an nsJSContext
without instantiating an AutoCxPusher on the stack.
2013-07-03 11:05:19 -06:00
Bobby Holley
66ffe2da8e Bug 860085 - Remove unused AutoPopJSContext. r=gabor 2013-07-03 11:05:19 -06:00
Bobby Holley
45f6c08eae Bug 860085 - Rename xpc::{Push,Pop}JSContext and make them assert against DOM JSContexts. r=gabor 2013-07-03 11:05:18 -06:00
Bobby Holley
9da76160c2 Bug 860085 - Use an AutoPushJSContext in XPCCallContext instead of doing it manually. r=gabor 2013-07-03 11:05:18 -06:00
Jan de Mooij
c1dbc808fb Bug 889825 - Eliminate more bounds checks when double arrays are used. r=h4writer 2013-07-03 18:55:01 +02:00
Shu-yu Guo
14290ec031 Bug 888470 - Sweep parallelStringConcatStub_. (r=djvj) 2013-07-03 09:47:29 -07:00
Shu-yu Guo
7e2ca24108 Bug 888837 - Fix tagging of callee token in arguments rectifier. (r=jandem) 2013-07-03 09:47:28 -07:00
Shu-yu Guo
fcd8c3ba4b Bug 887921 - Don't toggle GC write barriers in parallel execution. (r=sstangl) 2013-07-03 09:47:28 -07:00
Shu-yu Guo
66ee89e766 Bug 886102 - Ignore idempotency for parallel ICs. (r=nmatsakis) 2013-07-03 09:47:28 -07:00
Shu-yu Guo
0f800194a1 Bug 886101 - Only int32-specialized bitwise ops should be marked safe in parallel. (r=nmatsakis) 2013-07-03 09:47:28 -07:00
Jed Davis
48f51b23ae Bug 888578 - Extend ARM masm's floatArgsInGPR workaround to memory loads. r=mjrosenb
The move resolver doesn't understand using a pair of registers, which
we have to do on ARM softfp to pass doubles in the integer registers,
if they occur early enough in the argument list.  We had a workaround
(see uses of floatArgsInGPR) for when the argument is moved from a float
register; this change extends it to handle loading from memory.
2013-07-03 09:21:50 -04:00
Jan de Mooij
c5111e8b44 Bug 886277. r=djvj 2013-07-03 14:34:11 +02:00
Jan de Mooij
59ac91250b Bug 799122 - Eagerly allocate dense elements for small arrays. r=luke 2013-07-03 13:17:29 +02:00
Hannes Verschore
03ad78f683 Bug 886255 - Let activatation of inactive JitActivation behave more closely to the construction of active JitAction, r=jandem 2013-07-03 10:41:17 +02:00
Hannes Verschore
1adb529084 Bug 886287 - OdinMonkey: Push the descriptor/argc filling the full pointer size, r=luke 2013-07-03 10:33:41 +02:00
David Anderson
a52a14df6e Rewrite CPOWs to use one actor per process (bug 853209, r=billm,bholley,smaug). 2013-07-03 00:24:32 -07:00
Bobby Holley
87f528fd90 Bug 882905 - Remove hasVersion from js::CompartmentOptions. r=luke 2013-07-02 23:30:37 -06:00
Nicholas Nethercote
78d2e1fa0a Bug 889146 (part 10) - Clean up ArrayBufferObject a bit. r=sfink.
--HG--
extra : rebase_source : dab1cfca56c7d46df5a07af02a62b197587ca629
2013-07-02 13:27:12 -07:00
Nicholas Nethercote
4b745c83c1 Bug 889146 (part 9) - Clean up DataViewObject a bit. r=sfink.
--HG--
extra : rebase_source : 9cce2029b9eceaa5e1dbff54ced913179213b262
2013-07-02 13:19:18 -07:00
Nicholas Nethercote
26ed2ef08a Bug 889146 (part 8) - Move some functions into ArrayBufferViewObject and make its SLOT members protected. r=sfink.
--HG--
extra : rebase_source : 01e19458a6499da4fa296aed0c56203d414fff44
2013-07-02 13:06:12 -07:00
Nicholas Nethercote
310fff1fa8 Bug 889146 (part 7) - Rename Int8Array as Int8ArrayObject, and likewise for othe typed array classes. r=sfink.
--HG--
extra : rebase_source : 6343032a019e86cdfae64a8319b5b189969c823f
2013-07-02 12:48:35 -07:00
Nicholas Nethercote
1252cb477b Bug 889146 (part 6) - Rename TypedArrayTemplate as TypedArrayObjectTemplate, and ThisTypeArray as ThisTypedArrayObject. r=sfink.
--HG--
extra : rebase_source : df4c83ec555e0436efb1769e64f722fc1f30a2b0
2013-07-02 12:48:35 -07:00
Nicholas Nethercote
f14bb1e3b6 Bug 889146 (part 5) - Rename TypedArray as TypedArrayObject. r=sfink.
--HG--
extra : rebase_source : 2eb626fb70a2ef510705c5d9d1fd483871158059
2013-07-02 12:48:35 -07:00
Nicholas Nethercote
d5f32d1315 Bug 889146 (part 4) - Rename DataView as DataViewObject in comments, where appropriate. r=sfink.
--HG--
extra : rebase_source : 917e1a47c6bc53f8021b03e70582a1a6745fc309
2013-07-02 12:48:35 -07:00
Nicholas Nethercote
62ab8a470c Bug 889146 (part 3) - Rename BufferView as ArrayBufferViewObject. r=sfink.
--HG--
extra : rebase_source : 5aab8be3c4a115d47c68e803044f7f99ffc23021
2013-07-02 12:48:35 -07:00
Nicholas Nethercote
cd0e0f272d Bug 889146 (part 2) - Rename ArrayBuffer as ArrayBufferObject in comments, where appropriate. r=sfink.
--HG--
extra : rebase_source : 6827010b81847ca02dd297dab526ea6850cbb446
2013-07-02 12:48:34 -07:00
Nicholas Nethercote
2c14ebeb0f Bug 889146 (part 1) - Realign the typed array class hierarchy. r=sfink.
--HG--
extra : rebase_source : f8f412226579a6bc3d572f32df455979be37af52
2013-07-01 23:15:42 -07:00
Xavier Fung
03fce7081d Bug 888158 - Make configure to detect Visual Studio 2013 compiler. r=ted 2013-07-03 10:52:32 +09:00
Dan Gohman
095096c081 Bug 876064 - Implement constant pools for double constants on x64. r=sstangl 2013-07-01 21:24:08 -07:00
Dan Gohman
d6d845fe83 Bug 876064 - Change HeapLabel with NonAssertingLabel, and don't allocate it on the heap. r=luke 2013-07-01 21:23:00 -07:00
Trevor Saunders
90fb8e6096 bug 886526 - remove XPCOM_TRANSLATE_NSGM_ENTRY_POINT r=bsmedberg 2013-06-15 02:33:35 -04:00
Nicolas B. Pierron
34c4511eb5 Bug 888568 - Range analysis, Handle int32 infinities on MAbs. r=mjrosenb 2013-07-02 17:41:27 -07:00
Trevor Saunders
5701b09aec bug 877937 - copy the work around to allow clang to build as C++11 to js/src/build/unix/headers/ r=glandium 2013-06-26 17:26:04 -04:00
Bobby Holley
d78958267e Bug 888104 - Fix xpcshell linkage error on windows. r=me CLOSED TREE 2013-07-02 16:34:33 -06:00
Joey Armstrong
b7ee853939 bug 870407: move CMMSRCS to mozbuild (file batch #3). r=mshal 2013-07-02 17:09:08 -04:00
Bobby Holley
480b6ca3f9 Bug 888104 - Reimplement Auto*JSContext in terms of AutoCxPusher. r=gabor 2013-07-02 14:39:03 -06:00
Bobby Holley
18d35b7c33 Bug 888104 - Introduce AutoCxPusher and reimplement nsCxPusher in terms of it. r=gabor 2013-07-02 14:39:03 -06:00
Bobby Holley
f849650e66 Bug 888104 - Move nsCxPusher's mScx grabbing code into the common helper method. r=gabor
This function is called by Push and PushNull, so with the added null check this
is equivalent. This facilitates the refactoring in the next patch.
2013-07-02 14:39:02 -06:00
Mike Shal
8afd7f737d Bug 880245 - Move EXTRA_JS_MODULES to moz.build (batch #4); r=joey 2013-07-01 11:34:30 -04:00
David Anderson
0100dc0e39 Remove unused run-to-completion feature in IPDL (bug 876989, r=cjones). 2013-07-02 11:22:18 -07:00
Sankha Narayan Guria
7085ddd299 Bug 788172 - Make Proxy a function. r=ejpbruel 2013-07-02 21:57:14 +05:30
Dan Gohman
45afcc26ff Bug 866137 - Implement range analysis for LoadTypedArrayElement r=jandem 2013-07-02 10:40:04 -07:00
Ian Stakenvicius
a487fb09ec Bug 886418 - Add MOZJS_{MAJOR,MINOR}_VERSION to js-config.h so that JSAPI differences can be handled at compile time. r=glandium
--HG--
extra : rebase_source : 20d442b10d3facd30d0eaaa603214038eed72baf
2013-06-24 12:40:00 +02:00
Jeff Walden
7feeacbaf3 Bug 869659 - Make the ECMAScript Internationalization API opt-out, rather than opt-in. Also opt desktop builds out of the API for now, til we get cross-compiling working. r=glandium 2013-05-10 15:30:15 -07:00
Jeff Walden
63dbd9617f Bug 888106 - Add too-much-recursion detection to isExtensible tests, and make the isExtensible hook capable of failing. r=bholley, r=ejpbruel
--HG--
extra : rebase_source : fe7345322f87dd214aa5122ea8704750e8b2375a
2013-06-28 14:01:09 -07:00
Jon Coppeard
3a523d71c0 Bug 886829 - also update comments in jsclass.h DONTBUILD 2013-07-02 12:14:30 +01:00
Terrence Cole
c9aa76bb68 Bug 878160 - GC: post barrier weak references in the browser - part 2 browser r=terrence r=billm
--HG--
extra : rebase_source : a1856a7dce28da5086f6fbeaeda15596193aa7ad
2013-06-05 16:40:02 -07:00