Commit Graph

32400 Commits

Author SHA1 Message Date
Birunthan Mohanathas
e4ab0995d4 Bug 845478 - Part 3: Use JS::CallArgs instead of argc in js/src/. r=evilpie 2014-03-24 08:49:11 -04:00
Birunthan Mohanathas
489454f8a3 Bug 845478 - Part 2: Use JS::CallArgs instead of JS_{ARGV,SET_RVAL,...} in js/src/. r=evilpie 2014-03-24 08:48:52 -04:00
Birunthan Mohanathas
2c771b4b2f Bug 845478 - Part 1: Use JS::CallArgs instead of JS_{ARGV,SET_RVAL,...} in js/src/shell/. r=evilpie 2014-03-24 08:48:37 -04:00
Bobby Holley
a9c7ecee69 Bug 986542 - Don't categorically disable script for detached docshells. r=bz 2014-03-23 12:54:18 -03:00
Phil Ringnalda
bd5dc6100a Merge m-c to m-i 2014-03-23 08:43:23 -07:00
Bobby Holley
65bdef473a Bug 975042 - Tests. r=peterv
We try to make this test machinery reusable for future Xrayable JS objects.
2014-03-23 11:02:14 -03:00
Bobby Holley
c3ea2d36c4 Bug 975042 - Update expando sharing tests to test the Xray-to-JS case. r=peterv 2014-03-23 11:02:14 -03:00
Bobby Holley
a36edc6394 Bug 975042 - Enable JS Xray for the Date object. r=peterv 2014-03-23 11:02:14 -03:00
Bobby Holley
f5d3232143 Bug 975042 - Implement resolveOwnProperty and enumerateNames trap. r=peterv 2014-03-23 11:02:13 -03:00
Bobby Holley
eb7d9c3465 Bug 975042 - Make enumerateNames trap virtual. r=peterv 2014-03-23 11:02:13 -03:00
Bobby Holley
437a94dcfd Bug 975042 - Implement getPrototypeOf. r=peterv 2014-03-23 11:02:13 -03:00
Bobby Holley
27bc1e0d24 Bug 975042 - Implement createHolder. r=peterv 2014-03-23 11:02:13 -03:00
Bobby Holley
8a57cf0534 Bug 975042 - Implement the easy trait hooks. r=peterv 2014-03-23 11:02:13 -03:00
Bobby Holley
21fc488f1f Bug 975042 - Basic Xray infrastructure and boilerplate. r=peterv
All of this machinery asserts if it actually get used. But it won't be used at
present, because we have an empty whitelist of JSProtoKeys.
2014-03-23 11:02:12 -03:00
Bobby Holley
0a3a4dab47 Bug 975042 - Remove the special COW support for Date. r=peterv
As soon as Date is on Xrays, this stuff won't work anyway. Henceforth, content
access to chrome Date objects is forbidden, and APIs should use something like
|new contentWindow.Date()| for any Date object they wish to expose to content.
2014-03-23 11:02:12 -03:00
Phil Ringnalda
4220e17e44 Merge m-c to f-t 2014-03-22 17:48:30 -07:00
Shu-yu Guo
f2bdb81af6 Bug 986717 - Fix typo in SnapshotIterator::allocationReadable. 2014-03-21 22:38:39 -07:00
Bobby Holley
483948e0a1 Bug 986304 - Augment JSAPI to give callers the option to not define named functions on the scope object. r=terrence 2014-03-21 23:31:02 -03:00
Jeff Walden
6a807105c1 Bug 980962 - Fix the AsmJSArrayBuffer function when called using |new|. r=terrence over IRC
--HG--
extra : rebase_source : 6050d0283041fb5fbb549780abece586d1e9f918
2014-03-21 15:28:46 -07:00
Jeff Walden
d3340fc45f Bug 985687 - Remove vestigial tinyid/shortid references, as well as the field in JSPropertySpec. Followup to bug 975069. r=luke
--HG--
extra : rebase_source : 9e4bd270925efb155dacb91470b617f169526824
2014-03-20 23:24:21 -07:00
Jeff Walden
f664b8ae51 Remove an unused variable in the shell. No bug, r=themaid
--HG--
extra : rebase_source : 2793c32ddb79901439d93f19136a906c96e3371a
2014-03-20 15:09:05 -07:00
Terrence Cole
226d4a6189 Bug 985562 - Do not allocate large call objects in the nursery; r=jandem 2014-03-20 14:38:51 -07:00
Boris Zbarsky
f8115c0dde Bug 983300 part 4. Convert exceptions in static methods returning promises into rejected promises. r=khuey,efaust 2014-03-21 12:18:24 -04:00
Boris Zbarsky
51d9175a36 Bug 983300 part 3. Convert exceptions in specialized methods returning promises into rejected promises. r=khuey, efaust 2014-03-21 12:18:24 -04:00
Jan de Mooij
36526a5b38 Bug 983709 part 2 - Fix MBinaryInstruction to not override congruentTo. r=h4writer 2014-03-21 15:53:00 +01:00
Jan de Mooij
f30ab3701b Bug 983709 part 1 - Don't mark shift instructions as commutative. r=h4writer 2014-03-21 15:48:27 +01:00
Lars T Hansen
2f31b53f76 Bug 983675 - Intrinsify and inline TypeDescrIsArrayType, TypeDescrIsUnsizedArrayType, TypeDescrIsSizedArrayType, TypeDescrIsSimpleType, ObjectIsTypedObject. r=shu 2014-03-21 09:18:09 -04:00
Dave Townsend
363d510707 Bug 986107: Make new sandboxes inherit the metadata of the creating sandbox by default. r=bholley 2014-03-21 19:57:42 -07:00
Lars T Hansen
98b3628c4b Bug 983577 - Improvements to parallel and sequential map for TypedObject. r=shu 2014-03-21 09:05:37 -04:00
Carsten "Tomcat" Book
9468864ecc Backed out changeset f787c0fa465e (bug 975042) for B2G ICS Emulator M7 Orange on a CLOSED TREE 2014-03-21 08:48:40 +01:00
Carsten "Tomcat" Book
bb48a49dd4 Backed out changeset 351371062c26 (bug 975042) 2014-03-21 08:47:48 +01:00
Carsten "Tomcat" Book
78052541e1 Backed out changeset 449ade4078c0 (bug 975042) 2014-03-21 08:47:47 +01:00
Carsten "Tomcat" Book
97ef36ac53 Backed out changeset 59a38e0e27bb (bug 975042) 2014-03-21 08:47:45 +01:00
Carsten "Tomcat" Book
7a8da8c316 Backed out changeset 8ac7fa583164 (bug 975042) 2014-03-21 08:47:44 +01:00
Carsten "Tomcat" Book
4b438d3d7a Backed out changeset 6c25a4bfd449 (bug 975042) 2014-03-21 08:47:43 +01:00
Carsten "Tomcat" Book
be38538d25 Backed out changeset f7d97dc26289 (bug 975042) 2014-03-21 08:47:42 +01:00
Carsten "Tomcat" Book
f8212b78d2 Backed out changeset 1b62c8f1c211 (bug 975042) 2014-03-21 08:47:41 +01:00
Carsten "Tomcat" Book
d8d768555c Backed out changeset 16da792be5f8 (bug 975042) 2014-03-21 08:47:40 +01:00
Carsten "Tomcat" Book
dbdb175c96 Backed out changeset 767ce92ebaf1 (bug 975042) 2014-03-21 08:47:36 +01:00
Boris Zbarsky
b138bfaeec Bug 980962. Fix in-tree consumers to not construct typed arrays without "new". r=jorendorff 2014-03-20 23:19:42 -04:00
Bobby Holley
35f8f8d688 Bug 975042 - Tests. r=peterv
We try to make this test machinery reusable for future Xrayable JS objects.
2014-03-20 23:47:25 -03:00
Bobby Holley
fb059d76d6 Bug 975042 - Update expando sharing tests to test the Xray-to-JS case. r=peterv 2014-03-20 23:47:25 -03:00
Bobby Holley
b28a8e3b81 Bug 975042 - Enable JS Xray for the Date object. r=peterv 2014-03-20 23:47:24 -03:00
Bobby Holley
ce9c4ef5c4 Bug 975042 - Implement resolveOwnProperty and enumerateNames trap. r=peterv 2014-03-20 23:47:24 -03:00
Bobby Holley
b65a5d12b4 Bug 975042 - Make enumerateNames trap virtual. r=peterv 2014-03-20 23:47:24 -03:00
Bobby Holley
3ef7622033 Bug 975042 - Implement getPrototypeOf. r=peterv 2014-03-20 23:47:24 -03:00
Bobby Holley
6f32cdd540 Bug 975042 - Implement createHolder. r=peterv 2014-03-20 23:47:24 -03:00
Bobby Holley
867afa81f6 Bug 975042 - Implement the easy trait hooks. r=peterv 2014-03-20 23:47:23 -03:00
Bobby Holley
2b514f18c9 Bug 975042 - Basic Xray infrastructure and boilerplate. r=peterv
All of this machinery asserts if it actually get used. But it won't be used at
present, because we have an empty whitelist of JSProtoKeys.
2014-03-20 23:47:23 -03:00
Bobby Holley
ba01d93b50 Bug 975042 - Remove the special COW support for Date. r=peterv
As soon as Date is on Xrays, this stuff won't work anyway. Henceforth, content
access to chrome Date objects is forbidden, and APIs should use something like
|new contentWindow.Date()| for any Date object they wish to expose to content.
2014-03-20 23:47:23 -03:00
Gabor Krizsanits
b368adf53a Bug 985472 - cloneInto for sandbox. r=bholley 2014-03-25 16:21:56 +01:00
Gabor Krizsanits
6949913c28 Bug 985472 - Name fixup in ExportFunction. r=bholley 2014-03-25 16:21:51 +01:00
Nicholas D. Matsakis
8ead34644b Bug 975446 -- Load the KIND from the descriptor, not the typed object, in toSource() r=sfink 2014-03-18 15:32:06 -04:00
Nicholas D. Matsakis
34cda3e53e Bug 981650 -- Check the variable-size flag on the type descriptor, not the type representation r=sfink 2014-03-18 08:19:04 -04:00
Terrence Cole
61b57a399b Bug 619558 - Enable generational GC on desktop; sr=naveed 2014-02-05 10:04:16 -08:00
Nathan Froyd
bfa7382195 Bug 948445 - use different caching schemes for ProtoAndIfaceArray depending on the global kind; r=bz 2013-12-10 16:04:55 -05:00
Ed Morley
9e758c90e9 Backed out changeset 738a4b230194 (bug 988326) for assertions 2014-03-26 18:11:11 +00:00
Luke Wagner
7dfc57b7b5 Bug 974700 - cached asm.js doesn't cache profiled function info (r=bbouvier) 2014-03-25 12:55:13 -04:00
Terrence Cole
dc6410d514 Bug 988326 - Start GC arenas in the decommitted state; r=jonco 2014-03-26 13:12:45 -04:00
Kannan Vijayan
de35048eca Bug 987442 - Correctly clear compile-time tracking frame for SPS when emitting OOL code. r=sstangl 2014-03-26 13:06:04 -04:00
Sankha Narayan Guria
b8b45d5fb2 Bug 885788 - Implement Object.setPrototypeOf; r=jorendorff 2014-01-25 20:13:07 +05:30
Jeff Walden
e6d7a3c3dd Bug 987087 - Fix ggc-only typos. r=i-am-so-smrt
--HG--
extra : rebase_source : 8a382a4f4baed3c4b39f2e5ce8ba97dd9f7e722d
2014-03-26 12:22:03 -04:00
Jeff Walden
d8e15aa0e5 Bug 987807 - Split a NewSingletonCallObject out of NewCallObject. This produces slightly leaner code and creates all call objects with the correct type initial type from birth. r=terrence
--HG--
extra : rebase_source : 6b27082de6e5c05e0bf672d56a8701a39c8c7090
2014-01-15 17:55:39 -05:00
Jeff Walden
9d69004099 Bug 987243 - Don't use .call(...) in self-hosted code. r=till
--HG--
extra : rebase_source : 05c8d1126fc15279ed43522fd91fb277c0f80c6a
2014-03-25 10:27:35 -04:00
Bobby Holley
311ff27b73 Bug 958326 - Remove same-compartment security wrapper machinery. r=mrbkap 2014-03-26 10:59:20 -03:00
Bobby Holley
c7ea45b3a7 Bug 979481 - Add a helpful assertion indicating that the caller probably needs a JSAutoCompartment. r=luke 2014-03-26 10:59:03 -03:00
Bobby Holley
655ad8ddf4 Bug 979481 - Make the SafeJSContext default to a null compartment, and have AutoSafeJSContext enter the compartment instead. r=bz 2014-03-26 10:59:03 -03:00
Bobby Holley
fd6d0d6aab Bug 979481 - Prepare the cx stack machinery for a world where a cx has no default compartment object. r=bz 2014-03-26 10:59:02 -03:00
Bobby Holley
d9cab97202 Bug 979481 - Separate the lifetime of the SafeJSContext global from that of the SafeJSContext itself. r=bz 2014-03-26 10:59:02 -03:00
Carsten "Tomcat" Book
d8e38b0239 Backed out changeset 6a72a2510405 (bug 969436) for bustage 2014-03-26 09:35:04 +01:00
Ben Hackett
57bc490fc5 Bug 969436 - Changed the SafepointReader constructor to properly read safepoints, depending on the size of PackedRegisterMask; r=Nicolas B. Pierron 2014-03-24 18:09:00 +01:00
Phil Ringnalda
47d8f404e5 Back out 033a5dd2e159 (bug 985312) for build bustage
CLOSED TREE

