Commit Graph

31560 Commits

Author SHA1 Message Date
Jon Coppeard
cd6056507e Bug 959787 - Handlify JS_GetProperty and related APIs r=terrence r=bz 2014-01-31 09:55:20 +00:00
Jan de Mooij
4127a08528 Bug 966264 - Don't allocate new "[object Foo]" strings for the most common classes. r=njn 2014-02-01 13:13:41 +01:00
Eric Faust
1c3dbf6e77 Bug 924720 - Followup: Remove js::IsProxyClass(clasp), and use clasp->isProxy() instead. (r=jwalden) 2014-02-01 00:30:44 -08:00
Eric Faust
7e8c7c8d1e Bug 947487 - Part 2: Generate and use js::Class structs for DOM proxies. (r=bz) 2014-02-01 00:29:52 -08:00
Kyle Huey
5f91ce5f1d Bug 961286 - Use move semantics for JSAutoStructuredCloneBuffer and wrappers. r=jorendorff, r=bent 2014-01-31 21:50:07 -05:00
Brian Hackett
fecc3b6335 Bug 941805 - Unbreak non-threadsafe JS builds. 2014-01-31 19:43:40 -07:00
Brian Hackett
5e0f361bec Bug 941805 - Make the pool of JS workers be per process rather than per runtime, r=billm. 2014-01-31 18:58:16 -07:00
Shu-yu Guo
9bce431125 Bug 966181 - Rename ForkJoinSlice to ForkJoinContext. (r=pnkfelix) 2014-01-31 14:57:57 -08:00
Bobby Holley
39e9754db4 Bug 962449 - Make various getOrCreate methods static to efficiently fix hazards. r=Waldo 2014-01-31 14:51:42 -08:00
Bobby Holley
8f31f0ae6e Bug 962449 - Don't call initIteratorClasses directly, and use ensureConstructor. r=luke
This isn't strictly necessary at this point. The basic issue is that there are
a few new classes (iterator stuff, intl stuff, and typed objects) that use this
kind of constructor bootstrap scheme, and each of them will need something like
this to move to ClassSpecs. But that doesn't actually need to happen until we
convert them. I wrote this patch before I realized this, and I believe it's
correct, so I figured I'd get it landed along with everything. But I'm also ok
to skip it for now.
2014-01-31 14:51:41 -08:00
Bobby Holley
0e18a87edd Bug 962449 - Remove init functions from JSStdName, and pipe everything through ensureConstructor. r=luke 2014-01-31 14:51:41 -08:00
Bobby Holley
a59f4aa124 Bug 962449 - Stop manually invoking initialization routines in GlobalObject.h. r=luke 2014-01-31 14:51:41 -08:00
Bobby Holley
00530570c3 Bug 962449 - Don't directly invoke init functions in GlobalObject::initStandardClasses. r=luke 2014-01-31 14:51:41 -08:00
Niko Matsakis
8130680174 Bug 959334 - Invoking js_InitTypedObjectModuleObject or js_InitSIMDClass in GlobalObject::initStandardClasses causes mochitest-plain to fail. r=Waldo 2014-01-31 14:51:41 -08:00
Jeff Walden
805dd78c93 Bug 924839 - Update our embedded ICU to 52.1, plus a very few local patches. r=lots of people, see subsequent lines in this commit message for the original subcomponents (merged together for landing), and the original bug for the original patch divisions
Bug 924839 - Remove a patch already part of ICU 52.1.  See http://bugs.icu-project.org/trac/ticket/10283 but also note the relevant code was removed completely upstream.  r=glandium
* * *
Bug 924839 - Remove another patch already part of ICU 52.1.  See http://bugs.icu-project.org/trac/ticket/10290 for that.  r=gaston
* * *
Bug 924839 - Remove another patch already in ICU 52.1.  See http://bugs.icu-project.org/trac/ticket/10045 for more.  r=Norbert
* * *
Bug 924839 - Remove another patch already applied upstream.  See http://bugs.icu-project.org/trac/changeset/32937 for more.  r=gaston
* * *
Bug 924839 - Update the ICU update script to update to 52.1, *without* applying any of our local patches.  r=glandium
* * *
Bug 924839 - Make the ICU update script only do updating within intl/icu/source and nowhere else.  r=glandium
* * *
Bug 924839 - Implement the changes that would be made by |cd intl/; ./update-icu.sh http://source.icu-project.org/repos/icu/icu/tags/release-52-1/;|, run with the prior changesets' changes made (thus not applying any of our local patches).  These changes don't actually work without subsequent adjustments, but this provides a codebase upon which those adjustments can be made, for the purpose of generating local patches to be kept in intl/icu-patches/.  rs=the-usual-suspects
* * *
Bug 924839 - Update the bug 899722 local patch to make runConfigureICU not override CC/CXX on BSD systems.  r=gaston
* * *
Bug 924839 - Update the bug 724533 patch that makes ICU builds with MozillaBuild on Windows.  r=glandium
* * *
Bug 924839 - Import an upstream patch fixing the genrb tool to properly handle the -R (--omitCollationRules) option.  See http://bugs.icu-project.org/trac/ticket/10043 for the original bug report and a link to the ultimate upstream landing.  r=Norbert
* * *
Bug 924839 - Import the upstream fix for http://bugs.icu-project.org/trac/ticket/10486 so that ICU with -DU_USING_ICU_NAMESPACE=0 will compile on Windows.  r=Norbert
* * *
Bug 924839 - Adjust the update script to update ICU, then to apply all local patches (rather than skipping the second step).  Thus if the update script is properly run, now, the final result should be no changes at all to the tree.  NOT REVIEWED YET
* * *
Bug 924839 - Update jstests that depend on CLDR locale data to match CLDR 24.  r=Norbert
2013-11-12 16:23:48 -08:00
Carsten "Tomcat" Book
3ff2c54041 Backed out changeset e2c75ec7f3d4 (bug 959787) for breaking b2g builds on a CLOSED TREE 2014-01-31 12:11:23 +01:00
Jon Coppeard
4d31f15db2 Bug 965904 - Fix some rooting hazards in the browser r=terrence 2014-01-31 09:56:40 +00:00
Jon Coppeard
b65a90b42b Bug 959787 - Handlify JS_GetProperty and related APIs r=terrence r=bz 2014-01-31 09:55:20 +00:00
Jon Coppeard
b193c3fcf1 Bug 950931 - Re-enable disbaled jit tests r=terrence 2014-01-31 09:55:12 +00:00
Hannes Verschore
743a6171cd Bug 964229 - IonMonkey: Split StringPolicy and support all primitives to MToString, r=jandem,sstangl 2014-01-31 10:24:02 +01:00
Chris Peterson
cf2bfd13b3 Bug 965693 - Remove annoying "Printing XUL documents is not supported" error dialog. r=roc 2014-01-29 20:40:34 -08:00
Nathan Froyd
761374f730 Bug 946546 - copy JS strings directly into the destination compartment; r=billm 2014-01-27 17:24:35 -05:00
Wes Kocher
e835ed90e1 Backed out changeset be0c71ad1f18 (bug 948227) under suspicion of turning mochitest-1 intermittently orange to hopefully fix a CLOSED TREE 2014-01-30 17:17:01 -08:00
Wes Kocher
6a6c69fe00 Backed out changeset 6e956de758ce (bug 924839) for xperf bustage on a CLOSED TREE 2014-01-30 16:57:49 -08:00
Jonathan Watt
6e6c591ba5 Bug 960505 - Make it easier for Mozilla code to include ICU headers. r=glandium 2014-01-15 23:45:45 +00:00
Jeff Walden
dd00554d2b Bug 924839 - Update our embedded ICU to 52.1, plus a very few local patches. r=lots of people, see subsequent lines in this commit message for the original subcomponents (merged together for landing), and the original bug for the original patch divisions
Bug 924839 - Remove a patch already part of ICU 52.1.  See http://bugs.icu-project.org/trac/ticket/10283 but also note the relevant code was removed completely upstream.  r=glandium
* * *
Bug 924839 - Remove another patch already part of ICU 52.1.  See http://bugs.icu-project.org/trac/ticket/10290 for that.  r=gaston
* * *
Bug 924839 - Remove another patch already in ICU 52.1.  See http://bugs.icu-project.org/trac/ticket/10045 for more.  r=Norbert
* * *
Bug 924839 - Remove another patch already applied upstream.  See http://bugs.icu-project.org/trac/changeset/32937 for more.  r=gaston
* * *
Bug 924839 - Update the ICU update script to update to 52.1, *without* applying any of our local patches.  r=glandium
* * *
Bug 924839 - Make the ICU update script only do updating within intl/icu/source and nowhere else.  r=glandium
* * *
Bug 924839 - Implement the changes that would be made by |cd intl/; ./update-icu.sh http://source.icu-project.org/repos/icu/icu/tags/release-52-1/;|, run with the prior changesets' changes made (thus not applying any of our local patches).  These changes don't actually work without subsequent adjustments, but this provides a codebase upon which those adjustments can be made, for the purpose of generating local patches to be kept in intl/icu-patches/.  rs=the-usual-suspects
* * *
Bug 924839 - Update the bug 899722 local patch to make runConfigureICU not override CC/CXX on BSD systems.  r=gaston
* * *
Bug 924839 - Update the bug 724533 patch that makes ICU builds with MozillaBuild on Windows.  r=glandium
* * *
Bug 924839 - Import an upstream patch fixing the genrb tool to properly handle the -R (--omitCollationRules) option.  See http://bugs.icu-project.org/trac/ticket/10043 for the original bug report and a link to the ultimate upstream landing.  r=Norbert
* * *
Bug 924839 - Import the upstream fix for http://bugs.icu-project.org/trac/ticket/10486 so that ICU with -DU_USING_ICU_NAMESPACE=0 will compile on Windows.  r=Norbert
* * *
Bug 924839 - Adjust the update script to update ICU, then to apply all local patches (rather than skipping the second step).  Thus if the update script is properly run, now, the final result should be no changes at all to the tree.  NOT REVIEWED YET
* * *
Bug 924839 - Update jstests that depend on CLDR locale data to match CLDR 24.  r=Norbert

