Commit Graph

23504 Commits

Author SHA1 Message Date
Brian Hackett
a84cff7a7d Add type specialized paths for instanceof to Ion, bug 814861. r=pierron 2012-11-25 11:04:21 -05:00
Brian Hackett
fd3d211964 Add symbolic range analysis for loop induction variables, bug 766592. r=mjrosenb 2012-11-23 23:23:03 -05:00
Brian Hackett
c0353ffd5e Count instruction and spill code bytes in Ion basic blocks, bug 814489. r=pierron 2012-11-23 23:18:59 -05:00
Ryan VanderMeulen
9891e3e945 Backed out changeset 68b3734f36e3 (bug 814489) for build failures. 2012-11-23 19:48:45 -05:00
Brian Hackett
ac3884fcb6 Count instruction and spill code bytes in Ion basic blocks, bug 814489. r=pierron 2012-11-23 19:13:56 -05:00
Brian Hackett
f547f24244 Ensure off thread compilations are properly canceled on new type barriers or monitored bytecodes, bug 813559. r=dvander 2012-11-23 18:26:34 -05:00
Brian Hackett
d549a634ba Remove bogus assert, bug 813029. r=dvander 2012-11-23 12:25:06 -05:00
Niko Matsakis
29bd82203a Bug 814233 - Make things build when threadsafe/nspr are not present. r=bhackett 2012-11-21 21:09:39 -05:00
Ryan VanderMeulen
93ddecf3d5 Backed out changeset 0a197ef0840c (bug 766592) for talos crashes. 2012-11-23 10:04:14 -05:00
Brian Hackett
0432d75c26 Add symbolic range analysis for loop induction variables, bug 766592. r=mjrosenb 2012-11-23 08:54:41 -05:00
Mike Hommey
8e58185635 Bug 799295 - Work around gcc 4.5 miscompilation of CanEncodeInfoInHeader by always inlining it 2012-11-23 07:44:30 +01:00
Nicolas B. Pierron
aff0934a21 Bug 810253 - Correctly dump arguments. r=dvander 2012-11-22 18:12:51 -08:00
Nicolas B. Pierron
eab785c1e8 Bug 799185 part 4 - Add tests for ReconstructPCStack. r=the-toad 2012-11-22 16:50:29 -08:00
Nicolas B. Pierron
8436f50500 Bug 799185 part 3 - Improve debug utilities within NoGCScope. r=terrence 2012-11-22 16:50:28 -08:00
Nicolas B. Pierron
0f2e186bdb Bug 799185 part 2 - Add comments to ReconstructPCStack. r=jorendorff 2012-11-22 16:50:18 -08:00
Kannan Vijayan
f526a9f66b Bug 814472 - Add jump(Register) method to Ion macro assembler. r=jandem 2012-11-22 13:13:29 -05:00
Brian Hackett
081efde748 Add --thread-count=N to shell, use at most one core for off thread compilation, disallow off thread compilation during IGC, bug 813559. r=dvander 2012-11-22 10:02:18 -05:00
Peter Van der Beken
a428926b2d Fix for bug 812333 (Replace Node quickstubs with new binding methods) - part 2: install Node's binding methods on the XPConnect proto. r=bz. 2012-11-22 12:09:41 +01:00
Peter Van der Beken
243151f563 Fix for bug 814022 (Make instanceof for new DOM bindings work across scopes). r=bz. 2012-11-19 11:59:13 +01:00
Paul Adenot
fd3313aa46 Bug 779997 - Backout e35029dcac2d to enable libsoundtouch again. 2012-11-22 11:38:28 +01:00
Boris Zbarsky
467ac3a5cf 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
Bobby Holley
d9bcd00b8c Bug 812415 - Use wrapperSubsumes rather than isChrome in XPCNativeWrapper.unwrap. r=mrbkap
The current behavior breaks same-origin Xrays in sandboxes. This makes it match
the check we do in XrayWrapper.cpp for the .wrappedJSObject property.
2012-11-21 17:55:58 -08:00
Till Schneidereit
cac6f16698 Bug 791850 - Cleanup of lazy script handling. r=bhackett
--HG--
extra : rebase_source : eb676d1a38675f0c556e2f367465a726085eefcc
2012-11-21 17:42:27 +01:00
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
Bill McCloskey
1acddfd761 Bug 815652 - Remove accidental temporary rooting object (r=bhackett) 2012-11-27 13:59:13 -08:00
Ryan VanderMeulen
d579f8cccb Backed out changesets fff6b88d59c4 and 1c53e57a11ba (no bug) for OSX 10.8 bc crashes. 2012-11-27 16:44:37 -05:00
Ehsan Akhgari
7d0b7e0454 Backed out 6 changesets (bug 814821, bug 815158, bug 814195) for test failures
Backed out changeset 0c2011091748 (bug 815158)
Backed out changeset 9d70b4460508 (bug 814195)
Backed out changeset bf8746658a72 (bug 814821)
Backed out changeset e73366b088d7 (bug 814821)
Backed out changeset 49fc6d535c41 (bug 814821)
Backed out changeset 987aea26a43a (bug 814821)
2012-11-27 16:30:39 -05:00
Ehsan Akhgari
b4de8e9c4a Backed out 2 changesets (bug 813381) for build bustage
Backed out changeset fb86e02eb420 (bug 813381)
Backed out changeset 415cbab797d5 (bug 813381)
2012-11-27 16:28:51 -05:00
Steve Fink
654b189445 Bug 813381 - Further CheckStackRoots optimization - suppress repeated checks of the same stack configuration. r=terrence
--HG--
extra : rebase_source : 7d811e399652e92bbdf5a27d7e5dd688aba7f6a6
2012-11-27 12:24:52 -08:00
Steve Fink
7efd18ffb2 Bug 813381 - Optimize CheckStackRoots. r=terrence
--HG--
extra : rebase_source : 8d2e89895237d07788bd5e65ee15af55529f72fb
2012-11-19 14:20:12 -08:00
Hannes Verschore
7ae9ed3fd6 Bug 813773: Enable IM to IM fastpath for constructing calls, r=nbp,sstangl 2012-11-27 22:03:37 +01:00
Peter Van der Beken
9ac91a75ad Fix for bug 814195 (Replace Element quickstubs with new binding methods). r=bz.
--HG--
extra : rebase_source : 349ceea8412f4133e1b9de4e2859d7663da27fa5
2012-11-22 12:09:43 +01:00
Peter Van der Beken
e27790ae3f Fix for bug 814821 (Dromaeo dom-traverse regression from bug 812333) - part 4: inline xpc_qsUnwrapObj. r=bz.
--HG--
extra : rebase_source : 8506cc86db7ebfe8832ed5696aeb45c79364af1f
2012-11-27 10:20:05 +01:00
Peter Van der Beken
7327a3dd07 Fix for bug 814821 (Dromaeo dom-traverse regression from bug 812333) - part 3: reorder castNativeFromWrapper. r=bz.
--HG--
extra : rebase_source : ad4c96a240140f56b1b451df3b57a4d5c47ee3ee
2012-11-27 10:20:05 +01:00
Bill McCloskey
5184159e98 No bug - Fix compile error in jsgc.cpp 2012-11-27 12:04:22 -08:00
Bill McCloskey
3fc39dbdc8 No bug - Fix macro warning in jsgc.cpp (rs=Waldo) 2012-11-27 12:00:26 -08: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
David Anderson
41ddfe3144 Remove yarr/TypeTraits.h (bug 812678, r=luke). 2012-11-16 16:52:18 -08:00
David Anderson
94211ed072 Ensure that frames are cleaned up if we run out of stack space. (bug 812341, r=jandem). 2012-11-16 16:49:18 -08:00
Eddy Bruel
13f72bb365 Bug 811343 - proxy parent to cx->global() by default; r=bholley 2012-11-17 00:36:02 +01:00
Kyle Huey
0797f155da Bug 811784: Account for subscripts when figuring out what object to stick properties on. r=mrbkap
--HG--
extra : rebase_source : 6da8a33c512b2e5758094f4a2108e5c342c7c28c
2012-11-16 08:54:58 -08:00
Bill McCloskey
bc41cc980a Bug 747066 - Inline xpc_UnmarkGray (r=terrence) 2012-11-19 10:59:01 -08:00
Paul Adenot
5123e13926 Bug 779997 - Disable build and linking of libsoundtouch as it is not used for now. r=glandium 2012-11-19 16:36:06 +00:00
Brian Hackett
b4fa83d9c5 Pass runtime instead of bogus compartment to MarkFromIon, bug 812235. r=dvander 2012-11-16 12:28:27 -08:00
Bill McCloskey
5f26a9fcb1 Bug 812393 - Sweep strings and scripts incrementally (r=jonco)
--HG--
extra : rebase_source : 301b3029444d378bcb90e7140b508f6f35187425
2012-11-16 11:08:32 -08:00
Brian Hackett
aa13f3b2ad Don't discard JM code after off thread Ion compilation until the Ion code can be entered, bug 785494. r=jandem 2012-11-16 10:38:28 -08:00
Ed Morley
a52e6ce1aa Backout 4bc502c08da4 (bug 811784) for xpcshell failures 2012-11-16 18:16:33 +00:00
Shu-yu Guo
34d91f71c3 Bug 808949 - Remove clearParent and clearType from {Clone,XDR}InterpretedFunction. (r=bhackett) 2012-11-16 09:24:24 -08:00
Brian Hackett
8e50ee30d1 Add profiling of basic block hit counts for IonMonkey and expose to addons, bug 811349. r=pierron 2012-11-16 09:14:06 -08:00
Kyle Huey
5cc8b7c1e2 Bug 811784: Account for subscripts when figuring out what object to stick properties on. r=mrbkap 2012-11-16 08:54:58 -08:00
Marty Rosenberg
d5052d50c3 Rather than just infinite looping, or abort compilation on would-be iloops (bug 803470, r=dvander) 2012-11-16 09:12:49 -05:00
Jan de Mooij
920299add9 Bug 812280 - Remove move32/movePtr overloads that take an Address. r=dvander 2012-11-16 12:05:55 +01:00
Kannan Vijayan
a6cbed5194 Bug 803730 - Mochitest for bug. 2012-11-15 22:57:18 -05:00
David Anderson
905b8690be Don't allow sets to readonly properties (bug 810925, r=kannan).
--HG--
extra : rebase_source : 2eac13774239d9047e7c869c4afab6eeef6f6502
2012-11-15 18:32:57 -08:00
Surith Thekkiam
930724b4ae Bug 807423 - Support use of GNU libstdc++ on Android. r=ted
* For android-ndk versions r7, r7b, r8, r8b
 * std::ifstream broken in earlier versions of ndk
 * ... used in jscntxt.cpp by ComputeIsJITBroken()
 * Default gnu_compiler_version is 4.4.3
 * If android_toolchain is not set, attempt to infer it from gnu_compiler_version.
 * Copy changes from js/src/build/autoconf/android.m4 to build/autoconf/android.m4
