Commit Graph
404 Commits
Author SHA1 Message Date
André Bargull 019e0ec353 Bug 1299900 - Warn about deprecated Date.prototype.toLocaleFormat method. r=jandem 2017-03-07 09:46:41 -08:00
André Bargull 20284f6a53 Bug 1050755: Allow to call Date.UTC with fewer than two arguments per ES2017. r=shu 2017-02-27 13:22:45 -08:00
Tom Schuster 932e8ca649 Bug 1339036 - Rename JSTYPE_VOID to JSTYPE_UNDEFINED. r=arai 2017-02-13 17:26:16 +01:00
Tooru Fujisawa 36abc55d93 Bug 1320408 - Part 14: Change some GlobalObject methods to static method. r=jandem 2017-01-21 17:25:45 +09:00
Jessica Jong 6ffe253651 Bug 1310078 - Implement valueAsNumber and valueAsDate for <input type=datetime-local>. r=smaug,Waldo 2017-01-03 22:33:00 +01:00
Tooru Fujisawa fad712b6a6 Bug 1318815 - Remove ClassSpec delegation and point target ClassSpec directly from prototype class. r=jandem 2016-11-22 16:47:29 +09:00
André Bargull bc0ed97a49 Bug 1300825 - Don't compute time zone info for Date.prototype.toDateString. r=till 2016-10-05 03:25:16 -07:00
André Bargull 7d5720355b Bug 1300825 - Code clean-ups for date formatting. r=till 2016-10-05 03:25:03 -07:00
André Bargull f9733145f9 Bug 1300825 - Use more SprintfLiteral in jsdate. r=till 2016-10-05 03:24:31 -07:00
André Bargull 1ebc49e7e0 Bug 1300825 - Rename variables and methods in Date for clarity. r=till 2016-09-06 17:56:46 +01:00
André Bargull ade58a667f Bug 1300825 - Update comments in jsdate.cpp. r=till 2016-09-06 17:55:54 +01:00
Tooru Fujisawa 6dc43061e4 Bug 1289050 - Part 12: Use ASCII or Latin1 or UTF8 variant of JS_ReportErrorFlagsAndNumber. r=jwalden 2016-08-14 20:39:30 +09:00
Tooru Fujisawa 62bfd3045f Bug 1289050 - Part 6: Use ASCII variant of JS_ReportErrorNumber in simple case. r=jwalden 2016-08-14 20:39:29 +09:00
Jessica Jong 3658d6c1dc Bug 1278186 - Implement valueAsNumber and valueAsDate for <input type=week>. r=smaug,Waldo 2016-09-29 01:08:00 +02:00
Igor 9c81c3c1ee Bug 1293384 - Part 2: Rename Snprintf.h header to Sprintf.h. r=froydnj 2016-08-14 23:43:21 -07:00
Igor 972b8460e2 Bug 1293384 - Part 1: Rename snprintf_literal to SprintfLiteral. r=froydnj 2016-08-14 23:44:00 -07:00
Tom Schuster a671ff049e Bug 1251364 - Use more snprintf_literal in the JS engine. r=terrence 2016-08-03 14:37:31 +02:00
Tom Schuster 06d7ecd3ec Bug 1251364 - Remove our custom printf implementation (jsprf.cpp). r=tromey 2016-08-02 22:16:15 +02:00
Tom Schuster 88135ce2c1 Bug 1114580 - Change ESClassValue to an enum class. r=jorendorff 2016-06-30 00:04:56 +02:00
Eric Skoglund 92436b20fd Bug 730838 - Date.parse accepts non-zero milliseconds for ISO-8601 midnight representation. r=evilpies
We forgot to check that the fraction part of second in the date was zero
if the time is midnight.

