Commit Graph

23219 Commits

Author SHA1 Message Date
Till Schneidereit
c96c2d1ee4 Bug 784294 - Convert some array extras to self-hosted js implementations. r=Waldo
The following methods are converted:
- lastIndexOf
- indexOf
- forEach
- some
- every
- reduce
- reduceRight

--HG--
extra : rebase_source : 600a9bba7c9a3871b10936f89b2e8c6fbee6d769
2012-08-28 14:35:15 +02:00
Terrence Cole
c7695a08b7 Bug 811911 - Allow UTF-8 output from the SpiderMonkey shell; r=Norbert 2012-11-16 18:14:51 -08:00
Bobby Holley
bd8a491a86 Bug 813394 - Test both |window.location| and |location| in navigated-away-from frame. r=bz 2012-11-21 13:20:05 -08:00
Bobby Holley
c28cb10555 Bug 808608 - Fix test_bug802557. r=bz
There are a number of fixes to this important tests, so this warrants a separate
patch.

First of all, the boundTo machinery goes away, because we no longer have same-
compartment Xrays giving us the weird bound methods.

Furthermore, now that the sensitive methods are just regular old methods
off the prototype. They'll fail correctly when used on a same-scope object,
but not for cross-scope XOWs they'll just fail in the
GetWrappedNativeOfJSObject rat's nest (when they can't unwrap the security
wrapper), so we'll just get a generic XPConnect error instead of a security
exception. I want to fix this soon, so I changed the skipMessageCheck stuff
to use todo_is.