2012-11-06 09:41:16 -08:00
Marty Rosenberg
66fb4793b4 Add in support for running a cross-shell directly in qemu (bug 807936, r=ted) 2012-11-15 10:24:07 -05:00
Bobby Holley
88eaeac241 Bug 809674 - Fail at call time when invoking an XPCWrappedJS method with [implicit_jscontext] or [optional_argc]. r=mrbkap
I think this is the path of least resistance here.
2012-11-15 10:16:36 -08:00
Phil Ringnalda
eaf74f362b Backed out changeset 0e76d45e8c37 (bug 807936) for bustage 2012-11-15 08:03:34 -08:00
Marty Rosenberg
867fab46f4 Add in support for running a cross-shell directly in qemu (bug 807936, r=ted) 2012-11-15 10:24:07 -05:00
Brian Hackett
9a7b9a148d Allow performing code generation off thread during compilation, bug 785762. r=dvander 2012-11-15 07:00:05 -08:00
Shu-yu Guo
a81bd476ad Bug 784291 - Implement JSOP_INTRINSICNAME in IonMonkey. (r=nbp) DONTBUILD 2012-11-06 17:54:49 -08:00
Shu-yu Guo
c37b3293f1 Bug 811562 - Decorate %_CallFunction arguments with JSOP_NOTEARG. (r=luke) 2012-11-14 22:56:50 -08:00
Ed Morley
bacc1c37d8 Backout e6a99483698f (bug 784291), ec87a47d93ca (bug 811562) for turning Win debug mochitest-1 orange 2012-11-15 12:12:31 +00:00
Peter Van der Beken
4362399169 Fix for bug 811895 (Fix WN Xray special methods so they can take new DOM binding objects). r=bz.
--HG--
extra : rebase_source : 4b4ade0c3cddee9241e94f2e20216cee73a8e284
2012-09-26 16:17:51 +02:00
Benoit Jacob
bc758b2b7a Bug 807437 - Eliminate redundant Traverse/Unlink CC macros - part 2: handmade fixups - r=mccr8 2012-11-15 02:32:40 -05:00
Benoit Jacob
a1d7e0f511 Bug 807437 - Eliminate redundant Traverse/Unlink CC macros - part 1: automatic changes - r=mccr8 2012-11-15 02:32:40 -05:00
Benoit Jacob
ee1217da86 Bug 806279 - CC macros refactoring: part 3: fold the TRAVERSE_NATIVE and AMBIGUOUS cases - r=mccr8,smaug 2012-11-15 02:32:39 -05:00
Shu-yu Guo
663ba004c2 Bug 784291 - Implement JSOP_INTRINSICNAME in IonMonkey. (r=nbp) 2012-11-06 17:54:49 -08:00
Shu-yu Guo
62eac7a398 Bug 811562 - Decorate %_CallFunction arguments with JSOP_NOTEARG. (r=luke) 2012-11-14 22:56:50 -08:00
Nicolas B. Pierron
b1e169f772 Bug 799185 part 1 - Rewrite ReconstructPCStack. r=jorendorff,gkw 2012-11-14 18:04:43 -08:00
Boris Zbarsky
d23220892d Bug 811449 part 8. Get rid of nsGenericElement. r=peterv 2012-11-14 14:10:08 -08:00
Marty Rosenberg
911763cfd4 fix up a bunch of macro-assembler blemishes, and fix a jittest failure (bug 811489, r=djvj) 2012-11-14 16:38:03 -05:00
Joey Armstrong
61ce872904 bug 806558: add xpt.py as a dependency for XPIDL_LINK ing 2012-11-14 15:46:15 -05:00
Peter Van der Beken
04d165e18c Fix for bug 807075 (New DOM binding APIs for HTMLElement). r=bz.
--HG--
extra : rebase_source : 842b9397d2b050f880c44d3366bcc838e6615fd5
2012-11-11 00:30:15 +01:00
Ben Turner
3674421703 Bug 809661 - Need a speedy way to construct a thread list for SMS messages. r=sicking 2012-11-14 11:49:56 -08:00
Ehsan Akhgari
fae9f61bf2 Backed out changeset f242101b1c00 (bug 810525) because of failed tests 2012-11-14 11:38:46 -08:00
Brendan Eich
cae9130c85 Bug 810525 - unregress DecompileValueGenerator change to handle object literal reference bases. 2012-11-15 05:29:57 +11:00
Bobby Holley
f96e25a00c Bug 569506 - Tearoff tests. r=mrbkap 2012-11-14 10:15:13 -08:00
Bobby Holley
46b9d205df Bug 800915 - Remove the cx parameter and simplify various APIs. r=sfink,bz
If callers want to throw, it's now their responsibility.
2012-11-14 09:56:26 -08:00
Bobby Holley
1352e469d8 Bug 800915 - Reimplement PUNCTURE consumers in terms of isSafeToUnwrap() and remove PUNCTURE API. r=mrbkap 2012-11-14 09:56:25 -08:00
Bobby Holley
6eebf2b4d4 Bug 800915 - Add infrastructure to flag security wrappers as unsafe to unwrap. r=mrbkap 2012-11-14 09:56:25 -08:00
Bobby Holley
a36b720564 Bug 800915 - Clarify and refine the semantics of SecurityWrapper so that it is used if and only if unwrapping is unsafe. r=mrbkap
The naming scheme for Xray typedefs is the concatenation of the tuple:
({SC,}, {Security,Permissive}, Xray, {XPCWN,DOM}). This is admittedly a bit
much, but I think it's still better than explicitly doing the "typdef Foo Xray"
everywhere. Moreover, once the new DOM bindings are done, the last component
in the tuple will go away.
2012-11-14 09:56:25 -08:00
Kartikaya Gupta
807a0d0fb3 Bug 808875 - Fix unused variable warning in Assembler-arm.cpp. r=mjrosenb 2012-11-14 09:41:19 -08:00
Ed Morley
b47760337b Backout 54c4f2ff78e3 (bug 807075) for Windows compilation errors 2012-11-14 16:45:28 +00:00
Peter Van der Beken
a6c1144dae Fix for bug 807075 (New DOM binding APIs for HTMLElement). r=bz.
--HG--
extra : rebase_source : 9afce481cd0a5c8a1014c8c9b0aad7d6665aaa82
2012-11-11 00:30:15 +01:00
Brian Hackett
d40aa94c9c Eagerly generate a single copy of Ion stubs and wrappers, bug 786146. r=dvander 2012-11-14 06:46:31 -08:00
Hannes Verschore
34e57b1e05 Bug 809485: Don't stop at resumepoints in edgecase analysis, r=dvander 2012-11-14 12:02:58 +01:00
Jan de Mooij
c3b47e2cb1 Bug 809021 - Fix FastInvoke arguments length. r=dvander 2012-11-14 09:58:23 +01:00
Phil Ringnalda
79637f405f Merge m-c to m-i 2012-11-13 22:18:42 -08:00
Phil Ringnalda
0b198716f3 Back out 3da143341145 (bug 784294) and 862f9cd7eb0b (bug 791850) for breaking Jetpack 2012-11-13 22:08:22 -08:00
Vladimir Vukicevic
ab4b89c989 no bug; sync dirs; CLOSED TREE bustage fix 2012-11-13 14:55:17 -05:00
Ehsan Akhgari
ff6b8ed976 Merge mozilla-central into mozilla-inbound 2012-11-13 11:16:31 -08:00
Kyle Huey
eb284af7b6 Bug 810987: When sharing a global, don't import properties onto the global, import them onto the appropriate 'this' object. r=mrbkap
--HG--
extra : rebase_source : c3a92d4197831fa3061bf3f01b7cc610cc89e867
2012-11-13 11:13:27 -08:00
Kyle Huey
d77f59d91d Backout Bug 810987. 2012-11-13 10:27:37 -08:00
Kyle Huey
4c42acb694 Backed out changeset 62886fd1aaa4 2012-11-13 10:25:24 -08:00
Kyle Huey
f9f141bbec Bug 810987: Followup bustage fix. 2012-11-13 10:24:08 -08:00
Blake Kaplan
952e7b94b3 Bug 811100 - Use the compartment's global for our global instead of always walking our parent chain. r=luke
--HG--
extra : rebase_source : acef0f81b55542b68c821f49afddf5be8b56d90f
2012-11-13 10:38:19 -08:00
Ed Morley
b24c51981f Backout bcb591d32bd6 (bug 809674) on suspicion of breaking B2G marionette-webapi 2012-11-13 13:48:21 +00:00
Hannes Verschore
bebaed1be7 Bug 806298: Follow-up fix to unregress kraken-dft, r=jandem 2012-11-13 11:46:06 +01:00
Hannes Verschore
180623d6d4 Bug 806298: Disable recompile check for constructing JM calls, r=dvander 2012-11-13 09:45:35 +01:00
Phil Ringnalda
45529e865f Merge m-c to m-i 2012-11-12 21:08:17 -08:00
Phil Ringnalda
6659b55460 Back out 08fd9aa0d6e1 (bug 810102) for turning bug 728834 permaorange 2012-11-12 21:01:17 -08:00
Ryan VanderMeulen
2c380fb37b Backed out de9fff3a523, c567df2244f5, 8e3d976d5dc5, and c7499faaec23 (bug 800915) for bustage.
--HG--
extra : rebase_source : c823063bfa31d59d32b3402bd4b458b84b703cd5
2012-11-12 21:43:39 -05:00
Bobby Holley
24950d41c9 Bug 800915 - Remove the cx parameter and simplify various APIs. r=sfink,bz
If callers want to throw, it's now their responsibility.
2012-11-12 17:35:32 -08:00
Bobby Holley
763350c2ab Bug 800915 - Reimplement PUNCTURE consumers in terms of isSafeToUnwrap() and remove PUNCTURE API. r=mrbkap 2012-11-12 17:35:32 -08:00
Bobby Holley
6935651371 Bug 800915 - Add infrastructure to flag security wrappers as unsafe to unwrap. r=mrbkap 2012-11-12 17:35:32 -08:00
Bobby Holley
aee7a8dde8 Bug 800915 - Clarify and refine the semantics of SecurityWrapper so that it is used if and only if unwrapping is unsafe. r=mrbkap
The naming scheme for Xray typedefs is the concatenation of the tuple:
({SC,}, {Security,Permissive}, Xray, {XPCWN,DOM}). This is admittedly a bit
much, but I think it's still better than explicitly doing the "typdef Foo Xray"
everywhere. Moreover, once the new DOM bindings are done, the last component
in the tuple will go away.
2012-11-12 17:35:31 -08:00
Makoto Kato
97504c0a7c Bug 810661 - Turn off PGO of Ctypes.cpp. r=khuey 2012-11-13 10:22:05 +09:00
Kannan Vijayan
016acf4d14 Bug 803730 - Fix boxing of object input in instanceOf checks. r=sstangl,dvander 2012-11-12 19:40:18 -05:00
Bobby Holley
073a74ab6f Bug 809674 - Fail at call time when invoking an XPCWrappedJS method with [implicit_jscontext] or [optional_argc]. r=mrbkap
I think this is the path of least resistance here.
2012-11-12 16:17:24 -08:00
Bobby Holley
ab1c2296a4 Bug 810743 - First check for pending exceptions, _then_ examine the invoke result. r=mrbkap 2012-11-12 16:17:24 -08:00
Luke Wagner
da2499ccc0 Bug 810192 - don't require a default constructor for Hash{Map,Set}; only construct objects for live elements (r=terrence) 2012-11-12 15:30:39 -08:00
Bill McCloskey
e72652f68f Bug 810560 - Followup (r=luke) 2012-11-12 15:17:01 -08:00
Bill McCloskey
c9da53d854 Bug 810560 - Fix scheduledForDestruction assertion (r=luke)
--HG--
extra : rebase_source : 6c25ad6b505e818d66f1caaea907c55355f7559a
2012-11-12 14:57:53 -08:00
Bill McCloskey
51374d6014 Bug 811553 - Only count major page faults when possible (r=terrence) 2012-11-13 17:14:57 -08:00
Bill McCloskey
629c39229c Bug 811176 - Shrinking GCs should clean up everything (r=terrence) 2012-11-13 17:14:53 -08:00
Bill McCloskey
28cc760e16 Bug 811176 - Purge small exec pools on GC (r=njn) 2012-11-13 17:13:44 -08:00
Nicholas D. Matsakis
3005a9f3ca Bug 781602 - Permit multiple ion compilation modes. r=dvander
This implies the possibility of multiple ion scripts per JSScript.
* * *
Add abstractions for cases that handle all comp. modes at once.
* * *
split out separate fields for seq, par
* * *
Convert Invalidate() to assert that it is being run in sequential mode.
2012-11-13 18:58:48 -05:00
Jeff Walden
1040dd3fd1 Warning patrol: change the type of a variable to that of the value assigned to it, remove a set-but-never-used variable. No bug, r=sparky 2012-11-12 13:40:29 -08:00
Norbert Lindenberg
9319ea6c3e Bug 769872 - Add C++ core of Intl object and constructors Collator, NumberFormat, DateTimeFormat. However, disable initialization of Intl object and its constructors while functionality is incomplete. r=jwalden 2012-11-12 13:23:01 -08:00
Terrence Cole
b3c6615148 Bug 810102 - Exactly root all BaseShape; r=sfink 2012-11-08 15:35:48 -08:00
Peter Van der Beken
508194a997 Fix for bug 804950 (New DOM binding APIs for Element). r=bz.
--HG--
extra : rebase_source : a8691ead07dfa8ecca812396047627dc15474d83
2012-10-16 13:51:00 +02:00
Nicholas D. Matsakis
78f95f5c9a Bug 800064 - Fix the units of computation in the shell watchdog. r=terrence 2012-11-11 07:07:07 -05:00
Brian Smith
d79b8dcdb8 Bug 799009: Remove unneeded SSL-related security alerts, r=honzab, r=dao 2012-11-10 20:49:44 -08:00
Brian Smith
1da60348ef Bug 799007: Remove support for low/weak/null cipher suites, r=honzab, r=dao 2012-11-10 20:49:29 -08:00
Brian Smith
87d054d8e5 backout cset b36d5c933092 due to orange 2012-11-10 19:09:07 -08:00
Brian Smith
7781a26273 backout cset 30f8e29f9cd1 due to orange 2012-11-10 19:08:26 -08:00
Brian Smith
d6580050c0 Bug 799009: Remove unneeded SSL-related security alerts, r=honzab, r=dao
--HG--
extra : rebase_source : b6216bf3163f63f1eb4f16901943d9f351bca2cf
2012-11-10 18:19:55 -08:00
Brian Smith
cb19bf16cd Bug 799007: Remove support for low/weak/null cipher suites, r=honzab, r=dao
--HG--
extra : rebase_source : 822ef336a5cdeb7d6693dbe46844a26465600854
2012-11-10 18:18:14 -08:00
Brian Smith
20fdba1c78 Bug 804441: Put our NSPR and NSS header wrappers before OS_INCLUDES, r=ted
This allows inline functions in headers to call NSPR/NSS functions without
causing linking errors.