MozReview-Commit-ID: 7bMzFK8mBnO
2016-05-24 09:32:54 +02:00
Morgan Phillips ea0c917478 Bug 1265136 - Modify Date.parse's handling of two digit years to improve cross-compatibility; r=Waldo 2016-05-20 13:01:01 -07:00
Jeff Walden d864a381e7 Bug 1259877 - Update various builtins to use js::Call, not js::Invoke. r=efaust 2016-03-22 13:40:20 -07:00
Nicholas Nethercote a35143c546 Bug 1261723 (part 2) - Separate class ops from js::Class. code=njn,h4writer. r=efaust,bz.
js::Class op are often all null. And when they're not all null, they're often
duplicated among classes. By pulling them out into their own struct, and using a
(possibly null) pointer in js::Class, we can save 114 KiB per process on
64-bit, and half that on 32-bit.
* * *
imported patch separate-ClassOps-2
2016-04-01 11:00:01 +11:00
Nicholas Nethercote 2e87fb6483 Bug 1260984 (part 3) - Separate js::ClassSpec from js::Class. r=jorendorff.
js::ClassSpec is often all null. When it's not all null, it's often duplicated
among classes. By pulling it out into its own struct, and using a (possibly
null) pointer in js::Class, we can save 138 KiB per process on 64-bit, and half
that on 32-bit.
2016-04-01 10:59:54 +11:00
Morgan Phillips 6cada191f8 Bug 1205298 - Date.parse() should accept a wider range of potential formats; r=jandem 2016-02-08 14:15:28 -06:00
Till Schneidereit 011dc2622f Bug 1240283 - Slim down JSDate instances by not caching cheaply-computed values. r=Waldo 2016-01-19 22:45:36 +01:00
Eric Faust 53557f79a1 Bug 1055472 - Part 7: Make the Date constructor properly subclassable. (r=Waldo) 2015-11-13 18:22:21 -08:00
Phil Ringnalda eeb5569c4a Backed out 20 changesets (bug 1055472) for Linux64 cgc failures and an apparent crash in the cpp test test_audio on OS X 10.6 debug
CLOSED TREE

Backed out changeset edd1c18b5a5b (bug 1055472)
Backed out changeset 41be086be0e8 (bug 1055472)
Backed out changeset 6ed32cadfc31 (bug 1055472)
Backed out changeset 2f0b0b246e25 (bug 1055472)
Backed out changeset 33d5c8ef947c (bug 1055472)
Backed out changeset 74dca890ec34 (bug 1055472)
Backed out changeset b4a4144b96fa (bug 1055472)
Backed out changeset 9dd0b1fff545 (bug 1055472)
Backed out changeset 31c41d6a16ab (bug 1055472)
Backed out changeset bf8f9604c34f (bug 1055472)
Backed out changeset 69bf1faa9d85 (bug 1055472)
Backed out changeset 284934443cd3 (bug 1055472)
Backed out changeset 65d962413c98 (bug 1055472)
Backed out changeset 94135702e1b5 (bug 1055472)
Backed out changeset 1509efcfa629 (bug 1055472)
Backed out changeset c7180ea9dfa4 (bug 1055472)
Backed out changeset a47a3ce6f35e (bug 1055472)
Backed out changeset 9b4f7a838a66 (bug 1055472)
Backed out changeset e5f593ea362c (bug 1055472)
Backed out changeset 8ec3005245c1 (bug 1055472)
2015-11-19 20:01:07 -08:00
Eric Faust 5c87ffbd19 Bug 1055472 - Part 7: Make the Date constructor properly subclassable. (r=Waldo) 2015-11-13 18:22:21 -08:00
Wes Kocher f1fa21c3d1 Backed out 20 changesets (bug 1055472) for various bustages including m(jp) to get the CLOSED TREE back to a good state
Backed out changeset 0389acea3fc7 (bug 1055472)
Backed out changeset 6f4006cfea7a (bug 1055472)
Backed out changeset 740977ceab24 (bug 1055472)
Backed out changeset 2903bab1d3d5 (bug 1055472)
Backed out changeset bab58078551b (bug 1055472)
Backed out changeset 150c6494dc11 (bug 1055472)
Backed out changeset 2c24c5a4b85e (bug 1055472)
Backed out changeset 4f81eb5d97ab (bug 1055472)
Backed out changeset 6c2f4666560f (bug 1055472)
Backed out changeset ef23d40ed0d4 (bug 1055472)
Backed out changeset 16d85567a5ce (bug 1055472)
Backed out changeset 78d4a1ae22fd (bug 1055472)
Backed out changeset df80bd4dbb44 (bug 1055472)
Backed out changeset a3eee2d8c90e (bug 1055472)
Backed out changeset b5e04101582c (bug 1055472)
Backed out changeset 021a2bf010be (bug 1055472)
Backed out changeset 2f83ba89eb48 (bug 1055472)
Backed out changeset 3efaea09b45f (bug 1055472)
Backed out changeset 0ad5599d97bb (bug 1055472)
Backed out changeset 38cf9e26c832 (bug 1055472)
2015-11-18 16:42:25 -08:00
Eric Faust 187b873896 Bug 1055472 - Part 7: Make the Date constructor properly subclassable. (r=Waldo) 2015-11-13 18:22:21 -08:00
Phil Ringnalda 93c58ee626 Back out 19 changesets (bug 1055472) for hazards and jstest failures
CLOSED TREE