--HG--
rename : js/src/builtin/ParallelUtilities.js => js/src/builtin/Parallel.js
2014-03-25 23:24:33 -07:00
Shu-yu Guo
cc1e31f40c Bug 987134 - Pare down the parallel/ic-setelement jit-test. (r=jandem) 2014-03-25 22:59:27 -07:00
Shu-yu Guo
8a3eda6b25 Bug 985312 - PJS: Remove the bounds function from ForkJoin. (r=nmatsakis)
--HG--
rename : js/src/builtin/Parallel.js => js/src/builtin/ParallelUtilities.js
2014-03-25 22:59:26 -07:00
Christian Holler
3246b34401 Bug 964803 - Cleanup the JS OOM testing code. r=jandem 2014-03-26 00:31:54 +01:00
Mike Hommey
8aba9ab7cf Bug 985836 - Move -Fd flags from configure to config.mk. r=mshal 2014-03-26 08:12:26 +09:00
Mike Hommey
5d1d8f0510 Bug 985835 - Move MOZ_DEBUG_FLAGS declaration for MSVC next to the one for GCC. r=mshal 2014-03-26 08:12:12 +09:00
Mike Hommey
105b36f5bd Bug 985833 - Don't quote CC/CXX when checking MSVC version in configure. r=mshal 2014-03-26 08:11:53 +09:00
Jeff Walden
c1673141f3 Back out bug 985687, likely cause of js1_8_5/extensions/recursion.js cantankering. r=CLOSED TREE 2014-03-20 16:39:30 -07:00
Julian Seward
ced006287f Bug 970643 - Valgrind does not understand OdinMonkey's guard page mechanism. r=luke. 2014-03-20 23:23:48 +01:00
Shu-yu Guo
7f53fca941 Bug 986139 - Purge caches when preserving PJS JIT code. (r=terrence) 2014-03-20 15:07:57 -07:00
Terrence Cole
17f04792e3 Bug 986147 - Loosen assertions to allow IsAboutToBeFinalized to be used during MinorGC; r=sfink 2014-03-20 14:38:43 -07:00
Jeff Walden
3d1397e2b2 Bug 985687 - Remove vestigial tinyid/shortid references, as well as the field in JSPropertySpec. Followup to bug 975069. r=luke
--HG--
extra : rebase_source : 4a9d1d783e658648c4ff210760b38f8353631458
2014-03-11 12:03:56 -07:00
Jeff Walden
c184c8d997 Bug 985695 - Rename JSContext::getLazyType to getSingletonType, because that's the only sense in which it's used. r=terrence
--HG--
extra : rebase_source : db9807b0c311c334ae38409f0dfee259f968b8d3
2014-02-07 16:50:28 -08:00
Dan Gohman
04e776a22b Bug 981894 - IonMonkey: Merge the code in MPhi::foldsTo with MPhi::operandIfRedundant. r=nbp 2014-03-20 08:58:27 -07:00
Dan Gohman
f04a80d62a Bug 981894 - IonMonkey: Misc cleanups r=nbp 2014-03-20 08:58:24 -07:00
Terrence Cole
99ff6a733e Bug 957723 - Followup fix for decommitted nursery reporting; r=njn 2014-03-19 14:43:44 -07:00
Bob Owen
3fbc188f5e Bug 978042 - Part 1: AutoPushJSContext in nsEventListenerManager::CompileEventHandlerInternal. r=bholley 2014-03-19 11:08:13 +00:00
Daniel Holbert
7bfc198364 Bug 985858: Use format string "%s" to fix build warning in Snapshots.cpp. r=nbp 2014-03-20 21:47:39 +08:00
Jan de Mooij
19ae495674 Bug 985526 part 2 - Use notifyOne instead of notifyAll in StartOffThreadParseScript and StartOffThreadCompression. r=bhackett 2014-03-20 12:05:46 +01:00
Jon Coppeard
3f63293ac4 Bug 981462 - Save and restore live array buffer lists over minor GC r=terrence 2014-03-20 09:32:37 +00:00
Jon Coppeard
48ecc0a1b8 Bug 959787 - Handlify some more GCing APIs r=sfink 2014-03-20 09:32:37 +00:00
Hannes Verschore
c7eba80bca Bug 978077 - IonMonkey: Set returntype of MMinMax to double if one of its arguments is, r=jandem 2014-03-20 09:16:38 +01:00
Steve Fink
065ee6341b Bug 985143 - Comment updates to new ArrayBuffer storage scheme
--HG--
extra : rebase_source : 22cee061dc536d327ae10171578bf60b5ccc1469
2014-03-19 10:47:47 -07:00
Jeff Walden
579d970984 Bug 982974 - Last bit of trunk fixup. r=sfink, r=nmatsakis
--HG--
extra : rebase_source : 8d4800943708f39dcd04d499224cd76ac9194ec7
2014-03-17 16:39:59 -07:00
Shu-yu Guo
bbdbff44c6 Bug 985182 - Only assert that we aren't operating in the self-hosted global for cross- (not same-) compartment wrappers. (r=bhackett) 2014-03-19 15:00:57 -07:00
Eric Faust
8c499b9f9e Bug 953024 - Part 2: Make Ion do common getter optimizations for JSOP_GETGNAME. (r=jandem, f=jwalden over IRC) 2014-03-19 12:46:11 -07:00
Eric Faust
03e81bbb5d Bug 953024 - Part 1: Implement own getter cacheing in BC, and use it for JSOP_GETGNAME. (r=djvj) 2014-03-19 12:46:02 -07:00
Eric Faust
5d52988042 Bug 953024 - Part 0: Factor out common BC getter stub logic for own getters. (r=djvj) 2014-03-19 12:44:53 -07:00
Ryan VanderMeulen
92b419c089 Backed out changeset 893b864b4b18 (bug 969012) for causing bug 984653. 2014-03-19 13:16:06 -04:00