--HG--
extra : rebase_source : f89df8a53d6e8f624c84fc3b84982c4dd92d5f38
2012-10-24 14:31:54 -07:00
Matt Joras
b35928035b Bug 798033 - Removes 'using namespace' from js headers - r=billm 2012-11-10 10:46:01 -05:00
Bill McCloskey
7e36fddbbd Bug 803376 - Add a new form of TRANSPLANT GC, with assertions for leaks (r=luke)
--HG--
extra : rebase_source : 5cd365e2b3917ad3b649a39613ab9dae47d27320
2012-11-09 11:44:21 -08:00
Terrence Cole
6a34ee2abe Bug 805080 - Move more API users to CompileOptions; r=luke
There is no reason to have special methods for specific sets of CompileOptions
when the JS::Compile interface is so easy to use.  Other API methods can be
moved internal or removed entirely with this change.

--HG--
extra : rebase_source : f48fb221ebe02c0137e521ea605953532808825d
2012-11-06 17:36:47 -08:00
Peter Van der Beken
340572b953 Fix for bug 807330 (Make xpc_qsUnwrapThis/xpc_qsUnwrapArg deal with new DOM bindings). r=jst.
--HG--
extra : rebase_source : 3553f82516bfaa0764185f94e2eef616d9cd696d
2012-09-26 16:17:46 +02:00
Luke Wagner
e3722a2ce4 Bug 807845 - provide a jsfriendapi to query the caller's outermost enclosing function (r=jimb) 2012-11-09 11:39:52 -08:00
Bill McCloskey
1aa12c38e7 Backout 34791dac914c for assertion failure (bug 803376) 2012-11-09 11:39:39 -08:00
Wes Johnston
41d7374421 Bug 810398 - Update support library error message to be clearer. r=blassey 2012-11-09 11:07:40 -08:00
Bill McCloskey
c386b1080e Bug 803376 - Add a new form of TRANSPLANT GC, with assertions for leaks (r=luke) 2012-11-07 12:06:29 -08:00
Bill McCloskey
f27437f917 Bug 809295 - Do a better job handling failure in JSCompartment::wrap (r=luke) 2012-11-05 21:09:20 -08:00
Bill McCloskey
6a0626cc37 Bug 803376 - Remove old TRANSPLANT GCs (r=luke) 2012-10-18 16:48:22 -07:00
Bill McCloskey
8ea6d78be0 Bug 803376 - Add a special form of wrapper rooting (r=luke) 2012-10-03 22:44:30 -07:00
Bill McCloskey
89122b3c84 Bug 803376 - Allow wrappers to be reused (r=bholley) 2012-09-11 17:14:24 -07:00
Bill McCloskey
e3f39b6c2e Bug 803376 - Add JSObject::setCrossCompartmentSlot (r=terrence) 2012-09-14 16:58:50 -07:00
Boris Zbarsky
081200f74b Bug 807226 part 0.5. More undefs to stop Windows headers from messing with our GetClassName. r=peterv 2012-11-09 07:59:41 -08:00
Boris Zbarsky
f05491aec8 Bug 779048 part 0.5. Don't require a JSContext argument for nsJSUtils::GetStaticScriptGlobal. r=bholley 2012-11-09 07:43:57 -08:00
Eric Promislow
cf0e5821c6 Bug 809179 - Reinstate the js -w and -s command-line options. r=dvander
--HG--
extra : rebase_source : 7071d9acc638ea56bbc1532e3284d519db06a498
2012-11-08 20:53:07 -05:00
Bobby Holley
5f960dade7 Bug 807623 - Reimplement obj_toString and fun_toString traps on BaseProxyHandler. r=ejpbruel
Looks like these got lost in the Direct Proxy Handler refactor.
2012-11-08 14:05:49 -08:00
Fernando Jiménez
595063e7a9 Bug 809218 - Expose atob and btoa functions in xpcshell; r=mrbkap 2012-11-08 13:45:41 -08:00
Steve Fink
5d755edd99 Bug 803276 - Disable ArrayBufferView.prototype.move on release channels. r=dmandelin 2012-11-08 10:39:58 -08:00
Marty Rosenberg
5e84aca52e Ensure that we are using the same IonCompartment throughout the lifetime of an AFC(bug 792873, r=jandem) 2012-11-08 11:14:27 -05:00
Marty Rosenberg
eee5a68da1 Don't attempt to verify that the stack will be aligned, because it may not be. (bug 807156, r=djvj) 2012-11-08 11:14:24 -05:00
Eddy Bruel
0b47465612 Bug 793160 - Add NULL check for proto; r=ejpbruel 2012-11-08 16:51:11 +01:00
Wes Johnston
7e7639ef9e Bug 759041 - Bring in Android compatibility libraries. r=blassey 2012-11-08 07:45:29 -08:00
Bobby Holley
429f1cfe90 Bug 809547 - Tests. r=bz 2012-11-07 22:40:48 -08:00
Benjamin Peterson
eb9e9406cc Bug 809292 - Deal with all source data allocation in one function. r=njn 2012-11-08 09:24:46 -05:00
Hannes Verschore
4ecc61cba4 Bug 809472: Add truncate analysis for MMul, r=mjrosenb 2012-11-08 14:35:26 +01:00
Bill McCloskey
cf6e657fd2 Bug 808067 - Fix needsBarrier for GC (r=sstangl,jonco) 2012-11-07 10:30:30 -08:00
Benoit Jacob
4dbcec42c7 Bug 809715 - Use MFBT's IsBaseOf to simplify QS_IS_NODE - r=ehsan 2012-11-07 21:33:31 -05:00
Makoto Kato
dc86cbe96c Bug 797794 - need sync Preprocessor.py. r=bustage 2012-11-08 10:52:06 +09:00
Makoto Kato
1b9b070867 Bug 807895 - Remove BSD/OS code. r=khuey 2012-11-08 10:36:28 +09:00
Kannan Vijayan
e094b7bbbc Backing out 72078b2daa84 due to not fixing entire issue. 2012-11-07 20:13:39 -05:00
Bobby Holley
73334e2a83 Bug 805807 - Filter setters. r=mrbkap 2012-11-07 15:45:50 -08:00
Bobby Holley
4bb1e8b3f7 Bug 802557 - Mochitests. r=bz 2012-11-07 15:43:09 -08:00
Kannan Vijayan
f38d42262f Bug 803730 - Fix boxing of instanceOf inputs in ion. r=sstangl 2012-11-07 17:16:15 -05:00
Bobby Holley
0ae350d48b Bug 806751 - Pile more garbage into GetWrappedNativeOfJSObject. r=mrbkap
--HG--
extra : rebase_source : 9d290c7058dd4a1984aff94ef84376913947189e
2012-11-07 14:12:14 -08:00
Luke Wagner
103ce99cc1 Bug 809532 - rm unused CloneFunctionObject overload (r=billm)
--HG--
extra : rebase_source : 9c495cef6839782ec7bfa9d1cc214c282ddaa591
2012-11-07 13:28:52 -08:00
Luke Wagner
758f3333d4 Bug 807185 - IonMonkey: optimize the non-native test in visitCallGeneric (r=sstangl)
--HG--
extra : rebase_source : 6ed2cc423ea0794ad715b2d4d31c0a3047c3464c
2012-11-01 21:35:13 -07:00
Luke Wagner
50f9a075a0 Bug 807228 - clean up the JSFUN_* flags situation (r=jorendorff)
--HG--
extra : rebase_source : 1bb7ac4a354a9b78e5b5201b4204c4ade3067c49
2012-11-01 21:35:09 -07:00
Terrence Cole
1bb80cfab8 Bug 798638 - Exactly root TryNoteIter; r=luke
TryNoteIter is always stored on the stack and stores a JSScript* internally.
2012-10-05 16:29:57 -07:00
Terrence Cole
ab0d85ee35 Bug 807151 - Unexport |mozilla| from the |js| namespace; r=Waldo
Clang does not want to allow js::ion::Range and mozilla::Range simultaneously
when we have a |namespace js { using namespace mozilla; }| declaration.
2012-11-06 17:35:18 -08:00
Nathan Froyd
6cd8a16138 Backout a9cfcf4b62d9 (bug 803730), a5e214d4f8b0 (bug 803730), for intermittent oranges in newly added tests 2012-11-07 14:58:29 -05:00
Jim Mathies
36c0583c7c Bug 809158 - Cleanup enable-metro configure.in sections and set the proper WINVER for js in metro builds. r=bbondy 2012-11-07 13:27:00 -06:00
Jacek Szpot
513125c236 Bug 800106: Remove NS_ALWAYS_INLINE from configure.in; r=ehsan 2012-10-13 00:36:39 +02:00
Terrence Cole
db03eac92b Bug 501265 - SpiderMonkey's shell |load()| should interpret chars as UTF-8; rs=Waldo 2012-11-06 11:57:42 -08:00
Kannan Vijayan
f5b4cb0cee Bug 803730 - Fix ion to box LHS operand when performing InstanceOf on an object. (r=sstangl) 2012-11-07 13:04:01 -05:00
Kannan Vijayan
fc947af223 Bug 803730 - Add mochitest for bug. 2012-11-07 13:03:31 -05:00
Bobby Holley
5ede664aac Bug 809318 - Fix flakey tests. r=philor 2012-11-07 09:39:32 -08:00
Bobby Holley
42c232e7e3 Bug 808457 - Add Telemetry for Components.lookupMethod and Components.interfaces. r=mrbkap 2012-11-07 08:28:35 -08:00
Bobby Holley
0d4bc850b4 Bug 808611 - Move valueOf to nsIDOMLocation. r=mrbkap 2012-11-07 08:27:23 -08:00
Geoff Brown
8da8b19c60 Bug 808729 - Set _TESTING_MODULES_DIR for Android xpcshell tests; r=jmaher
--HG--
extra : rebase_source : 80896416e1262802421282573af6c2babc4cfcac
2012-11-13 16:37:53 -07:00
Gregor Wagner
326de4e3ae Backout f2c60518351d Bug 809661 2012-11-13 14:44:18 -08:00
Ben Turner
a62084789a Bug 809661 - Need a speedy way to construct a thread list for SMS messages. r=sicking 2012-11-13 13:01:26 -08:00
Till Schneidereit
2cbebc7fa3 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 : 7dd5dc4167c505c6d02823d2d8d8c7da0cf0e237
2012-08-28 14:35:15 +02:00
Till Schneidereit
88fa8c9631 Bug 791850 - Lazily clone self-hosted methods installed via js_DefineFunction. r=luke
--HG--
extra : rebase_source : e350e006484af8bc41e8bebe9a2d3842cebe91b9
2012-09-18 22:11:37 +02:00
Hannes Verschore
9c7f3be4e7 Bug 809390: Improve range analysis on bitand, r=mjrosenb 2012-11-13 18:27:54 +01:00
Kyle Huey
206106294e Bug 810987: When sharing a global, don't import properties onto the global, import them onto the appropriate 'this' object. r=mrbkap 2012-11-13 08:57:44 -08:00
Paul Adenot
061130052b Bug 779997 - Import SoundTouch Library in the tree. r=khuey,rstrong 2012-08-26 22:36:44 -07:00
Paul Adenot
63623db352 Backed out changeset 98f9d1044e54 because r= bit is missing in commit message. 2012-11-07 10:30:49 +01:00
Paul Adenot
4107bd8751 Bug 779997 - Import SoundTouch Library in the tree. r= 2012-08-26 22:36:44 -07:00
Nicholas D. Matsakis
0f88896f1a Bug 807480 - Add Rooted<T> roots to PerThread state. r=luke
Currently there are a number of global fields in JSRuntime* which are basically
tracking per-thread state.  This makes sense on the current trunk since there
is only ever a single thread associated with a runtime, but as Parallel JS (nee
Rivertrail) starts to land this assumption no longer holds.