--HG--
extra : rebase_source : e993b6e4a507f92d1b1a24949185d00d1f6201f2
2013-11-12 16:23:48 -08:00
Jeff Walden
89d5f2ae13 Bug 948227 - Make the Object.prototype.__proto__ setter strongly warn against its use, for perf reasons (and suggest Object.create instead). r=efaust
--HG--
extra : rebase_source : ef0159fc67ddaab4c46ccfc5a918a37a26d19f87
2014-01-23 14:35:08 -08:00
Jeff Walden
b2a2482904 Bug 948583 - Make __proto__ in object literals use JSObject::setProto, rather than depending on Object.prototype.__proto__. r=jorendorff, r=bholley, r=efaust
--HG--
extra : rebase_source : acd757234ac2838b8c1c9bec971b210499361019
2013-12-18 20:14:17 -05:00
Terrence Cole
c864d39b0f Bug 963840 - Move MallocProvider out and add a comment about allocation in SpiderMonkey; r=jorendorff 2014-01-24 13:22:31 -08:00
Eric Faust
3d2ff44197 Bug 924720 - Followup: Add better comments to window convert stub change.(r=bholley over IRC)
DONTBUILD because comment-only.
2014-01-30 12:36:37 -08:00
Andrew McCreight
a692fa79af Bug 963192, part 4 - Smart pointerize nsXPConnect::mDefaultSecurityManager. r=bholley 2014-01-30 11:20:42 -08:00
Andrew McCreight
1b17cf647c Bug 963192, part 3 - Smart pointerize XPCContext::mException. r=bholley 2014-01-30 11:20:42 -08:00
Andrew McCreight
7e5a396274 Bug 963192, part 2 - Smart pointerize IID2ThisTranslatorMap. r=bholley 2014-01-30 11:20:42 -08:00
Andrew McCreight
35b27a81d3 Bug 963192, part 1 - Smart pointerize XPCWrappedJSClass::mInfo. r=bholley 2014-01-30 11:20:41 -08:00
Dan Minor
ed37ea272c Bug 959164 - Jit-test basic\bug710947.js fails on Windows 8 test machines; r=terrence 2014-01-30 08:53:59 -05:00
Bobby Holley
0822380331 Bug 872273 - Remove manual rooting from js_ReportUncaughtException. r=Waldo
This stuff is exactly rooted now, so this is all unnecessary.
2014-01-30 09:30:29 -08:00
Bobby Holley
492be7eb8d Bug 872273 - Don't ToString the exn if we already got a report out of it. r=Waldo
Note that we have to update a test that was previously expecting to hit the
bail-out case at the bottom of js_ReportUncaughtException.
2014-01-30 09:30:29 -08:00
Bobby Holley
1ee98a41c8 Bug 872273 - Generate a JSErrorReport when we need one. r=Waldo
This lets js_ReportUncaughtException get the report directly from the underlying
Error object, rather than trying to duck-type it (which fails for security
wrappers).
2014-01-30 09:30:29 -08:00
Bobby Holley
23bfb75afe Bug 872273 - Remove non-cx variant of ErrorFromException, and make it take a HandleObject. r=Waldo
We're going to need to start doing more work in js_ErrorFromException, which
will require a |cx| and may GC.
2014-01-30 09:30:29 -08:00
Felix S. Klock II
b0b4e8b546 Bug 961821: tests for jit-support for writes into TypedObject arrays (r=pnkfelix).
These iteration counts were selected to be close to the minimum number
necessary to expose bugs while working on this patch (see comments in
Bug 961821 for more details here).  Note that they are all 500
iterations (not 5000); please be wary of reducing the iteration count
further without first ensuring that the jit has time to compile this
code.
2014-01-30 17:47:14 +01:00
Felix S. Klock II
fdeac6a450 Bug 961821: jit-support for writes into TypedObject arrays.
As part of above, alpha-renamed IonBuilder::setElemTryTyped to
IonBuilder::setElemTryTypedArray to keep clear the current distinction
between TypedObject and TypedArray.

