Commit Graph

22415 Commits

Author SHA1 Message Date
Ted Mielczarek
8196a1cdce bug 792391 - Add a TARGET_LOCAL_INCLUDES variable to be used for compiling target sources only, not host sources. r=glandium 2012-09-20 09:46:04 -04:00
Nicholas Nethercote
b7796202d5 Bug 793588 (part 2) - Exactly root jsiter.{cpp,h}. r=sfink.
--HG--
extra : rebase_source : ffdd302bbad433d6a67e7b7ff8b631600c4a3594
2012-09-23 20:53:27 -07:00
Nicholas Nethercote
751ccd5f33 Bug 793588 (part 1) - Remove vacuous JSObject* parameter to Enumerate() et al. r=sfink.
--HG--
extra : rebase_source : 04aa15327f3040b19080dd8be5c169eef56ca4ca
2012-09-20 23:42:44 -07:00
David Anderson
1797f8a7f2 Use js_free on fresh slots instead of js_delete (bug 793385, r=billm). 2012-09-24 14:41:00 -07:00
David Anderson
6d84c2ecbd Fix slot computation bug in newCallObject (bug 793257, r=luke). 2012-09-24 13:48:21 -07:00
Bobby Holley
9f03f90fb7 Bug 792036 - Automated fixups. r=mccr8
find /files/mozilla/build/d/_tests/testing/mochitest/tests/ | egrep "\.(xhtml|html|xml|js)$" | grep -v SimpleTest | grep -vi mochikit | grep -v simpleThread | grep -v test_ipc_messagemanager_blob.html | grep -v "indexedDB/test" | xargs grep -l Components |  xargs grep -L enablePrivilege | perl -pe 's#.*mochitest/tests/##' | xargs perl -p -i.bakkk -e 's/Components\.interfaces(\s|;|\.|\[)/SpecialPowers\.Ci$1/g, s/SpecialPowers\.wrap\(Components\)\.(.)(lasses|tils|nterfaces|esults)/SpecialPowers.C$1/g, s/(?<![\.a-zA-Z])Components/SpecialPowers\.Components/g, s/window\.Components/window\.SpecialPowers\.Components/g'
2012-09-24 14:46:29 +02:00
Bobby Holley
7f912ddc79 Bug 792036 - Fix up tests to avoid relying on the existence of window.Components (MANUAL). r=mccr8
These are the manual fixes that the ensuing auto-generation can't deal with. Some of them
just fix up formatting (such as Components.\nFoo, so that subsequent auto-generation can
work better).
2012-09-24 14:46:28 +02:00
Bobby Holley
2edff93f2c Bug 792036 - Fix sandbox xpcshell tests. r=gabor
I want gabor to look at these.
2012-09-24 14:46:28 +02:00
Bobby Holley
515994bfb3 Bug 792036 - Add a SpecialPowers API to provide access to the Components object in various forms. r=mrbkap,ted
Now that window.Components is no longer acccessible to page JS, we need a way
to access it in mochitests. So this patch provides SpecialPowers.Components,
which is the bonafide Components object for the window upon which SpecialPowers
is defined. It also provides SpecialPowers.{Cc,Ci,Cr,Cu}, which are SpecialPowers-wrapped
versions of their respective sub-objects (with the exception of Ci, which is unwrapped).
2012-09-24 14:46:27 +02:00
Bobby Holley
847e24f9c1 Bug 792036 - Factor out glue code to get the JS Components object for a scope. r=mrbkap 2012-09-24 14:46:27 +02:00
Bobby Holley
98ac4b534a Bug 792036 - Refactor AttachComponentsObject API to allow an explicit target. r=mrbkap
The aGlobal API is currently unnecessary, since it should always be equal to the global obtained from the scope. But we'll want to manually specify the target object in subsequent patches, so make it an optional argument that's currently never passed.
2012-09-24 14:46:27 +02:00
Bobby Holley
6fdb3137fc Bug 783702 - Call through to get() for hasPrototype() path in getElementIfPresent(). r=ejpbruel 2012-09-24 12:05:50 +02:00
Nicholas Nethercote
4055fa6ad2 Bug 793086 (part 2) - Remove jsproto.tbl. r=jwalden.
--HG--
extra : rebase_source : b72b37267e5f26f2ab1e52d90673745124c760ae
2012-09-20 23:00:08 -07:00
Nicholas Nethercote
db6466781a Bug 793086 (part 1) - Convert JSClassInitializerOp parameter to HandleObject. r=sfink.
--HG--
extra : rebase_source : e8d20aad8abc0bf85df1f05e90be1ce46e8f0125
2012-09-20 22:17:49 -07:00
Bill McCloskey
1f956a0bc4 Bug 788362 - 9,440 bytes in 107 blocks are definitely lost as detected by Valgrind with selectforgc. r=jcoppeard 2012-09-23 21:30:30 -04:00
Shu-yu Guo
8a60083c49 Bug 789812 - Change immutability behavior to match that of frozen Objects (r=jwalden) 2012-09-21 21:06:12 -07:00
David Anderson
7ed1ce6cf1 Invalidate scripts when forbidding compilation (bug 792552, r=jandem). 2012-09-21 16:41:23 -07:00
Jim Blandy
415825c0c7 Bug 790117: Move external profiler control functions to their own source file in js/src/builtin; drop VTune. r=sfink
The VTune support needed to be updated for changes to the VTune control API; that work is bug 675098.
2012-09-21 16:36:13 -07:00
Jim Blandy
04963c0cd1 Bug 791157: Make sure the shell's 'evaluate' function properly restores the JSContext options. r=jorendorff 2012-09-21 16:10:30 -07:00
Steve Fink
14ff8a418d Bug 748309 - Test structured clone handling of cyclic graphs. r=jorendorff 2012-09-21 13:10:28 -07:00
Steve Fink
92de81b7b2 Bug 748309 - Structured clone should check for duplicates of all objects. r=jorendorff 2012-09-04 14:09:48 -07:00
Steve Fink
91dd75fd04 Bug 791574 - Use a Unix-compatible list2cmdline. r=terrence.
Sadly, subprocess.list2cmdline only seems to do something sensible for Windows, which I find rather bizarre. This patch fixes the problem where -s can give you something like

  ./js -e option(\'allow_xml\'); -f ...

which is totally invalid in bash.
2012-09-18 09:58:31 -07:00
Ehsan Akhgari
5fe78337ca Merge the landing of nsresult-enum on mozilla-central 2012-09-21 14:49:57 -04:00
Chris Peterson
21cd211b2f Bug 778980 - Part 2: Fix gcc -Wconversion-null warnings in js. r=dmandelin
--HG--
extra : rebase_source : 2988b953db883b67ec119e2c4f2c3a7a6bda82a0
2012-09-14 12:00:05 -07:00
Ehsan Akhgari
66eeeb5eb7 Merge mozilla-central into mozilla-inbound 2012-09-21 13:34:50 -04:00
Nicholas Nethercote
126f5faa53 Bug 791607 - Remove unnecessary |#include <new>| directives. r=dmandelin. 2012-09-20 20:42:43 -07:00
Nicholas Nethercote
4cbf03c6a9 Bug 790424 (part 2) - Remove ParseContext::functionList and FunctionBox::{siblings,kids}. r=jimb.
--HG--
extra : rebase_source : 54dfebcaeb3b5ce3c335e9bc6e9dd6ea085cf8d2
2012-09-12 18:50:39 -07:00
Nicholas Nethercote
46b59201b8 Bug 790424 (part 1) - Set strict mode on functions in default arguments more lazily. code=benjamin,nnethercote. r=nnethercote.
--HG--
extra : rebase_source : f386bd1f17b850f421e3c914e1b31e0a25c82119
2012-09-12 18:50:37 -07:00
Marty Rosenberg
aebddeaac7 GCthings don't have a single tag, so mutate the condition to actually do a set-test. (bug 792239, r=dvander) 2012-09-20 17:47:13 -04:00
Phil Ringnalda
8eac6cec70 Back out 1e7050c52cb9 (bug 792850), 776f7325952b (bug 705047), 2e1be0680e70 (bug 733501), 6adef296963c (bug 791775), b8397781f862 (bug 792391) for WinXP hangs and suspicion of breaking Android stacks 2012-09-20 14:38:14 -07:00
Marty Rosenberg
ed71b1690e Qualcomm's snapdragon does not interpret "push sp" as a valid instruction, so don't emit it. (bug 791462, r=dvander) 2012-09-20 23:38:55 -04:00
Terrence Cole
4ae2374230 Bug 756628 - OOM failure with oom-after; r=jonco
On the following testcase: |js -e 'const libdir = "js/src/jit-test/lib/";'
-A 6266 -f js/src/jit-test/tests/pic/grandproto.js|.  Appears to be a simple
missing allocation check.
2012-09-19 15:06:51 -07:00
Ted Mielczarek
1f146a51ad bug 792391 - Add a TARGET_LOCAL_INCLUDES variable to be used for compiling target sources only, not host sources. r=glandium
--HG--
extra : rebase_source : f1a0b2f6f8051f7d274e38d458c6e426c913470b
2012-09-20 09:46:04 -04:00
Ehsan Akhgari
a615c79e81 Bug 777292 - Make sure that the Components.results values are interpreted as unsigned integers; r=bholley 2012-09-20 09:11:20 -04:00
Joel Maher
c3c481579d Bug 762908 - Rip enablePrivilege out of spidermonkey tests. r=ted
--HG--
rename : testing/mochitest/specialpowers/Makefile.in => testing/specialpowers/Makefile.in
rename : testing/mochitest/specialpowers/chrome.manifest => testing/specialpowers/chrome.manifest
rename : testing/mochitest/specialpowers/components/SpecialPowersObserver.js => testing/specialpowers/components/SpecialPowersObserver.js
rename : testing/mochitest/MockFilePicker.jsm => testing/specialpowers/content/MockFilePicker.jsm
rename : testing/mochitest/tests/SimpleTest/MozillaLogger.js => testing/specialpowers/content/MozillaLogger.js
rename : testing/mochitest/tests/SimpleTest/SpecialPowersObserverAPI.js => testing/specialpowers/content/SpecialPowersObserverAPI.js
rename : testing/mochitest/specialpowers/content/specialpowers.js => testing/specialpowers/content/specialpowers.js
rename : testing/mochitest/tests/SimpleTest/specialpowersAPI.js => testing/specialpowers/content/specialpowersAPI.js
rename : testing/mochitest/specialpowers/install.rdf => testing/specialpowers/install.rdf
rename : testing/mochitest/specialpowers/jar.mn => testing/specialpowers/jar.mn
2012-09-20 09:06:50 -04:00
Gabor Krizsanits
3f2b789a0b Bug 785096: part3: Removing ccx from codegen/qsgen. r=bholley 2012-09-20 15:04:28 +02:00
Gabor Krizsanits
8d1cf92e96 Bug 785096 - part2: Removing XPCCallContext dependency from XPCVariant; r=bholley 2012-09-20 15:03:28 +02:00
Gabor Krizsanits
7ff94f298b Bug 785096 - part1: Moving dom string cache from XPCCallContext to XPCJSRuntime. r=bz 2012-09-20 15:01:37 +02:00
Ms2ger
93d99ce749 Merge m-c to m-i. 2012-09-20 13:25:53 +02:00
Ms2ger
1e7015f897 Merge PGO-green changeset from m-i to m-c. 2012-09-20 11:51:47 +02:00
Shu-yu Guo
1efc934da5 Bug 792605 - Replace isObject check with NonNullObject; refactor reporting errors in ParallelArray ops (r=luke) 2012-09-20 02:26:55 -07:00
Shu-yu Guo
58bb1667ef Bug 791445 - Propagate errors correctly in ParallelArray debug options (r=jorendorff) 2012-09-20 02:26:53 -07:00
Gervase Markham
d29fc4925e Bug 792028 - Update version_win.pl files and RPM spec file to refer to MPL 2. r=khuey. 2012-09-20 10:19:39 +01:00
Ms2ger
10e373a3de Bug 776239 - Unpref XHR bindings; r=bz 2012-09-20 09:55:37 +02:00
Ms2ger
1cee7fe10d Bug 792474 - Don't JS_ASSERT in xpconnect; rs=bholley 2012-09-20 09:55:37 +02:00
Ms2ger
e973046355 Bug 776243 - Unpref WebGL context bindings; r=peterv 2012-09-20 09:55:36 +02:00
Ms2ger
e37e5c980c Bug 791566 - Update old new proxy bindings to BaseProxyHandler::hasInstance changes; r=terrence 2012-09-20 09:55:36 +02:00
Mike Hommey
6540907667 Bug 787184 - Use generic install/copy rule in target_libs.mk. r=ted 2012-09-20 09:52:12 +02:00
Marty Rosenberg
f86a750c05 Ensure that branches that can be toggled are not used as pool guards (bug 792510, r=dvander) 2012-09-20 02:33:14 -04:00
Bobby Holley
2177137c1f Bug 790905 - Replace no-op principal check with something real. r=luke
This would have caught this bug.
2012-09-19 11:15:24 +02:00