This patch makes a struct, currently called |JS::PerThreadData|, that stores
per-thread data from the runtime.  There is one instance of this struct
embedded in "Runtime" itself (the field |mainThread|).  For now I have only
migrated the debug GC fields into |PerThread|, those are the ones causing me
immediate pain.  Eventually more fields will want to move into there.

The eventual goal is to distinguish thread-safe code, which will take as
argument a |JS::PerThread*|, from non-thread-safe code, which will take a
|JSRuntime*| or |JSContext*|.
2012-11-06 22:32:01 -05:00
Bobby Holley
9a5d674c8c Bug 808730 - Implement the 'IfFound' parent of ReparentWrapperIfFound. r=mrbkap
This is a pretty dumb bug, but we never actually hit this codepath at the moment.
We currently end up in wrapper by either explicitly calling
ReparentWrappedNativeIfFound (in nsNodeUtils and in nsHTMLDocument), or by moving
existing wrappers during orphan fixup. The former always passes a wrapper-cached
object, and the latter guarantees that we always have a wrapper. So we'd never
hit the "no wrapper cache, no wrapper" case in the current code.
2012-11-06 17:56:49 -08:00
Philip Chee
0618f2c4de Bug 808278 - Unable to Build with VS2008SP1/VC9 since Bug 740015 (Update Yarr to WebKit rev 130234). r=dmandelin 2012-11-03 17:24:51 +08:00
Masatoshi Kimura
8ecc83b13b Bug 801487 - Add a JSAPI to make a report with unicode arguments. r=Waldo 2012-11-06 18:23:14 -05:00
Andrea Marchesini
6a0fe78592 Bug 781425 - Part 1: Enconding and dictionary. r=mounir, sr=sicking 2012-11-06 18:23:13 -05:00
Norbert Lindenberg
a18342882f Bug 769872 - Use Handle<PropertyName*> instead of char* for getSelfHostedFunction argument. r=jwalden
--HG--
extra : rebase_source : 40c6de65e50ac3ac31cbe9321a73fc01de25d09b
2012-11-05 13:38:00 +01:00
Landry Breuil
73365fd34f Bug 792085. Fix js build on ppc, broken since ionmonkey merge. r=dvander
Sprinkle some #ifdef JS_IOn/JS_METHODJIT around ion includes.
Fix part of #746112, where pagesize was set to 64k on all ppcs,
while it seems it's only on ppc64.
2012-11-06 19:50:19 +01:00
Terrence Cole
187176266e Bug 805492 - Add some more exact script rooting; r=sfink
The new decompiler is hitting an AssertNoGC() from this.
2012-10-25 10:53:58 -07:00
Terrence Cole
531b585037 Bug 808834 - Fix length check when uninlining new dependent strings; rs=luke
--HG--
extra : rebase_source : 51fde514fd92a5a65b078d4b7dfffe3d9640c751
2012-11-05 16:04:52 -08:00
Terrence Cole
5b0b9b8087 Bug 808483: Fix dependent string assertion; r=luke
Undepended strings can break the assertion in JSDependentString::new_. This
generalizes the assertion to work for all cases.