However, _that_ caused an UNEXPECTED-PASS for the DefaultValue test (which
was the only one of the array of tests that was throwing a security exception
in step 2). So I added an annotation for that in item[2].
2012-11-21 13:20:05 -08:00
Bobby Holley
8fdea45364 Bug 808608 - Remove Xray shadowing protection infrastructure. r=mrbkap
This is now unused.
2012-11-21 13:20:05 -08:00
Bobby Holley
7d7d751a1e Bug 808608 - Fix up tests to work with new behavior. r=bz,me 2012-11-21 13:20:05 -08:00
Bobby Holley
ba7fe4f990 Bug 808608 - Remove special testing for Location in test_bug505915. r=me
Removing test coverage isn't great. But the only reason this test is doing all
this funny stuff with Location is that it thinks that it's always wrapped in
an Xray wrapper and that we always do a dynamic security check, which is no
longer true. Moreover, it checks for very specific error messages, which are
kind of in flux right now as I'm fixing up GWNOJO. The calls are never going
to actually succeed (since location isn't a Node), so it's not really clear
how to fix up this test to do something uniquely useful in a readable way.
I've added enough Location test coverage recently that I'm comfortable removing
this part.
2012-11-21 13:20:05 -08:00
Bobby Holley
f56e3f9249 Bug 808608 - Remove specialized Location security wrappers. r=mrbkap 2012-11-21 13:20:05 -08:00
Bobby Holley
760ce581ed Bug 808608 - Remove unnecessary outparam. r=mrbkap 2012-11-21 13:20:05 -08:00
Bobby Holley
c8e250c45a Bug 808608 - Implement shadowing protection in nsDOMClassInfo. r=mrbkap
This allows us to remove the same-compartment Location wrappers. This can
go away when we move Location to the new bindings and get access to
[Unforgeable].
2012-11-21 13:20:05 -08:00
Bobby Holley
71708ef37a Bug 808608 - Rescue expando sharing tests. r=mrbkap
We have a very nice and robust infrastructure for per-origin expando sharing
for Xrays. Unfortunately, the only way to currently exercise it is with
Location objects, since those are the only objects with same-origin Xrays
(cross-origin Xrays don't allow expandos at all). Sandbox wantXrays would
almost work here, but we actually make an explicit exception for sandboxes
so that they never share expandos (the 'exlusive global' stuff).

I think the infrastructure is nice and that we may want it in the future, so
I don't really want to back it out. But I also don't want to leave it in the
tree untested. So I'm adding an explicit Cu API to force DOM compartments to
use same-origin Xrays. This allows us to keep testing this stuff, which I think
is important.
2012-11-21 13:20:04 -08:00
Brian Hackett
e0509378c9 Show generated assembly in Ion PC count information, bug 811349. r=pierron 2012-11-21 13:53:18 -05:00
Shu-yu Guo
105cfeb4ac Bug 791850 - Followup: fix computing caller stack formal position. (r=jorendorff) 2012-11-21 10:50:01 -08:00
Niko Matsakis
b3f6811350 Bug 801087 - Implement parallel workers threadpool in preparation for Rivertrail. r=dmandelin 2012-11-21 13:31:57 -05:00
Daniel Holbert
0db2b629d3 Bug 811057: Make DeferredFinalizeFunction take a uint32 instead of an int32 as its "slice" parameter. r=peterv 2012-11-21 10:20:32 -08:00
Ryan VanderMeulen
47710276d9 Backed out changesets 1a8b11ae0f4b, e02a02fd1208 (bug 776443), 86a3edf2960d (bug 812392), 26c59f23fd8f, and 288c74d7f87d (bug 812744) for mochitest orange.
CLOSED TREE
2012-11-21 12:47:40 -05:00
Boris Zbarsky
7a7599bc24 Bug 812392. Make sure we don't allow descendant protoss to confuse whether a proto corresponds to a DOM type. r=bhackett,peterv 2012-11-21 11:19:26 -05:00
Till Schneidereit
e829272307 Bug 791850 - Lazily clone self-hosted methods installed via js_DefineFunction. r=luke,jwalden,bhackett 2012-09-18 22:11:37 +02:00
Shu-yu Guo
9f2c624430 Bug 791850 - Add intrinsic function %_DecompileArg to self-hosting environment. r=jwalden 2012-11-19 20:17:00 +01:00
Shu-yu Guo
a39758fcb0 Bug 812906 - Part 2: No type transform for self-hosted 'this' in TI. (r=bhackett) 2012-11-20 14:55:00 +01:00
Till Schneidereit
f43a8c5bdf Bug 812906 - Statically initialize GetIntrinsicValueInfo in IM. r=nicolas.b.pierron 2012-11-18 22:00:37 +01:00
Till Schneidereit
744ae80efb Bug 791759 - Fix jit-tests default jitflags. r=dmandelin
--HG--
extra : rebase_source : c1106b9936d7deb15e03ccb322abb75f1e19b3c6
2012-11-21 02:53:27 +01:00
Ryan VanderMeulen
9c9fa33efb Merge m-c to inbound. 2012-11-20 20:28:29 -05:00
Olli Pettay
94c52fd7e6 Bug 794158, Remove over-complicated AutoWrapperChanger, r=peterv 2012-11-20 23:01:28 +02:00
Ed Morley
c294c445f8 Backout 9f8721399b14 (bug 812218) for Win PGO bustage 2012-11-20 10:57:43 +00:00
Jon Coppeard
dda307f536 Bug 813007 - Remove ExecutableAllocatorSymbian.cpp r=billm 2012-11-20 10:03:09 +00:00
Jeff Gilbert
8c13f0684f Bug 813278 - Overload JSAutoCompartment for TimeZoneSettingObserver - r=luke 2012-11-20 01:39:26 -08:00
Jason Orendorff
0f80db877d Bug 812314 part 2 - User fewer namespace js {...} blocks in .cpp files in js/src/gc. r=terrence.
--HG--
extra : rebase_source : 821757d2ac77c66ce42c3db42d9dcaa99e6ae637
2012-11-16 16:00:02 -06:00
Jason Orendorff
963f9258c3 Bug 812314 part 1 - Use fewer namespace js {...} blocks in .cpp files in js/src, js/src/builtin, js/src/vm. r=luke.
--HG--
rename : browser/components/privatebrowsing/test/browser/perwindow/browser_privatebrowsing_localStorage_before_after.js => browser/components/privatebrowsing/test/browser/global/browser_privatebrowsing_localStorage_before_after.js
rename : browser/components/privatebrowsing/test/browser/perwindow/browser_privatebrowsing_localStorage_before_after_page.html => browser/components/privatebrowsing/test/browser/global/browser_privatebrowsing_localStorage_before_after_page.html
rename : browser/components/privatebrowsing/test/browser/perwindow/browser_privatebrowsing_localStorage_before_after_page2.html => browser/components/privatebrowsing/test/browser/global/browser_privatebrowsing_localStorage_before_after_page2.html
rename : browser/components/privatebrowsing/test/browser/perwindow/browser_privatebrowsing_placestitle.js => browser/components/privatebrowsing/test/browser/global/browser_privatebrowsing_placestitle.js
rename : browser/components/privatebrowsing/test/browser/perwindow/title.sjs => browser/components/privatebrowsing/test/browser/global/title.sjs
extra : rebase_source : d1d1c39b490ae33fb9e8417ed72c2b77ee631416
2012-11-16 15:59:26 -06:00
Bill McCloskey
dcc622c54b Backout 2ee20348ae59 (bug 747066) for Win64 crashes 2012-11-20 10:45:43 -08:00
Benjamin Peterson
682af1e5b6 Bug 795104 - Sources with a custom charset can't be lazily loaded. r=bz 2012-11-20 11:30:03 -06:00
Benjamin Peterson
151faf7a36 Bug 795104 - Load source if needed in JS_DecompileScript. r=jorendorff 2012-11-20 11:29:53 -06:00
Benjamin Peterson
6194cd565d Bug 795104 - Don't abort compression, which isn't happening. r=jorendorff 2012-11-20 11:29:42 -06:00
Boris Zbarsky
f956455475 Bug 813423. A bit more inlining for stuff that should really be inline. r=peterv 2012-11-20 11:36:06 -05:00
Boris Zbarsky
4479610b88 Bug 813419. Add a non-null-checking version of xpc_UnmarkGrayObject. r=mccr8 2012-11-20 11:36:06 -05:00
Jan de Mooij
d302af1b37 Bug 772830 - Add some regalloc asserts. r=dvander 2012-11-20 14:08:59 +01:00
Nicolas B. Pierron
b4a74f1cc8 Bug 810062 - Toggle JSOPTIONs before the compartment creation. r=bhackett 2012-11-19 18:07:20 -08:00
Kannan Vijayan
948ea28912 Bug 813328 - Add initialize() method to IonCompartment. r=dvander 2012-11-19 17:43:13 -05:00
Steve Fink
dd7fbfde9d Bug 809977 - Allow output with progress bar. r=terrence
--HG--
extra : rebase_source : 6a87e7a24189769876e5638a60770dd95d48a921
2012-11-19 14:19:01 -08:00
Steve Fink
d0103da4ab Bug 809975 - --failed-only should ignore expected failures. r=terrence
--HG--
extra : rebase_source : 778596de5033dc7ff19ea074e4f660eb1f9f4fd0
2012-11-19 14:18:48 -08:00
Ehsan Akhgari
afc5d542fa Merge mozilla-central into mozilla-inbound 2012-11-19 17:07:53 -05:00
Alex Keybl
98c4160eda Merging in version bump NO BUG 2012-11-19 12:03:27 -08:00
Nicholas Nethercote
bf0e02fe87 Bug 789398 - Rework the type inference memory reporters. r=bhackett.
--HG--
extra : rebase_source : 945c35907d0d4a62b904664da7b5f2b35a182034
2012-11-18 14:40:01 -08:00
Tom Schuster
fa3189ca91 Bug 802869 - IonMonkey: Fast path for the |in| operation with int32 and dense arrays. r=jandem 2012-11-18 22:14:18 +01:00
Jim Mathies
8c2cb167a1 Bug 810810 - Add support for 'APluginsDL' to the xpcshell directory service provider and return the GRE folder when queried. r=bsmedberg, glandium 2012-11-17 14:35:16 -06:00
Ehsan Akhgari
400a738411 Backed out changeset a8832e8df0c8 (bug 811349) because of busted b2g debug builds 2012-11-17 10:59:39 -05:00
Brian Hackett
e5af081771 Show generated assembly in Ion PC count information, bug 811349. r=pierron 2012-11-17 07:08:43 -08:00
Jan de Mooij
6d6d94a637 Bug 812537 - Move GetDenseArrayShape to jsarray. r=bhackett 2012-11-17 11:54:21 +01:00
Jonathan Griffin
49b10d35d6 Backed out a94288026ea5 (Bug 811784) for turning all b2g emulator tests red 2012-11-16 18:30:22 -08:00
Jeff Walden
b771c66978 Bug 812218 - Move user-supplied CFLAGS/CXXFLAGS to the end of commandline, so that they can't interfere with the setting of defaults. r=khuey
--HG--
extra : rebase_source : e74249194de8b5060ccf429719b9b082d2e6b9c7
2012-11-14 16:59:30 -08:00