Backed out changeset 738e23a218c8 (bug 1055472)
Backed out changeset 2c454e1ac50c (bug 1055472)
Backed out changeset 40919fcffecd (bug 1055472)
Backed out changeset f42360dbd545 (bug 1055472)
Backed out changeset ce74f9a7b479 (bug 1055472)
Backed out changeset 8b8fa139568b (bug 1055472)
Backed out changeset 42d1ecbce781 (bug 1055472)
Backed out changeset ccb9403a345c (bug 1055472)
Backed out changeset fdd35ea9ef38 (bug 1055472)
Backed out changeset 2f77faf418ce (bug 1055472)
Backed out changeset 1e968e8a279a (bug 1055472)
Backed out changeset d3975d948208 (bug 1055472)
Backed out changeset 03d708347ebb (bug 1055472)
Backed out changeset 5ec1640cdfd2 (bug 1055472)
Backed out changeset 5e2b91587001 (bug 1055472)
Backed out changeset fd09d5077094 (bug 1055472)
Backed out changeset 2e58e0e479b7 (bug 1055472)
Backed out changeset 67f0802a5c13 (bug 1055472)
Backed out changeset 69d9fb855787 (bug 1055472)
2015-11-13 20:49:49 -08:00
Eric Faust c1cc70b37c Bug 1055472 - Part 7: Make the Date constructor properly subclassable. (r=Waldo) 2015-11-13 18:22:21 -08:00
Jeff Walden 32f054f947 Bug 1208808 - Move time zone adjustment information out of JSRuntime, into global state protected by a spinlock. r=till 2015-10-30 16:14:32 -07:00
Phil Ringnalda bbe02a1792 Back out changeset 6e21339a66ed (bug 1208808) for bustage in the mislabelled and deceptive arm64 simulator
CLOSED TREE
2015-10-31 01:44:22 -07:00
Jeff Walden d0e626ac5e Bug 1208808 - Move time zone adjustment information out of JSRuntime, into global state protected by a spinlock. r=till 2015-10-30 16:14:32 -07:00
Jeff Walden e09a5a744e Bug 1217049 - Make Date.prototype.toString.call(<primitive value>) throw a TypeError. r=arai 2015-10-22 16:44:08 -07:00
Jan de Mooij 2b02fd7f0b Bug 1187233 part 1 - Date constructor should create a copy when called with a Date object. Original patch by Giovanni Sferro. r=jwalden 2015-07-29 22:47:51 -07:00
Jan de Mooij c16431ed78 Backout ce75fb8d5a8b (bug 1187233) for B2G xpcshell failures. 2015-10-19 16:37:52 +02:00
Jan de Mooij 28f0c21d61 Bug 1187233 - Date constructor should create a copy when called with a Date object. Original patch by Giovanni Sferro. r=jwalden 2015-07-29 22:47:51 -07:00
Jason Orendorff 24d3e52551 Bug 1054756, part 5 - Remove Class::convert. 2015-03-20 16:28:59 -05:00
Jason Orendorff 52fed7bb56 Bug 1054756, part 3 - Implement Symbol.toPrimitive. Replace existing convert hooks with methods. r=jandem.
JSClass::convert is no longer used after this, but to minimize the noise, it will be deleted in a separate patch. However all non-nullptr convert hook implementations must be replaced with [@@toPrimitive] methods in this patch to avoid changing the behavior.

