Jeff Walden
518fa9f4fa
Bug 674775 - Implement js::IndexToString to get a JSString corresponding to a uint32_t. r=luke
...
--HG--
extra : rebase_source : 4933683a4d051521d2ba3bad0f16b5f5dc01e03d
2011-07-27 17:09:12 -07:00
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
Igor Bukanov
973ee9f2df
bug 664677 - initializing number and script state when creating the runtime. r=anygregor
...
--HG--
extra : rebase_source : 7e16c8649723bb67205343c0c7cf230e7e04a8c0
2011-06-16 11:42:35 +02:00
Jeff Walden
ce0eef97b4
Bug 663245 - Reduce exposure of jsbool.h, jsiter.h, and jsstr.h outside the JS engine to ding compile time less when they're touched. r=jimb
...
--HG--
extra : rebase_source : 426b168d126099956836c73cd082860bfc77f578
2011-06-10 11:44:16 -07:00
Chris Leary
55f7c6409e
Merge mozilla-central to tracemonkey. (CLOSED TREE)
2011-05-02 10:55:34 -07:00
Jeff Walden
af6649155f
Bug 647385 - Implement a ToInteger helper that corresponds to the spec method (rather than inlining its contents everywhere it can be trivially used). Also fixes a couple bugs in one place that should have used ToInteger but didn't. r=cdleary
2011-04-02 11:33:20 -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
Mike Hommey
495cac3734
Bug 640494 part 2 - Use bitwise operations in JSDOUBLE_IS_* functions. r=jimb
2011-04-27 08:23:21 +02:00
Mike Hommey
2076517e87
Backout changeset d29e1e37e7c2 from bug 640494 because of jsreftest orange on Win opt builds
2011-04-23 13:06:48 +02:00
Jason Orendorff
c0c1b22466
Bug 640494 part 2 - Use bit masking instead of signbit() to avoid problems when including some STL headers. r=luke
2011-04-23 08:48:50 +02:00
Luke Wagner
7c96945e3c
Bug 613457 - clean up string interfaces (r=njn)
...
--HG--
extra : rebase_source : 3e77b67fa9fe2cc31312ad99951cf92258a98e64
2011-03-14 13:59:53 -07:00
Chris Leary
29a4e97a8f
Bug 617935: Check string lengths using StringBuffer. (r=lw)
2011-01-12 15:28:58 -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
Luke Wagner
fe37ac898b
Bug 610848 - merge js::Int32ToString and js_IntToString (r=waldo)
2010-11-10 11:43:22 -08:00
Luke Wagner
91e9e4d5be
Bug 608120 - optimize js_ValueToString on int32s (r=waldo)
2010-11-08 14:35:27 -08:00
Tom Schuster
b7057e3464
Bug 594233 - speed up js::DefaultValue on Number builtin with void hint (r=lw)
...
--HG--
extra : rebase_source : e06f43fe67eef83dd7c6d56417be8395184d40dd
2010-10-19 10:39:55 -07:00
Makoto Kato
65a42553b6
Bug 597814 - Optimize js_DoubleToECMAInt32 for MSVC and gcc x86_64. r=dvander
2010-09-24 20:19:43 -04:00
Nicholas Nethercote
837cae8aad
Bug 590834 - Clean up number-to-string code. r=jwalden.
2010-09-13 13:08:25 -07:00
Jeff Walden
a38463c8a4
Bug 577536 - parseInt() uses radix 8 if the string starts with '0' but not 0x or 0X, and the digit string should be stringified before the radix is integerized. r=jorendorff
2010-07-23 02:29:44 -05:00
Luke Wagner
015cd3448d
Bug 579647 - use canonical nan in js_dmod (r=dvander)
2010-07-19 11:28:13 -07:00
Luke Wagner
99411cc93d
Bug 549143 - fatvals
2010-07-14 23:19:36 -07:00
Andreas Gal
2004c301c3
fast object iteration (558754, r=brendan, CLOSED TREE).
2010-05-07 17:52:52 -07:00
Jacob Bramley
1b4d13bc74
Optimize DoubleToECMAInt32 for ARM. [Bug 551837][r=vlad]
2010-04-27 08:31:36 +01:00
Nicholas Nethercote
4139494dcc
Bug 559250 - encapsulate JSSLOT_{PRIMITIVE,DATE,REGEXP}_* within JSObject (take 2). r=brendan.
2010-04-14 18:57:30 -07:00
Nicholas Nethercote
00c793c05f
Backed out changeset 681b0067e61b due to massive breakage
2010-04-14 17:09:17 -07:00
Nicholas Nethercote
e240c1f235
Bug 559250 - encapsulate JSSLOT_{PRIMITIVE,DATE,REGEXP}_* within JSObject. r=brendan.
2010-04-14 16:18:03 -07:00
Luke Wagner
b9f8c249e6
Bug 552574 - de-mystify js_ValueToNumber API (r=igor)
2010-04-07 13:18:50 -07:00
Boris Zbarsky
43090d95fb
Bug 551118 followup. Need to conver spaces to 0, not NaN. r=jorendorff
2010-03-10 12:12:43 -05:00
Robert Sayre
5cf27a725e
Merge tracemonkey to mozilla-central.
2010-03-26 15:53:14 -07:00
Boris Zbarsky
19a7e9b481
Bug 551118. Reuse string-to-number code and fix bug with negative hex in strings being treated as a negative integer. r=brendan
2010-03-09 17:21:32 -05:00
Ginn Chen
463fff12fa
Bug 529846 check-3d-raytrace.js failed on Solaris x86 r=jimb
2010-03-23 14:41:52 +08:00
Igor Bukanov
0d38a472cc
bug 524346 - using jsval, not jsdouble *, for nan and +-oo. r=brendan
2009-10-28 14:57:31 +03:00
Igor Bukanov
8785797ba7
Backed out changeset 14c76164f4c2 - patch for bug 524346 caused test fails
2009-10-27 19:21:47 +03:00
Igor Bukanov
ed4f6edf7f
bug 524346 - using jsval, not jsdouble *, for nan and +-oo. r=brendan
2009-10-27 13:26:57 +03:00
Leon Sha
1f7b2525ab
Bug 513208 - Tracemonkey build failed on solairs at jsnum.h. r=gal. Remove the space after copysign
2009-08-31 12:05:27 +08:00
Leon Sha
b432f885db
Bug 513208 - Tracemonkey build failed on solairs at jsnum.h. r=gal
2009-08-31 11:21:51 +08:00
Andreas Gal
6424c04026
Inline js_DoubleToInteger (513436, r=sayrer).
2009-08-29 02:36:45 -07:00
Graydon Hoare
a4b6a75ae6
Bug 513063 - Followup to fix windows breakage, r=jorendorff.
2009-08-27 15:54:40 -07:00
Andreas Gal
8986edfd26
Build fix for 513063.
2009-08-27 15:34:20 -07:00
Andreas Gal
d4c110a6b1
Avoid bit twiddling on double values (513063, r=brendan).
2009-08-27 13:59:19 -07:00
Andreas Gal
58465e64d5
Another build fix for 512049. I wish DOM wouldn't poke into the guts of the JS engine.
2009-08-24 23:05:54 -07:00
Andreas Gal
59cc079901
Build fix for bug 512049.
2009-08-24 22:00:30 -07:00
Andreas Gal
7644588864
Inline DoubleToECMAInt32 (512049, r=dmandelin).
2009-08-24 18:46:21 -07:00
Luke Wagner
1f36a4f0c2
Bug 503952 - Use JSTempVector in jsstr.cpp (r=waldo)
...
--HG--
extra : rebase_source : ac955b5d784ca8fc9a61129e580c2751beb4109f
2009-08-14 16:10:59 -07:00
Luke Wagner
7470eaa57b
Bug 503952 - JSStringBuffer/JSCharBuffer with JSTempVector, part 1. r=jwalden
2009-08-07 20:09:11 -07:00
Luke Wagner
145fbf91c2
Bug 200505 - Optimization of jsref array_join_sub() function. r=waldo
2009-06-30 20:19:42 -04:00
Robert Sayre
3f97d5e6f5
Backed out changeset b2256abf53c0
2009-06-30 12:14:09 -07:00
Luke Wagner
a6311cf8b5
Bug 200505 - Optimization of jsref array_join_sub() function. r=waldo
2009-06-30 11:29:43 -07:00
Jeff Walden
4230c8101b
Bug 465980 - Some array methods don't work right on ginormous arrays. r=brendan
2009-01-12 13:07:48 -08:00
Jason Orendorff
cf74ec9191
Bug 471540 - TM: "Assertion failure: cp >= buf" at homicideReport.php. r=gal.
...
--HG--
extra : rebase_source : 7f3bc4e8db9ce307360792b889943d8609e8ff6e
2009-01-08 17:09:16 -06:00