Commit Graph

351 Commits

Author SHA1 Message Date
Norbert Lindenberg
8b4dafbf9b Bug 769871 - Reimplement Date.toLocaleString per ECMA-402. r=jwalden 2013-03-21 16:38:25 -07:00
Jon Coppeard
498bd73a38 Bug 847934 - GC: Remove Unrooted - Remove use of DropUnrooted and rename UnrootedThings to RawThings r=terrence 2013-03-05 18:32:12 +00:00
Jeff Walden
f91f785300 Bug 826009 - Move locale callback info, default locale, etc. data and APIs to be JSRuntime-centered. f=bholley, r=jorendorff 2013-02-07 18:04:11 -08:00
Nicholas Nethercote
847ffd45a0 Bug 838955 (part 2) - Fix rooting hazards in jsstr.cpp identified by static analysis. r=sfink. 2013-02-07 18:13:41 -08:00
Jeff Walden
5e96ace96f Bug 834988 - Clarify that all the DST-offset methods take a time in UTC seconds, and that the internal fields store UTC values. Also add documentation comments by the related methods. r=dmandelin 2013-01-25 16:50:24 -08:00
Brian Hackett
6ffc2c1ff8 Bug 834826 - Eliminate or refactor various unnecessary stack roots, r=terrence. 2013-01-26 07:42:20 -07:00
Jon Coppeard
2a232a54be Bug 832363 - GC: Rooting updates to jsdate.cpp r=sphink 2013-01-18 17:36:24 +00:00
Ms2ger
449247c922 Bug 828567 - Part b: Stop passing CallReceiver around where we only need call.rval() in jsdate.cpp; r=terrence 2013-01-11 09:43:01 +01:00
Ms2ger
1704fa7bc0 Bug 828567 - Part a: Exact rooting for strings in jsdate.cpp; r=terrence 2013-01-11 09:43:00 +01:00
Bobby Holley
946f441d89 Bug 809652 - Add gross one-off predicates to jsfriendapi. r=jorendorff 2012-12-20 22:33:26 -08:00
Christian Holler
91cf8dd992 Bug 811756: Handle NaN in IsLeapYear and fix a double/int issue. rs=Waldo 2012-12-04 13:24:45 +01:00
Jeff Walden
0888d7b103 Bug 815414 - Move the DST offset cache out of JSContext, and LocalTZA out of a process-wide static, into JSRuntime. r=jorendorff 2012-11-27 15:12:20 -08:00
Terrence Cole
f81b1d5878 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
Benjamin Peterson
b8f586960a backout bug 778948 eace14fccc47 for horrible sunspider regression r=me 2012-10-26 17:59:35 -07:00
Benjamin Peterson
c5bf403b34 Bug 778948 - Move jsinterp to vm/Interpreter. r=luke 2012-10-26 16:51:05 -07:00
Nicholas Nethercote
727b868def Bug 793076 (part 8) - Make GetCachedLocalTime() infallible. r=jwalden. 2012-10-07 18:03:20 -07:00
Nicholas Nethercote
3f3b379dcc Bug 793076 (part 7) - Rename CacheLocalTimes() and change its return type from bool to void. r=jwalden. 2012-10-07 18:01:54 -07:00
Nicholas Nethercote
c60340c147 Bug 793076 (part 6) - Remove SetDateToNaN. r=jwalden. 2012-10-07 18:01:51 -07:00
Nicholas Nethercote
1bbcd5fb7a Bug 793076 (part 5) - Change SetUTCTime()'s return type from bool to void. r=jwalden. 2012-10-07 18:01:35 -07:00
Nicholas Nethercote
795b085128 Bug 793076 (part 4) - In jsdate.cpp, exactly root remaining JSObject* pointers. r=jwalden. 2012-09-20 23:23:54 -07:00
Nicholas Nethercote
28f97a9389 Bug 793076 (part 3) - In jsdate.cpp, convert Rooted<JSObject*> pointers to RootedObject. r=jwalden. 2012-09-20 23:23:18 -07:00
Nicholas Nethercote
a1595c547d Bug 793076 (part 2) - In jsdate.cpp, convert |cx| parameters to |dstOffsetCache| where possible. r=jwalden. 2012-09-20 23:22:35 -07:00
Nicholas Nethercote
23ab1e42a2 Bug 793076 (part 1) - Remove unnecessary |cx| parameters. r=jwalden. 2012-09-20 21:41:49 -07:00
Nicholas Nethercote
4c73cd8512 Bug 793086 (part 1) - Convert JSClassInitializerOp parameter to HandleObject. r=sfink. 2012-09-20 22:17:49 -07:00
Jeff Walden
5a2de170a3 Bug 790349 - Convert all fooAtom uses to simply foo. r=jorendorff 2012-09-11 10:32:33 -07:00
Jeff Walden
aa4f062f24 Bug 789635 - Clean up JSAtomState so that all atom fields are macro-defined, and move the atoms set into JSRuntime directly. r=jorendorff 2012-09-06 13:48:40 -07:00
Jeff Walden
8f89ecae06 Backed out changeset 17d36418f4d6, possible memory leak. r=graphserver 2012-09-17 15:10:47 -07:00
Jeff Walden
3f6a67b168 Backed out changeset d3d8807c6c59, possible memory leak. r=graphserver 2012-09-17 15:04:21 -07:00
Jeff Walden
efa1ae7ef7 Bug 790349 - Convert all fooAtom uses to simply foo. r=jorendorff 2012-09-11 10:32:33 -07:00
Jeff Walden
568284dc14 Bug 789635 - Clean up JSAtomState so that all atom fields are macro-defined, and move the atoms set into JSRuntime directly. r=jorendorff 2012-09-06 13:48:40 -07:00
Brian Hackett
da3bc3683e Make JSObject::doSomethingToThisObject methods static, bug 782646. r=terrence 2012-08-21 13:13:28 -06:00
Jim Blandy
ba67e59fc0 Bug 777174: Change CallNonGenericMethod to take the predicate and implementation as template arguments, not function arguments. r=luke
On x86_64 Fedora 17, this patch yields an 8ms (1.6%) speedup on SunSpider compared to the tree just prior to the introduction of CallNonGenericMethod, or a ~12ms (2.8%) speedup compared to the tree just after the introduction.
2012-08-16 11:40:05 -07:00
Brian Hackett
8a27276644 Add various autorooting, bug 772303. r=terrence 2012-08-12 19:50:49 -06:00
Terrence Cole
082a931454 Bug 772303 - Add missing roots for analysis builds; r=bhackett 2012-08-03 09:41:00 -07:00
Benjamin Peterson
c26919343f Bug 780051 - Remove JS_MAX and JS_MIN. r=luke 2012-08-02 20:50:51 -07:00
Steve Fink
56b9c45f6e Bug 777219 - Prepare SpiderMonkey for a fully rooted API; r=bhackett 2012-07-23 13:37:31 -07:00
Brian Hackett
6c4ed4bfd1 Use HandleValue and MutableHandleValue in API hooks where possible, bug 776579. r=billm, sr=dmandelin 2012-07-30 05:19:09 -06:00
Jeff Walden
41de02b8c9 Bug 773850 - Refactor method guarding to be able to work for methods that must be able to accept a |this| which is a proxy. r=luke 2012-07-03 17:44:22 -07:00
Sean Stangl
add8b9ff94 Bug 285615 - Define and implement JS_ClearDateCaches() API. r=waldo 2012-07-13 15:56:08 -07:00
Jeff Walden
e4ddf302a7 Bug 771946 - Convert most of the internal Date functions to work in terms of doubles, and add a ton of assertions to verify proper time clipping, integerization, etc. r=luke 2012-07-09 14:28:20 -07:00
Terrence Cole
6bca437bf0 Bug 772314 - Replace NSPR's interval timer with PRMJ_Now; r=luke
PR_IntervalTime offers no extra functionality above PRMJ_Now for our uses.
2012-07-09 18:40:27 -07:00
Luke Wagner
46d990aa46 Bug 770795 - add NullPtr and associated Handle constructor (r=billm) 2012-07-08 03:00:11 -07:00
Jeff Walden
104b017ac3 Bug 771742 - Refactor the date to-UTC-string methods to not use date_format_utc. r=luke 2012-07-06 15:35:45 -07:00
Jeff Walden
679e1b26ce Bug 771742 - Refactor the date to-locale-string methods to do their method-guarding right at the start, and never in nested method calls. r=luke 2012-07-06 15:26:11 -07:00
Jeff Walden
74271f2d37 Bug 771742 - Reimplement the Date.prototype.set<date component> functions in terms of their spec steps, and remove the hard-to-understand date_makeDate. r=luke 2012-07-06 13:53:11 -07:00
Jeff Walden
4dae381de5 Bug 771742 - Reimplement the Date.prototype.set<unit of time> functions in terms of their spec steps, and remove the hard-to-understand date_makeTime. r=luke 2012-07-06 13:53:10 -07:00
Jeff Walden
ae3ee934cc Bug 771742 - Reorganize all the date/time spec algorithms and constants to be in spec order (when possible), have proper types, be methods rather than macros, and so on. This will make it easier to refactor some of the Date method implementations to read more like the spec algorithms. r=luke 2012-07-06 13:52:53 -07:00
Jeff Walden
fbb6152ef0 Bug 765990 - Never use Rooted<T> as a temporary, so that the Rooted->Handle conversion path occurs in only one manner, not two (ambiguous) manners. r=luke 2012-06-14 19:13:27 -07:00
Ed Morley
1fec29e57b Backout 1c5a8d617bff (bug 765990), 617cb36ead59, b3067d05a76a (bug 760995), 79f9a61a1e43 (bug 426163) for bustage 2012-06-21 10:00:36 +01:00
Jeff Walden
7edd30c627 Bug 765990 - Never use Rooted<T> as a temporary, so that the Rooted->Handle conversion path occurs in only one manner, not two (ambiguous) manners. r=luke 2012-06-14 19:13:27 -07:00