Граф коммитов

114 Коммитов

Автор SHA1 Сообщение Дата
Ed Morley 37e0275afc Backout changeset 3b5b10d76887 (bug 678687) for V8/Dromaeo regressions on multiple platforms; a=mak 2011-10-27 16:11:26 +01:00
Brian Hackett 45c90bc9f8 Try to coerce doubles to integers on tripped type barriers, bug 678687. r=dvander 2011-10-26 18:46:06 -07:00
Jeff Walden 720811e46e Bug 687642 - Start injecting the index/name/special split into JSOP_GETELEM. r=dvander 2011-08-15 00:12:50 -04:00
Mike Hommey 0ace0bb211 Bug 653056 - Use a bitwise version of JSDOUBLE_IS_NaN that Visual Studio PGO doesn't miscompile. r=jimb 2011-09-23 14:27:21 +02:00
Luke Wagner a9d6d33a65 Bug 684526 - Remove Jsvalify/Valueify (r=waldo)
--HG--
extra : rebase_source : a3047338ed088c26a93486addd0be8092fe52934
2011-09-20 11:40:24 -07:00
Luke Wagner 293c7bcf13 Bug 684110 - Clean JSObject::clasp usage (r=pbiggar) 2011-09-02 17:23:26 -07:00
Ed Morley 5ad1e0be99 Backout bug 684110 (08b6eaf6aad0, cf8b35fa1010, 25ee45edabe1, 659f5c7d2cc9, 870f6dd82586 & e1ad65d6a7fd) and bug 684344 (cd1957f6628d) on a CLOSED TREE; a=bustage-fairies 2011-09-03 03:21:25 +01:00
Luke Wagner bddd0c80c3 Bug 684110 - Clean JSObject::clasp usage (r=pbiggar) 2011-09-02 17:23:26 -07:00
Jeff Walden fe81a5cc42 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 d312d3d392 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 0d48cdc3a6 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 f62341b01f 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 d8a23919cc Merge mozilla-central to tracemonkey. (CLOSED TREE) 2011-05-02 10:55:34 -07:00
Jeff Walden 6651742a72 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 1b17519a11 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 cda417f819 Bug 640494 part 2 - Use bitwise operations in JSDOUBLE_IS_* functions. r=jimb 2011-04-27 08:23:21 +02:00
Mike Hommey b5066cd3af Backout changeset d29e1e37e7c2 from bug 640494 because of jsreftest orange on Win opt builds 2011-04-23 13:06:48 +02:00
Jason Orendorff cd1ed7b90b 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 ee5173d043 Bug 613457 - clean up string interfaces (r=njn)
--HG--
extra : rebase_source : 3e77b67fa9fe2cc31312ad99951cf92258a98e64
2011-03-14 13:59:53 -07:00
Chris Leary 123d5c9b50 Bug 617935: Check string lengths using StringBuffer. (r=lw) 2011-01-12 15:28:58 -08:00
Luke Wagner e4bb2ca2a9 Bug 609440, part 4 - make JSString::chars() fallible (r=waldo,dvander,igor,dwitte,njn) 2010-12-06 10:26:58 -08:00
Luke Wagner 2c79d78867 Bug 610848 - merge js::Int32ToString and js_IntToString (r=waldo) 2010-11-10 11:43:22 -08:00
Luke Wagner fb99e20a23 Bug 608120 - optimize js_ValueToString on int32s (r=waldo) 2010-11-08 14:35:27 -08:00
Tom Schuster b9dee24ffe 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 c7afa7d50c Bug 597814 - Optimize js_DoubleToECMAInt32 for MSVC and gcc x86_64. r=dvander 2010-09-24 20:19:43 -04:00
Nicholas Nethercote 8883e09bc0 Bug 590834 - Clean up number-to-string code. r=jwalden. 2010-09-13 13:08:25 -07:00
Jeff Walden 9d21641d64 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 c16733e4ee Bug 579647 - use canonical nan in js_dmod (r=dvander) 2010-07-19 11:28:13 -07:00
Luke Wagner 7371ad00ed Bug 549143 - fatvals 2010-07-14 23:19:36 -07:00
Andreas Gal 811ac4cf75 fast object iteration (558754, r=brendan, CLOSED TREE). 2010-05-07 17:52:52 -07:00
Jacob Bramley 7505753561 Optimize DoubleToECMAInt32 for ARM. [Bug 551837][r=vlad] 2010-04-27 08:31:36 +01:00
Nicholas Nethercote 7efff77732 Bug 559250 - encapsulate JSSLOT_{PRIMITIVE,DATE,REGEXP}_* within JSObject (take 2). r=brendan. 2010-04-14 18:57:30 -07:00
Nicholas Nethercote 54381c3e54 Backed out changeset 681b0067e61b due to massive breakage 2010-04-14 17:09:17 -07:00
Nicholas Nethercote e5b1652906 Bug 559250 - encapsulate JSSLOT_{PRIMITIVE,DATE,REGEXP}_* within JSObject. r=brendan. 2010-04-14 16:18:03 -07:00
Luke Wagner 41c5fe3a22 Bug 552574 - de-mystify js_ValueToNumber API (r=igor) 2010-04-07 13:18:50 -07:00
Boris Zbarsky 3b86a2a5d1 Bug 551118 followup. Need to conver spaces to 0, not NaN. r=jorendorff 2010-03-10 12:12:43 -05:00
Robert Sayre 66f3f0f7a3 Merge tracemonkey to mozilla-central. 2010-03-26 15:53:14 -07:00
Boris Zbarsky bead9e13c5 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 24792db2ba Bug 529846 check-3d-raytrace.js failed on Solaris x86 r=jimb 2010-03-23 14:41:52 +08:00
Igor Bukanov 26a8e5a8ea bug 524346 - using jsval, not jsdouble *, for nan and +-oo. r=brendan 2009-10-28 14:57:31 +03:00
Igor Bukanov 4532c5ebba Backed out changeset 14c76164f4c2 - patch for bug 524346 caused test fails 2009-10-27 19:21:47 +03:00
Igor Bukanov 9b985d2bb0 bug 524346 - using jsval, not jsdouble *, for nan and +-oo. r=brendan 2009-10-27 13:26:57 +03:00
Leon Sha ae81c49ddb 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 2212980352 Bug 513208 - Tracemonkey build failed on solairs at jsnum.h. r=gal 2009-08-31 11:21:51 +08:00
Andreas Gal eecea06b7d Inline js_DoubleToInteger (513436, r=sayrer). 2009-08-29 02:36:45 -07:00
Graydon Hoare 460c3670d7 Bug 513063 - Followup to fix windows breakage, r=jorendorff. 2009-08-27 15:54:40 -07:00
Andreas Gal f483c0df4c Build fix for 513063. 2009-08-27 15:34:20 -07:00
Andreas Gal b81459e291 Avoid bit twiddling on double values (513063, r=brendan). 2009-08-27 13:59:19 -07:00
Andreas Gal 39e7c42514 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 b499895248 Build fix for bug 512049. 2009-08-24 22:00:30 -07:00