Drive-by fix: Reference to Bug 894105 in comment had off-by-one typo.
Bug 961821: jit-support for writes into TypedObject arrays (r=nmatsakis).

As part of above, alpha-renamed IonBuilder::setElemTryTyped to
IonBuilder::setElemTryTypedArray to keep clear the current distinction
between TypedObject and TypedArray.

Drive-by fix: Reference to Bug 894105 in comment had off-by-one typo.
2014-01-28 04:33:00 +01:00
Douglas Crosher
bd4e369ac9 Bug 965247 - ARM simulator: Support an environment variable and shell argument to enabling icache checks. r=jandem 2014-01-30 01:30:56 +11:00
Bobby Holley
c65c23ddf9 Bug 959012 - Clean up and separate the semantics of js_{Get,Find}Class{Prototype,Object}. r=jorendorff 2014-01-30 07:45:16 -08:00
Bobby Holley
ed1c3f92c1 Bug 959012 - Create separate js_GetClassPrototype and js_FindClassPrototype to mimic js_{Get,Find}ClassObject. r=jorendorff
The current behavior is crazy, and most definitely not Xray-safe.
2014-01-30 07:45:16 -08:00
Bobby Holley
9bdb964f42 Bug 959012 - Move js_GetClassObject creation logic into GlobalObject. r=jorendorff 2014-01-30 07:45:16 -08:00
Bobby Holley
d3fddee6a0 Bug 959012 - Remove unused cx parameter from JS_IdentifyClassPrototype. r=jorendorff 2014-01-30 07:45:16 -08:00
Bobby Holley
3d866047a2 Bug 959012 - When resolving iterator classes, use JSProto_Iterator instead of JSProto_GeneratorFunction. r=luke
The former triggers all of the appropriate initialization, whereas the latter
is 'imaginary' in jsprototypes.h, which means that the is no initialization
function associated with it.
2014-01-30 07:45:15 -08:00
Hannes Verschore
edc7a2d8e0 Bug 958158 - IonMonkey: Optimize do {} while(false), r=djvj 2014-01-30 14:59:24 +01:00
Andrea Marchesini
86ea0191fb Bug 964293 - Implement Cu.cloneInto() method, r=bholley 2014-01-30 04:45:48 -08:00
Andy Wingo
81cfb7c18c Bug 965243 - Remove dead constructor of ScopeIter r=jorendorff
--HG--
extra : amend_source : e11741d6b1e4baeaa08df1e041df303055d68634
2014-01-30 11:07:57 +01:00