--HG--
extra : rebase_source : 62b7fa786c6250054092723b92cd97bded92d6b1
2012-11-05 15:07:52 -08:00
Bobby Holley
327f8ca891 Bug 807179 - Add a constructor for JSPropertyDescriptor. r=luke 2012-11-05 17:49:44 -08:00
Nicolas B. Pierron
68d4fa0e36 Bug 807047 - Fix test case. r=oops 2012-11-05 17:28:42 -08:00
Bill McCloskey
2aae7cd63a Bug 808067 - Back out again due to possible orange (r=orange) 2012-11-05 17:22:54 -08:00
Bobby Holley
35a5c3a7c6 Bug 800864 - Add some more tests. r=bz 2012-11-05 17:15:53 -08:00
Bobby Holley
60c3e2181b Bug 793969 - Tests. r=mrbkap 2012-11-05 17:10:34 -08:00
Nicolas B. Pierron
b9bd532656 Bug 807047 - Only use missing property cache on non-idempotent IC. r=jandem 2012-11-05 16:55:08 -08:00
Terrence Cole
96af405e26 Bug 772722 - Remove superfluous usage of Atomics in SpiderMonkey; r=luke
None of the current usages of ATOMIC_INC/DEC are useful now that we do not allow
multi-threaded runtimes. This also removes a pre-mature optimization that
happened to be using the atomics. I measured it as saving strictly < 3us on old
hardware.

