Brian Hackett
20530cc76c
[INFER] Root dense array elements during conversion to slow array, bug 649152.
2011-04-24 07:56:56 -07:00
Brian Hackett
43c276be4a
[INFER] Bytecode SSA analysis, bug 650715.
2011-04-22 07:59:45 -07:00
Chris Leary
a7253cc393
Bug 654301: Better interned string API, take 2. (r=Waldo)
2011-05-17 12:15:12 -07:00
Brian Hackett
fe5aeaab19
Merge TM -> JM
2011-04-20 11:37:46 -07:00
Jan de Mooij
2c7be5f6d4
[INFER] Don't update initialized length when it's smaller than length, bug 651451
2011-04-20 19:43:30 +02:00
Jan de Mooij
d57740905e
[INFER] Update initialized length in array_pop_dense, bug 651451. r=bhackett
2011-04-20 18:10:59 +02:00
Igor Bukanov
8b0d367736
bug 605029 - ArenaHeader versus Arena<FreeCell> and other cleanups. r=wmccloskey
2011-04-20 07:30:10 +02:00
Brian Hackett
68b35100e1
Merge TM -> JM
2011-04-19 08:23:41 -07:00
Bill McCloskey
3c0cd83aa3
Bug 616666 - Use explicit stack for GC marking (r=gal)
2011-04-15 16:56:08 -07:00
Brian Hackett
eaf164a1c9
[INFER] Retest hoisted bounds checks after stub calls, bug 649693.
2011-04-14 21:59:32 -07:00
Brian Hackett
fc65b95530
Merge TM -> JM
2011-04-13 06:45:06 -07:00
Blake Kaplan
d7c603eab8
Bug 618176 - Skip multiple wrappers when deciding whether this object is an array. r=gal
2011-04-12 15:56:45 -07:00
Brian Hackett
83e8f1e4ab
Merge TM -> JM
2011-04-12 07:04:45 -07:00
Brian Hackett
7fc4e4971f
[INFER] Clear initialized length when changing clasp during array slowification, bug 648773.
2011-04-11 06:52:23 -07:00
Brian Hackett
3756228559
[INFER] Use both inline and dynamic slots for objects other than dense arrays, bug 648321.
2011-04-08 19:51:40 -07:00
Brian Hackett
012e3b1119
Merge TM -> JM
2011-04-08 19:27:14 -07:00
Brian Hackett
1411ab0bed
[INFER] Fix bogus assert, bug 648499.
2011-04-08 16:04:44 -07:00
Brian Hackett
814665de9f
[INFER] Fix cases where dense arrays have initialized length < capacity with disabled inference, bug 648357.
2011-04-07 17:14:15 -07:00
Brian Hackett
4226ea1e6e
[INFER] Array bounds check hoisting, cleanup, bug 618690.
2011-04-05 18:12:03 -07:00
Brian Hackett
6e57f07678
[INFER] Revert broken, pointless optimization to EnsureDenseArrayCapacity, bug 647524.
2011-04-03 15:56:37 -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
Brian Hackett
8b7888dd66
Merge TM -> JM
2011-04-01 19:57:28 -07:00
Brian Hackett
a1f196a052
[INFER] More fixes for stock JM behavior, bug 647048.
2011-04-01 17:26:34 -07: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
Brian Hackett
b447aaf9bb
[INFER] Restore stock JM behavior with inference off, bug 647048.
2011-03-31 18:11:41 -07:00
Jeff Walden
eba19e34f0
Remove the unused js_CoerceArrayToCanvasImageData. rs=luke
...
--HG--
extra : rebase_source : 040d3f596b2dcc1fa38c77d9cf16c484e252a243
2011-06-09 01:12:28 -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
Chris Leary
7922cf2289
Merge mozilla central and tracemonkey.
2011-06-20 16:49:20 -07:00
Jeff Walden
e84bb50504
Bug 662946 - Remove various headers from INSTALLED_HEADERS that shouldn't be there. r=jimb
...
--HG--
extra : rebase_source : a6028a859cac4625ef2f3227ce0fa3159b5e8556
2011-06-09 01:12:21 -07:00
Brian Hackett
d737bb3ddb
Merge TM -> JM
2011-03-22 18:07:31 -07:00
Luke Wagner
774c050740
Bug 602994 - Preparatory syntactic cleanup (r=waldo)
2011-04-08 10:52:48 -07:00
Brian Hackett
2f766cc940
[INFER] Avoid INT_TO_JSID overflow when deleting element in array_shift, bug 642979.
2011-03-19 09:45:05 -07:00
Jeff Walden
faf5216de3
Bug 635389 - Check for overrecursion in functions that might need it. r=jorendorff
...
--HG--
extra : rebase_source : 72d6f2c915a4aa19e9820ea4f66039f75421c32d
2011-04-18 16:50:46 -04: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
Bill McCloskey
4a9bde3182
Bug 648647 - Eliminate JSObjectMap (r=jorendorff)
2011-04-08 14:21:08 -07:00
Brian Hackett
707a3eae96
[INFER] Improve type handler precision for Array.{slic,pop,shift}, bug 642412.
2011-03-18 08:17:22 -07:00
Brian Hackett
537b627fc2
[INFER] Use the 'this' array type as the result in Array.concat, bug 642412.
2011-03-18 07:56:50 -07:00
Brian Hackett
9d86c615fc
Merge TM -> JM
2011-03-14 22:41:04 -07: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
Andreas Gal
0dec3716f6
Inline GC mark path (bug 639729, r=billm).
2011-03-13 18:13:52 -07:00
Brian Hackett
6279a0e820
[INFER] Fix incorrect uses of getDenseArrayCapacity, bug 640203.
2011-03-10 09:56:51 -08:00
Brian Hackett
d639ada378
Merge TM -> JM
2011-03-09 09:58:49 -08:00
Brian Hackett
6f2c05af08
[INFER] Stronger type-correctness assertions when setting or getting properties, bug 619693.
2011-03-06 15:35:09 -08:00
Brian Hackett
ca1935e670
[INFER] Remove isTypeCallerMonitored and rejoin from native calls triggering recompilation, bug 638977.
2011-03-05 17:13:40 -08:00
Brian Hackett
801f764f4c
[INFER] Fixes from botched merge.
2011-03-03 21:24:13 -08:00
Brian Hackett
41091b1bb6
[INFER] Fix OOM handling in type inference, convert inference to runtime option, bug 637674.
2011-03-03 14:07:48 -08:00
Jeff Walden
fb232cee35
Bug 657665 - Add documentation comments to ArgumentsObject detailing its structure, and add ArgumentsObject::getElement{,s} to abstract attempting to speedily get the value of one or more elements. r=bhackett
2011-05-18 11:45:27 -07:00
Brian Hackett
e5020a35b3
[INFER] Condense type information during GC, bug 613221.
2011-03-01 13:10:05 -08:00
Brian Hackett
0a2cdd3c56
Merge TM -> JM
2011-02-25 18:21:43 +13:00
Jeff Walden
ff7d62dfcb
Bug 637905 - Add (asserted-infallible) append methods to js::Vector, for use when the vector in question has previously had space reserved, and use them a bunch of places. r=luke
...
--HG--
extra : rebase_source : 89002f1cb5160d89e90a22e54bdca1d57bf9deda
2011-02-18 18:32:29 -08:00
Jeff Walden
208cb6e474
Bug 645468 - Remove js_TryMethod: its semantics aren't what most of its users want, and its utility is limited. r=luke
2011-03-28 20:01:53 -07:00
Andreas Gal
532405b940
Remove ObjectOps trace hook (bug 639227, r=dvander).
2011-03-06 22:31:43 -08:00
Andreas Gal
831efbf9e8
Backout bug 639227 due to orange.
2011-03-06 21:37:13 -08:00
Andreas Gal
52c4d6513a
Remove ObjectOps trace hook (bug 639227, r=dvander).
2011-03-06 20:49:54 -08:00
Nicholas Nethercote
ce865cc77b
Bug 600734 - TM: some jstracer.h clean-ups. r=dmandelin.
2011-03-03 19:59:00 -08:00
Jason Orendorff
1536d9bc2e
Remove bogus assertions in the tracer and in ArrayCompPushImpl helper function. Bug 630377, r=brendan.
...
--HG--
extra : rebase_source : 1ed9f873b630f7078f275846d95fbd68b4daeabe
2011-02-17 16:10:10 -06:00
Jim Blandy
ab7774dd66
Bug 537873: Throw errors when strict mode code assigns to an array's length and the truncation would delete non-configurable elements. r=brendan
...
This is the patch that actually fixes the bug.
2011-02-09 11:31:40 -08: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
Bill McCloskey
667b23ee82
Bug 629817 - Add an AutoShapeVector to root shape vectors on the stack (r=luke)
2011-02-07 12:06:32 -08:00
Igor Bukanov
f4c246e790
bug 627016 - remove JSProperty out param from DefineNativeProperty. r=jorendorff
...
--HG--
extra : rebase_source : 673c7471fc963cb59d11ab667bd9e8523297617a
2011-01-21 14:10:16 +01:00
Brian Hackett
b5bb63ceba
[INFER] Decouple type sets computed by inference from analysis information, store in new TypeScript struct, bug 621301.
2010-12-28 14:53:50 -05:00
Brian Hackett
0f5a5837ad
[INFER] Write barrier for sets to length on non-array objects in array natives, bug 619338.
2010-12-22 22:03:22 -08:00
Brian Hackett
f658ee07dd
[INFER] Remove guessing mechanism for unpacked arrays.
2010-12-22 17:02:24 -08:00
Brian Hackett
cde265e645
[INFER] Fixes for jstests, bug 620599, part 2.
2010-12-21 18:26:09 -08:00
Brian Hackett
f3bd6ce93f
[INFER] Fixes for jstests, bug 620599, part 1.
2010-12-21 07:32:21 -08:00
Brian Hackett
637c0ef693
[INFER] Fixes for botched merge.
2010-12-20 12:10:57 -08:00
Brian Hackett
5c9d6cbdb0
[INFER] Account for 'new' case in non-constructor type handlers, bug 618853.
2010-12-20 10:13:39 -08:00
Brian Hackett
89bb1d08e8
Merge TM -> JM
2010-12-20 09:06:43 -08:00
Brian Hackett
d765093435
[INFER] Unwind getProto() changes outside of JS, fix test failures, bug 619271.
2010-12-19 12:21:15 -08:00
Brian Hackett
baf09eaede
[INFER] Objects with same shape have same type, objects with same type have same prototype, bug 619271.
2010-12-18 20:44:51 -08:00
Brian Hackett
582da529de
Don't call setProperty from dense array defineProperty, bug 618350. r=waldo
2010-12-16 13:33:49 -08:00
Brian Hackett
b1539be336
[INFER] Handle non-array arguments to Array.concat, bug 617750.
2010-12-13 11:15:56 -08:00
Brian Hackett
0e9b3e328d
[INFER] Fix incorrect uses of getDenseArrayCapacity in array_concat, CloneDensePrimitiveArray, and stubs::GetElem.
2010-12-11 07:30:44 -08:00
Brian Hackett
49c41c0cad
[INFER] Fix incorrect use of getDenseArrayCapacity, bug 617745.
2010-12-11 07:07:02 -08:00
Luke Wagner
475caef8f2
Bug 647425 - Don't try to use js_PrototypeHasIndexedProperties in GetElements; its wrong for arguments objects (r=waldo)
2011-04-07 20:35:02 -07:00
Brian Hackett
89185c8d55
[INFER] Fix botched merge.
2010-12-08 06:52:49 -08:00
Brian Hackett
accdca294b
Merge TM -> JM
2010-12-07 17:11:37 -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
Brian Hackett
002fd1a589
Merge TM -> JM
2010-11-30 09:04:25 -08:00
Brian Hackett
abc31759f4
[INFER] Overhaul handling of prototypes in type inference, bug 557407.
2010-11-24 20:41:52 -05:00
Jan de Mooij
2c0fa33d2e
Bug 614070 - Fix Array.prototype.unshift to always set the new length on this. r=jwalden
...
--HG--
extra : rebase_source : ee4b0898778b2646087405b177be891867f16380
2010-11-24 23:22:44 +01:00
Brian Hackett
36efb56b2b
Analysis and recompilation tuning for SS, bug 608746.
2010-11-20 15:45:52 -08:00
Brian Hackett
ee3f068ff9
Merge TM -> JM
2010-11-18 21:09:24 -08:00
Chris Leary
3ef296cd53
Tracer build fixes. (b=588021, r=dvander)
2010-11-23 13:58:34 -08:00
David Mandelin
7fbeca4035
Bug 570385: notify iterators of dense array property deletion in DeleteArrayElement, r=igor
2010-11-19 17:01:26 -08:00
Brian Hackett
e225da4233
Merge TM -> JM.
2010-11-12 09:02:43 -08:00
Brian Hackett
4fa8fa4840
[INFER] Type inference fixes for generators, typed arrays, monitoring, ... bug 557407.
2010-11-09 14:40:10 -08:00
Brian Hackett
fb8384eed2
[INFER] Introduce packed arrays, bug 604045.
2010-11-05 07:37:09 -07:00
Brian Hackett
d0775091ec
Merge TM -> JM
2010-11-01 15:37:33 -07:00
Brian Hackett
696cff5132
[INFER] Javascript type inference, bug 557407.
2010-10-29 08:05:55 -07:00
Nicholas Nethercote
505e8ac40a
Bug 602703 - TM: create a layer over Nanojit's LIR creation API. r=lw.
2010-10-28 18:28:36 -07:00
Jeff Walden
ca6294d553
Bug 607148 - Remove unnamed namespaces from SpiderMonkey code. rs=luke
2010-10-25 16:47:11 -07:00
Jason Orendorff
bfaf004fd7
Merge.
2010-10-22 19:11:26 -05:00
Jason Orendorff
596862d852
Remove JSObject::title. Bug 606029, r=igor.
2010-10-22 19:04:22 -05:00
Andreas Gal
a4b0c37cda
Remove obsolete wrappedObject extended class hook (604523, r=mrbkap/vlad/dvander).
2010-10-22 15:40:11 -07:00
Igor Bukanov
f110aa58b7
bug 603318 - make dense array slow during array growth, not during the GC. r=bhackett
2010-10-14 16:12:19 +02:00
David Mandelin
bf0a0f2c33
Bug 614915: set return value correctly when sorting a list containing only undefined values, r=cdleary
2010-11-30 10:25:07 -08:00
Tom Schuster
457468224a
Bug 373118 - Fix handling of explicitly-provided |undefined| as an optional argument to various JS functions ([].sort, [].slice, "".slice, "".substr, "".substring). r=jwalden
2010-10-21 15:02:02 -07:00
Andreas Gal
6e672eda05
Backed out changeset 438afef93fd5 (bug 604523) due to suspected orange.
2010-10-20 23:19:05 -07:00
Andreas Gal
e5f45d98a2
Remove obsolete wrappedObject extended class hook (604523, r=mrbkap/vlad/dvander).
2010-10-20 22:41:35 -07:00