Commit Graph

351 Commits

Author SHA1 Message Date
André Bargull
1da4d5e992 Bug 1177907 - Handle ObjectClassIs exception in date_toString. r=till 2015-06-30 04:36:00 -04:00
Till Schneidereit
6032d2eef0 Bug 861219 - Part 1: Make Date.prototype not be a Date object. r=bholley 2014-05-26 13:04:55 +02:00
Carsten "Tomcat" Book
322c031436 Backed out changeset e9a4931b119c (bug 861219) 2015-05-12 12:27:20 +02:00
Till Schneidereit
f7acd970d3 Bug 861219 - Part 1: Make Date.prototype not be a Date object. r=bholley 2014-05-26 13:04:55 +02:00
Jeff Walden
27e2dedf10 Bug 1158399 - Ensure/assert that DateObject::setUTCTime never stores a non-TimeClip'd value in the reserved slot. r=evilpie 2015-04-30 20:03:30 -07:00
Jan de Mooij
70b031f550 Bug 1160535 part 1 - Give JSFunction its own AllocKind. r=terrence 2015-05-06 16:52:46 +02:00
Jeff Walden
dc14f97704 Bug 1160356 - Make new Date(arg1, arg2, ...) conform to ES3-6 in converting *all* arguments to number before computing the return value. r=evilpie 2015-04-30 09:58:58 -07:00
Jeff Walden
ef4282eca7 Bug 1160356 - Reorganize the code for the Date function/constructor into three separate methods, to be more consistent with ES6's definition of it. Don't change the actual algorithm yet -- this is just code motion. r=evilpie 2015-04-30 09:58:58 -07:00
Jeff Walden
41198d06ee Bug 1160356 - Make Date.UTC conform to ES3-6 in converting *all* arguments to number before computing the return value. r=evilpie 2015-04-30 09:58:58 -07:00
Jan de Mooij
960e7c935d Bug 1155946 part 1 - Add a mayResolve class hook to optimize objects with resolve hooks better. r=bhackett 2015-04-23 15:51:28 +02:00
Elbart
78181c507c Bug 1069979 - Don't throw away timezone-strings with dots in Date() r=evilpie 2015-04-08 19:37:24 +02:00
Jan de Mooij
c6596c5fa8 Bug 1144366 - Switch SpiderMonkey and XPConnect style from |T *t| to |T* t|. r=jorendorff 2015-03-28 23:22:11 +01:00
Phil Ringnalda
1a1c158706 Backed out changeset 0c030f97a04f (bug 1144366) for being on top of patches being backed out
CLOSED TREE
2015-03-28 10:39:56 -07:00
Jan de Mooij
369ef1b850 Bug 1144366 - Switch SpiderMonkey and XPConnect style from |T *t| to |T* t|. r=jorendorff 2015-03-28 12:08:37 +01:00
Tooru Fujisawa
ad09a29cac Bug 1079919 - Part 0: Add RegExp ClassSpec. r=bholley 2015-03-18 18:22:05 +09:00
Jan de Mooij
b3f1ff13a2 Bug 1137523 - Unprefix most js_* functions. r=bhackett CLOSED TREE 2015-02-27 16:08:15 +01:00
Brian Hackett
f3b8c29553 Bug 1130708 - Remove js::types namespace, r=jandem. 2015-02-08 06:01:13 -07:00
André Bargull
7db61d23fe Bug 730831 - Use extended ISO-8601 year format in Date#toISOString if necessary. r=jorendorff 2014-10-26 16:54:25 +01:00
Jason Orendorff
3e0e414743 Bug 1112778, part 7 - Rename JSObject::{get,set}Generic etc. -> js::{Get,Set}Property and add a few comments. r=Waldo. 2014-12-18 08:35:42 -06:00
Jason Orendorff
2e2ce24f6f Bug 1112778, part 2 - Rename js::DefaultValue -> js::OrdinaryToPrimitive. r=Waldo. 2014-12-18 05:02:30 -06:00
Jason Orendorff
792b981f50 Bug 1112778, part 1 - Remove namespace baseops. Rename js::baseops::DefineGeneric -> js::NativeDefineProperty and so on. r=Waldo. 2014-12-17 15:55:32 -06:00
Ehsan Akhgari
a7f747ec15 Bug 1118486 - Part 1: Use = delete instead of MOZ_DELETE directly; r=Waldo
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:

#!/bin/bash

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "*/.git*" \
       ! -wholename "obj-*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Jeff Walden