The changes in XrayWrapper.cpp fix a pre-existing bug: when an Xray wrapper tries to emit the "Silently denied access" warning, if id is a symbol, the existing code triggers an error trying to convert it to a string for the warning message. Implementing Symbol.toPrimitive revealed this bug; the fix is straightforward.
2015-03-20 14:02:55 -05:00
Wes Kocher acbbcd2aca Backed out 7 changesets (bug 1206168, bug 1177318, bug 1054756) for hazard build failures CLOSED TREE
Backed out changeset e892727a373a (bug 1206168)
Backed out changeset 6c93d1044b7e (bug 1054756)
Backed out changeset 105433ce195b (bug 1054756)
Backed out changeset 13128a88f2b9 (bug 1054756)
Backed out changeset c250abf4fd17 (bug 1054756)
Backed out changeset fc9fef646a97 (bug 1054756)
Backed out changeset c8897f109a08 (bug 1177318)
2015-09-23 12:31:19 -07:00
Jason Orendorff b7001bb468 Bug 1054756, part 5 - Remove Class::convert. 2015-03-20 16:28:59 -05:00
Jason Orendorff 0ba28d226c Bug 1054756, part 3 - Implement Symbol.toPrimitive. Replace existing convert hooks with methods. r=jandem.
JSClass::convert is no longer used after this, but to minimize the noise, it will be deleted in a separate patch. However all non-nullptr convert hook implementations must be replaced with [@@toPrimitive] methods in this patch to avoid changing the behavior.

The changes in XrayWrapper.cpp fix a pre-existing bug: when an Xray wrapper tries to emit the "Silently denied access" warning, if id is a symbol, the existing code triggers an error trying to convert it to a string for the warning message. Implementing Symbol.toPrimitive revealed this bug; the fix is straightforward.
2015-03-20 14:02:55 -05:00
Jeff Walden 9399e8c7de Bug 1179003 - Convert the infallible objectClassIs proxy hook into a fallible getBuiltinClass hook that indicates class type via outparam. r=efaust, r=bz on DOM bits, r=billm on IPC bits 2015-08-28 21:55:40 -07:00
Till Schneidereit 8c438b1a94 Bug 1198193 - Change all functions taking CallArgs to take const CallArgs& instead. r=Waldo 2015-08-27 21:18:37 +02:00
Jeff Walden fc993827aa Bug 1158399 - Expose the [[DateValue]] field in Date objects only through a ClippedTime class that enforces prior TimeClip-ing on the given value. r=evilpie, r=bz, r=dhylands, r=mt, r=froydnj, r=khuey, r=baku, r=smaug 2015-05-01 19:12:52 -07:00
David Rajchenbach-Teller 9e9f676225 Bug 1190077 - Move RDTSC and prmjtime.* to vm/Time.*. r=nbp
CLOSED TREE
2015-07-07 18:47:40 +02:00
Carsten "Tomcat" Book 5c03e8aa60 Backed out changeset e057fc16e2e0 (bug 1187233) for breaking GU tests in month_day_agenda_test.js on a CLOSED TREE 2015-08-03 16:25:56 +02:00