--HG--
extra : rebase_source : 83ff1826f4cfb59fa505ae2e7a7150c4a478598b
2012-11-05 11:52:03 -08:00
Terrence Cole
ad56444ccf Bug 808181: Do not allow implicit conversion of Return<T>; r=jorendorff
This will allow the compiler to catch more usage errors.
2012-11-05 10:53:04 -08:00
Bill McCloskey
6c4ca4af53 Bug 808067 - Add test (r=sstangl) 2012-11-05 14:52:15 -08:00
Bill McCloskey
1dccfd6b33 Bug 808067 - Fix needsBarrier (r=sstangl,jonco) 2012-11-05 14:22:35 -08:00
Ed Morley
5315a9a632 Backout f458467cc2cf & 5c5e4097dd20 (bug 808067) for make check failures 2012-11-05 22:13:33 +00:00
Bill McCloskey
3509e1737d Bug 808067 - Change the compartments we iterate over when ending GC (r=jonco) 2012-11-05 13:17:06 -08:00
Bill McCloskey
ff0cd0b135 Bug 808067 - Toggle Ion barriers when resetting incremental GC (r=sstangl) 2012-11-05 13:16:22 -08:00
Steve Fink
0da33b1c98 Bug 807829 - SkipRoot no longer needed for StackIter script
--HG--
extra : rebase_source : 006ac738d3284cfb5349ce431bd64e05c80d9863
2012-11-01 13:57:47 -07:00
Steve Fink
a5fa7fc682 Bug 807829 - Unrooted scope variable accidentally used
--HG--
extra : rebase_source : 90b046577d61c4682566fcff2d4708ae75ed26b4
2012-11-01 13:57:47 -07:00
Steve Fink
91e690f6e0 Bug 807829 - Handlify js_NativeSet and use rooted Shape* consistently
--HG--
extra : rebase_source : 50da90b308ace580a6312084d8ba38667a838b9e
2012-11-01 13:57:47 -07:00
Steve Fink
b79c0a1e9e Bug 807458 - Eliminate a SkipRoot from NewDenseCopiedArray. r=terrence
--HG--
extra : rebase_source : 57b50c345cb0a9a481efda9a8526732d5129df48
2012-11-01 13:57:47 -07:00
Boris Zbarsky
e0cb69bbd9 Bug 807548. Enumerating an Xray should not see the 'constructor' property on DOM prototypes unless we're told to include non-enumerable properties. r=peterv 2012-11-05 11:58:03 -05:00
Boris Zbarsky
bea8d78997 Bug 743171. Fix the global's enumerate hook to correctly enumerate Proxy and WeakMap. r=jorendorff 2012-11-05 11:58:03 -05:00
Jan de Mooij
b732e5bfff Bug 808519 part 2 - Rename MaybeScriptFromCalleeToken and call it in GetTopIonJSScript. r=dvander 2012-11-05 17:35:30 +01:00
Jan de Mooij
d89dbc1048 Bug 808519 part 1 - Rename IonFrame_JS to IonFrame_OptimizedJS. r=dvander 2012-11-05 17:35:10 +01:00
Hannes Verschore
4f492dd86c Bug 808294: Fix tracelogger builds, r=dvander 2012-11-05 17:27:42 +01:00
Hannes Verschore
ba50d92452 Bug #807824: Don't restore register in oolcall when it is used as a return value, r=nbp 2012-11-05 17:14:50 +01:00
Nicholas Nethercote
5810ed9556 Bug 807896 - Reduce the initial size of SPS's strings hashtable. r=acrichto.
--HG--
extra : rebase_source : 681db4bf991019e302dfa08869fa59499a33eac1
2012-11-04 14:17:53 -08:00
Ehsan Akhgari
6e3b90c43e Merge mozilla-central into mozilla-inbound 2012-11-04 11:09:45 -05:00
Ms2ger
8d44a3dde8 Bug 803520 - Don't use JSCList for JSRuntime::contextList; r=Waldo 2012-11-04 09:00:06 +01:00
Ms2ger
a0504faba0 Bug 801991 - Remove the ability to generate custom quickstubs; r=peterv 2012-11-04 09:00:06 +01:00
Axel Hecht
4d9dd144a7 bug 808289, fix l10n-base for repacks, regression from bug 797745, r=bustage, DONTBUILD 2012-11-03 17:13:56 +01:00
Bill McCloskey
d99a8a8cca Backout bug 778993 for kraken regression (r=regression) 2012-11-02 18:21:36 -07:00
Bobby Holley
8b06fa3c7e Bug 805807 - Rearchitect filtering policies so that check() doesn't throw on denial. r=mrbkap
This is another one of those annoying situaitons in XPConnect right now where we
can't ask a question without potentially throwing if the answer is no. There's
also a bunch of unused cruft in here (like the Perm*Access stuff), so this stuff
was ripe for a spring cleaning. Unfortunately, I wasn't able to divide this patch
up nicely. Sorry for the big diff. :-(

In a nutshell, this patch changes things so that Policy::check() just becomes
a predicate that says whether the access is allowed or not. There's the remote
possibility that one of the underlying JSAPI calls in a ::check() implementation
might throw, so callers to ::check() should check JS_IsExceptionPending
afterwards (this doesn't catch OOM, but we can just continue along until the
next OOM-triggering operation and throw there).

Aside from exceptional cases, callers should call Policy::deny if they want to
report the failure. Policy::deny returns success value that should be returned
to the wrapper's consumer.
2012-11-02 21:47:49 -03:00
Bobby Holley
c351c18d32 Bug 805807 - Make Components wrapper throw on denial. r=mrbkap
There's really no reason to use the wishy-washy static COW Deny() here.

Also, note that the xpcshell-test wasn't testing what it thought it
was - interfaces is accessible from content code.
2012-11-02 21:47:49 -03:00
Jason Orendorff
3556bc2bcd Change some GC tests to only check the output of findReferences in builds that actually have it. Fixing orange introduced by dc4f417ef79a (bug 805003). No bug, no_r=me, pushing to a CLOSED TREE.
--HG--
extra : rebase_source : a460dbedcfd32ed8f24a1fc9db10922fe182398f
2012-11-02 18:34:50 -05:00
Terrence Cole
1fe5192896 Backed out changeset f0d7c7806a90 2012-11-02 16:00:27 -07:00
Terrence Cole
865ea27360 Bug 808181: Do not allow implicit conversion of Return<T>; r=jorendorff
This will allow the compiler to catch more usage errors.

--HG--
extra : rebase_source : b424e2a8dfb88a340fc298cd9a11cd5779664c9d
2012-11-02 15:48:08 -07:00
Bill McCloskey
aa7be0f282 Bug 778993 - Separate runtime's gcMallocBytes from compartment's gcMallocBytes (r=gwagner,till) 2012-11-02 15:06:56 -07:00
Jason Orendorff
b648b070b1 Bug 787703. r=terrence.
--HG--
extra : rebase_source : 59c8ab53405421c3eeb87fb409d8f2af94630b5a
2012-11-02 10:12:45 -05:00
Jason Orendorff
cfeb868739 Bug 807001 - Change Map and Set size() methods to accessor properties. r=Waldo.
--HG--
extra : rebase_source : bf2809aa1d943caa6349d7b44621cd1b0bb85742
2012-11-02 10:12:36 -05:00
Bobby Holley
a4ce179e40 Bug 731471 - Crashtesty-mochitest. r=me 2012-11-04 07:41:01 -08:00
Jason Orendorff
c508d70974 Bug 805003 - Implement Map and Set clear methods. r=luke.
--HG--
extra : rebase_source : 02c641c57f556f83dbaf6fbf568f0d67e53c9982
2012-10-30 17:02:29 -05:00
Ryan VanderMeulen
d716366c32 Merge m-c to inbound. 2012-11-02 16:11:46 -04:00
Ryan VanderMeulen
7ce522bbc4 Merge fx-team to m-c. 2012-11-02 15:45:53 -04:00
Panos Astithas
ceacb0d392 Implement Debugger.removeAllDebuggees for efficient debugger shutdown (bug 740551); r=jimb,jorendorff 2012-11-02 18:30:23 +02:00
Bill McCloskey
35845d607b Bug 807535 - Avoid toggling Ion write barrier too often (r=sstangl) 2012-11-01 08:08:21 -07:00
Axel Hecht
c315945bdd bug 797745, use l10n-base and relativesrcdir instead of config.mk for l10n-merge, r=ted
--HG--
extra : rebase_source : 0d280e5cfabe7efdbe112309da6ef87d3848c441
2012-11-01 13:25:53 +01:00
Nicolas B. Pierron
72fe66e92b Bug 807035 - Skip guard insertion if there is no proto. r=dvander 2012-10-31 18:55:33 -07:00
Eric Faust
17311133e4 Check to make sure compilations haven't been invalidated (bug 799803, r=pierron). 2012-10-31 18:41:56 -07:00
David Anderson
ce5e3ac378 Respect object's extensibility in addprop ICs (bug 805747, r=djvj). 2012-10-31 16:23:53 -07:00
Sean Stangl
0945cd5537 Bug 800617 - Fix some ARM-specific uber-nits. r=mjrosenb 2012-10-31 15:41:20 -07:00
Rafael Ávila de Espíndola
111917a5c3 Bug 807112 - change MOZ_EXPORT_API and MOZ_IMPORT_API to not take the type. r=Waldo. 2012-10-31 18:18:12 -04:00
Kyle Huey
1482122303 Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon
--HG--
extra : rebase_source : 98337b6a8c07d05e8c961a452dd05a7d75c3c60b
2012-10-31 09:13:28 -07:00
Bill McCloskey
70a8d7ef1c Bug 807161 - Remove extern C and #ifdef __cplusplus from JSAPI (r=luke) 2012-10-30 18:28:34 -07:00
Jan de Mooij
e8004990a9 Bug 802809 - Assert PRESET LDefinitions are not followed by instructions with fixed uses. r=dvander 2012-10-31 16:27:00 +01:00
Jan de Mooij
04a5e0b510 Bug 801831 - Don't mark EnterJIT thunk if it's NULL. r=dvander 2012-10-31 14:04:18 +01:00