cd488137b2 Bug 1112769 - Move the contents of js/src/vm/NumericConversions.h into a new js/public/Conversions.h header containing public API. r=jorendorff 2014-12-17 13:50:14 -08:00
Jason Orendorff
ddde8586c6 Bug 1103368, part 5 - Make Class::getProperty and setProperty nullable instead of needing stub functions. Never store stub functions in JSPropertyDescriptors. r=bhackett. 2014-11-22 12:23:39 -06:00
Jason Orendorff
63279d45a5 Bug 1103368, part 2 - Ban stub getter/setter arguments to js::baseops::Define{Property,Generic,Element}, DefineNativeProperty, and DefinePropertyOrElement. r=bhackett. 2014-11-21 21:07:13 -06:00
Jason Orendorff
6c66fe3b7e Bug 1103152 - Remove JS_DeletePropertyStub, JS_EnumerateStub, JS_ResolveStub, and JS_ConvertStub. Make five mandatory JSClass hooks optional (nullable). r=bhackett. 2014-12-02 16:56:35 -06:00
Brian Hackett
6ac79b58e5 Bug 1107496 - Add PlainObject subclass, r=luke. 2014-12-05 18:52:28 -07:00
Ryan VanderMeulen
11d669cc74 Backed out changeset 64ec5c15d182 (bug 1107496) for SM(ggc) orange. 2014-12-05 13:28:40 -05:00
Brian Hackett
2f8a3eaad6 Bug 1107496 - Add PlainObject subclass, r=luke. 2014-12-05 07:27:37 -07:00
Bobby Holley
07ed5b925a Bug 857138 - Make Date operate with the boxedValue_unbox proxy trap. r=luke 2014-10-23 19:53:31 +02:00
Bobby Holley
a0646223e4 Bug 857138 - Add some cx parameters. r=bz 2014-10-23 19:53:31 +02:00
Bobby Holley
1a69dc3991 Bug 857138 - Remove unused APIs. r=luke 2014-10-23 19:53:31 +02:00
Brian Hackett
0f98f3b75c Bug 1073842 - Add NativeObject subclass of JSObject, remove ObjectImpl, r=luke. 2014-10-02 19:32:39 -07:00
Nicolas B. Pierron
9d5a7dcd11 Bug 1074911 - Replace JS_ASSERT_IF by MOZ_ASSERT_IF. r=jorendorff
Apply the following script

sed -i '
   /JS_ASSERT_IF(/ {
     s/JS_ASSERT_IF(/MOZ_ASSERT_IF(/;
     :b;
     s/ \\$/\\/;
     /;/ { p; d; };
     n;
     s/^/ /;
     b b;
  };
  s/JS_ASSERT_IF (/MOZ_ASSERT_IF(/;
'
2014-10-01 19:17:53 +02:00
Nicolas B. Pierron
cb753ff627 Bug 1074911 - Replace JS_ASSERT by MOZ_ASSERT. r=jorendorff
Apply the following script

sed -i '
   /JS_ASSERT(/ {
     s/JS_ASSERT(/MOZ_ASSERT(/;
     :b;
     s/ \\$/\\/;
     /;/ { p; d; };
     n;
     s/^/ /;
     b b;
  };
  s/JS_ASSERT (/MOZ_ASSERT(/;
'

Except where the JS_ASSERT macro does not end with a semi-colon, where empty
lines are in the middle of the macro, and where the backslahes are always the
same-length after the expression.
2014-10-01 19:17:51 +02:00
Till Schneidereit
ebd2949f9f Bug 1067459 - Only install a small subset of the standard builtins in the self-hosting global. r=jorendorff 2014-09-16 10:01:09 -04:00
Jeff Walden
2e21002891 Bug 896116 - Morph the dependent-JSProtoKey system to explicitly store a JSProtoKey, rather than relying on a system where a single class represents the parent and dependent both. Also convert error objects (Error, RangeError, &c.) to be represented by multiple classes, not a single one. r=bholley, r=till 2014-09-18 20:06:32 -07:00
Jon Coppeard
da5e50796f Bug 1063468 - Remove unnecessary use of address() r=sfink 2014-09-15 16:49:37 +01:00
Chris Peterson
def5e6780e Bug 1063962 - Replace jschar typedef with C++11 char16_t type. r=jandem 2014-07-21 21:43:21 -07:00
Bobby Holley
538d06df6f Bug 1050340 - Handle dates generically. r=luke 2014-08-18 14:18:38 -07:00
Bobby Holley
c9867c646c Bug 1029933 - Tweak GenericCreateConstructor to make it usable with Error. r=Waldo 2014-07-04 12:41:28 -07:00
Jan de Mooij
f0cbf46832 Bug 1021714 part 5 - More date parsing cleanup and handle Latin1 strings. r=njn 2014-06-10 11:23:39 +02:00
Jan de Mooij
26cc830fe4 Bug 1021714 part 4 - Some date_parseISOString cleanup. r=njn 2014-06-10 11:19:28 +02:00
Jan de Mooij
488de4ae90 Bug 1021714 part 3 - More date_parseString cleanup. r=njn 2014-06-10 11:19:27 +02:00
Jan de Mooij
9c89256611 Bug 1021714 part 2 - Move some variable declarations. r=njn 2014-06-10 11:19:27 +02:00
Jan de Mooij
f41f8ddd4d Bug 1021714 part 1 - Eliminate "goto syntax" in date_parseString. r=njn 2014-06-10 11:19:22 +02:00
Jason Orendorff
cb432bf614 Bug 904723, part 1 - Add new IsConstructor intrinsic for self-hosting. r=till.
This also renames js_IsCallable to js::IsCallable and does some related light
cleaning work.
2014-06-06 11:15:21 -04:00
Bobby Holley
74974e5169 Bug 992958 - Add support for prototype JSPropertySpecs on ClassSpec. r=luke 2014-05-23 16:53:03 -07:00
Daniel Holbert
64c725c66f Bug 1010612: Remove unused variable sReadOnlyDateMethods from jsdate.cpp. r=bholley 2014-05-14 19:29:31 -07:00
Dan Gohman
75bba914aa Bug 998172 - SpiderMonkey: Eliminate unnecessary parentheses around return values. r=nbp 2014-04-18 11:13:44 -07:00