Jeff Walden
d967e5e20f
Bug 671143 - Rename ValueToNumber to ToNumber, to be more like the spec nomenclature. r=cdleary
...
--HG--
extra : rebase_source : e85fbadd77adc048f5e443cd9ed96b0035954674
2011-06-13 21:49:59 -07:00
Makoto Kato
cd7ae32ee3
Bug 635617 - 64-bit crash [@ MakeDay] r=jwalden
2011-06-08 10:41:37 +09:00
Jeff Walden
9d216339ba
Bug 646129 - [[DefaultValue]] on Date objects is wrong when called with no hint. r=luke
2011-04-01 15:24:21 -07:00
Luke Wagner
05d2002b66
Bug 644074 - Simplify and consolidate VM stack code into js/src/vm/Stack*
2011-04-13 09:27:37 -07:00
Chris Leary
71c7cfdc1f
Merge mozilla-central and tracemonkey.
2011-04-26 10:42:36 -07:00
Tom Schuster
13b9f917f0
Bug 649575 - Date.prototype.toISOString must throw a RangeError for non-finite dates. r=jwalden
2011-04-22 22:46:59 -04:00
Luke Wagner
774c050740
Bug 602994 - Preparatory syntactic cleanup (r=waldo)
2011-04-08 10:52:48 -07:00
Jonathan Kew
20281c115e
Backed out changeset 80451fb8f11c (bug 585152) as per discussion in the bug.
2011-04-13 14:35:06 +01:00
Paul Biggar
bc3d36f617
Bug 585152 - Reland Date.now() fractional changes, along with fixed tests. (r=jwalden,dolske,gavin, rs=jwalden)
...
For the tests, I put a Math.floor around anything which looked like it did string concatenation. In principal that was r+ by dolske and gavin, and jwalden r+ed the extension to the rest of the tests.
Backout policy: the jsdate.cpp changes can be backed out trivially. The test changes should backout cleanly, but we're not hosed if they don't.
2010-08-06 13:35:00 -07:00
L. David Baron
52ee86d378
Backout changeset b583111a88aa (bug 585152) for causing mochitest-browser-chrome orange on opt builds.
2011-04-12 01:29:41 -07:00
Paul Biggar
c0aeeea187
Bug 585152 - Reland Date.now() fractional changes, along with fixed tests. (r=jwalden,dolske,gavin, rs=jwalden)
...
For the tests, I put a Math.floor around anything which looked like it did string concatenation. In principal that was r+ by dolske and gavin, and jwalden r+ed the extension to the rest of the tests.
Backout policy: the jsdate.cpp changes can be backed out trivially. The test changes should backout cleanly, but we're not hosed if they don't.
2010-08-06 13:35:00 -07:00
Jeff Walden
045c2c1622
Backed out changeset eee087772f45, causes orange in xpcshell (understood and easily fixed) and Moth (not immediately apparent). r=colors
2011-04-11 15:43:03 -07:00
Paul Biggar
a43606f510
Bug 585152 - Make Date.now() return fractional as well as integral bits (for submillisecond timing) (r=jwalden)
2010-08-06 13:35:00 -07:00
Tom Schuster
612aedeb49
Bug 601709 - Remove the misnomer InstanceOf variant methods by replacing their uses with clearer if-not-class-then-report code. r=jwalden
...
--HG--
extra : rebase_source : 171b8afefec6b00dd9981315a3e591fe347634dd
2011-04-11 01:38:27 -07:00
Paul Biggar
43b850291d
Bug 643548: Remove mozalloc_undef_macro_wrappers hack from JS engine. (r=luke,rs=brendan)
...
mozalloc_undef_macro_wrappers are brittle and have side-effects that are hard
to debug and fix. The alternative is the just stick an underscore on the end of
malloc, free, etc, which is a comparatively small burden.
2011-03-31 01:14:12 -07:00
Paul Biggar
72c7701093
Bug 634155: Account for NewCompartment's memory, and change allocation APIs (r=nnethercote)
...
This changes the allocation API, in the following way:
js_malloc -> {cx->,rt->,OffTheBooks::}malloc
js_calloc -> {cx->,rt->,OffTheBooks::}calloc
js_realloc -> {cx->,rt->,OffTheBooks::}realloc
js_free -> {cx->,rt->,Foreground::,UnwantedForeground::}free
js_new -> {cx->,rt->,OffTheBooks::}new_
js_new_array -> {cx->,rt->,OffTheBooks::}new_array
js_delete -> {cx->,rt->,Foreground::,UnwantedForeground::}delete_
This is to move as many allocations as possible through a JSContext (so that they may be aken into account by gcMallocBytes) and to move as many deallocations to the background as possible (except on error paths).
2011-03-31 01:13:49 -07:00
Jim Blandy
de75b9fa19
Bug 537873: Add a 'strict' argument to C++ property setter functions. r=brendan
...
This changes the type of setters to JSStrictPropertyOp, which is just like
JSPropertyOp except that it takes a 'JSBool strict' argument. Most of the
patch is introducing distinct types and using the appropriate stubs.
The following are left for subsequent patches:
x Similar fixes to the browser outside SpiderMonkey.
x Actually *using* the newly available strictness information. This patch
should have no user-visible effect. I didn't want the interesting stuff
to get lost in this noise.
2011-02-09 11:31:40 -08:00
Jeff Walden
13fb18a6fe
Bug 619283 - Built-in JS methods must not box undefined or null into the global object when called, both to comply with ES5 and to prevent inadvertent global object exposure to secure JS variants. r=dmandelin
...
--HG--
extra : rebase_source : be6802a24bd58eb6339369e6803d3eb2fbbc07a5
2011-01-26 13:37:45 -08:00
Luke Wagner
d8719356c0
Bug 609440, part 4 - make JSString::chars() fallible (r=waldo,dvander,igor,dwitte,njn)
2010-12-06 10:26:58 -08:00
Igor Bukanov
a18b8a8142
bug 617215 - eliminating JS_NewString usage in FF while fixing a leak there. r=bz
2010-12-09 11:22:15 +01:00
Saint Wesonga
e7e16e7fa7
Remove unused js_DateSetXXX API. Bug 524179, r=brendan.
2010-12-07 12:46:19 -06:00
Jason Orendorff
4b36cd08d6
Fix structured cloning deserialization bug that could create invalid Date objects. Bug 602806, r=gal.
2010-12-03 12:15:06 -06:00
Igor Bukanov
52ea348c4c
bug 610198 - Replacing JS_GetStringBytes usage with JS_EncodeString. r=gal
2010-11-11 21:40:29 +01:00
David Anderson
7487c14d37
Backed out changeset 8e119f847f97 (build busted)
2010-11-11 11:19:42 -08:00
Igor Bukanov
e32ba97023
bug 610198 - Replacing JS_GetStringBytes usage with JS_EncodeString. r=gal
2010-11-02 15:36:25 +01:00
Jeff Walden
ca6294d553
Bug 607148 - Remove unnamed namespaces from SpiderMonkey code. rs=luke
2010-10-25 16:47:11 -07:00
Brian Hackett
f9cf7a5b7d
Flexible length JSObject, bug 584917. r=brendan,igor
2010-10-13 11:49:22 -07:00
Jason Orendorff
630900ee20
Finally get rid of /* Added by JSIFY */ comments. r=Waldo.
2010-10-01 18:46:54 -05:00
Jim Blandy
bd74ec5d3b
Bug 600943: Correctly compute |this| in Date.prototype.toJSON. r=waldo
2010-10-01 13:05:03 -07:00
Brian Hackett
066d48b6b6
Backed out changeset 09ffb30caa47
2010-09-20 12:05:21 -07:00
Brian Hackett
e8819f33fa
Make JSObject flexible length, bug 584917. r=brendan
2010-09-20 11:40:32 -07:00
Nicholas Nethercote
837cae8aad
Bug 590834 - Clean up number-to-string code. r=jwalden.
2010-09-13 13:08:25 -07:00
Luke Wagner
562fc49870
Bug 539144 - Make formal args a jit-time const offset from fp; rm argv/argc/thisv/script/callobj (r=brendan,dvander)
2010-08-09 22:43:33 -07:00
Luke Wagner
5e9978f911
Bug 581263 - remove slow natives (r=waldo,mrbkap)
2010-08-16 12:35:04 -07:00
Nicholas Nethercote
81306351a8
Bug 585866 - Avoid unnecessary calls to YearFromTime(). r=jwalden.
2010-08-18 19:44:28 -07:00
Jeff Walden
7873aa2eba
Oops, forgot to qref before removing this line of whitespace. r=style-police
2010-08-17 16:55:01 -07:00
Jeff Walden
e1c811e568
Bug 584811 - Date.prototype.toJSON isn't to spec. r=sayrer
2010-08-13 10:42:31 -07:00
Brian Hackett
8ad86a5d56
Date performance fixes, bug 578259. r=waldo
2010-08-17 10:42:57 -07:00
Brian Hackett
16873a1fb8
Bug 579471 - fast constructors (r=dmandelin,lw)
2010-08-10 16:38:08 -07:00
Igor Bukanov
2019c722fb
bug 571789 - merging JSObjectOps and JSExtendedClass into JSClass. r=jorendorff
2010-06-12 18:29:04 +02:00
Igor Bukanov
181c2cdf3a
Backed out changeset 7b2b90efe57d -- the patch was landed against a tree with a lot of orange. This will hinder the orange resolution.
2010-07-28 14:36:06 +02:00
Igor Bukanov
a69fd0a49f
bug 571789 - merging JSObjectOps and JSExtendedClass into JSClass. r=jorendorff
2010-06-12 18:29:04 +02:00
Nicholas Nethercote
9dfbe8877d
Bug 552812 - nanojit: factor out AccSet differences into TM and TR (take 3, TM-specific part). r=gal.
2010-07-27 22:33:42 -07:00
Nicholas Nethercote
be11c2f1c9
Backout TM-specific patches for bug 552812 due to assertion failures on Win2003.
2010-07-26 00:03:02 -07:00
Nicholas Nethercote
03a540e016
Bug 552812 - nanojit: factor out AccSet differences into TM and TR (TM-specific part). r=gal.
2010-07-25 21:23:02 -07:00
Luke Wagner
99411cc93d
Bug 549143 - fatvals
2010-07-14 23:19:36 -07:00
Jeff Walden
0ee447d3dd
Bug 574992 - Make Date.prototype.toGMTString a normal, non-enumerable, non-alias property; also fixes a failure (with Object.getOwnPropertyNames support) in the MS ES5 tests. r=brendan
2010-06-26 14:08:58 -07:00
Brendan Eich
e672f52623
Eliminate JSClass::reserveSlots and streamline new-object paths (535416, r=gal).
2010-06-18 17:43:02 -07:00
Jeff Walden
16068a18f0
Bug 563938 - Refactor units-of-time used in computing DST offsets. r=sayrer
...
--HG--
extra : rebase_source : 38ffc11fbd00aaca53fb399e6ff2c1cec4cc5f3b
2010-05-26 17:00:28 -07:00
Jeff Walden
e98ca56524
Bug 563938 - Refactor DST offset computation to pave the way for caching the DST offset when possible. No functionality change. r=sayrer
...
--HG--
extra : rebase_source : ad70045b70cc23dd7578e594490a10b4fc6fc7ef
2010-05-26 17:00:28 -07:00