Bill McCloskey
a4f9ab0da8
Bug 609104 - Move the property tree to the compartment (r=brendan)
2011-01-27 15:46:39 -08:00
Jason Orendorff
ec712fc18c
Return the new shape from methodWriteBarrier instead of searching for it again. Bug 623863, r=brendan.
2011-01-17 11:30:08 -06:00
Jason Orendorff
f224da500c
Bug 559653 - Record assignment before the interpreter goes, mostly. This reduces record_SetPropHit to a narrower callback, record_AddProperty. r=brendan.
...
--HG--
rename : js/src/jsapi-tests/testSetPropertyWithNativeGetterStubSetter.cpp => js/src/jsapi-tests/testSetProperty.cpp
2011-01-14 16:18:53 -06:00
Bill McCloskey
238069d8ff
Bug 623050 - Move tracerState to compartment (r=gal)
2011-01-12 16:56:23 -08:00
Brendan Eich
0b7d9754dc
Get rid of JSOP_{GET,CALL}UPVAR and simplify code greatly (592202, r=jorendorff).
2010-12-29 23:46:50 -08:00
Nicholas Nethercote
42704598e2
Bug 610070 - Large amount of heap allocation from js::PropertyTable::init. r=brendan.
2011-01-03 17:14:55 -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
Nicholas Nethercote
1f1fbee591
Backed out changeset 0343557b0c7a due to orange.
2010-12-13 18:43:11 -08:00
Nicholas Nethercote
225d4f7e2d
Bug 610070 - Large amount of heap allocation from js::PropertyTable::init. r=brendan.
2010-12-13 16:43:39 -08:00
Brendan Eich
5eef9df0a1
Implement method thrash counting, at limit unbrand and stick count to limit; also, brand and unbrand return false on shape overflow, so call them that way instead of as if infallible (597864, r=dvander).
2010-11-22 17:58:53 -08:00
David Mandelin
7da6337736
Bug 601046: fix freelist maintenance and modify shapes in place in changeProperty, r=brendan
2010-12-06 16:27:39 -08:00
Jeff Walden
320e3a4d59
Bug 614325 - Make Shape::initRuntimeState not do its thing with macros, so that a text search for any of the empty*Shape fields actually shows the location where they're assigned. r=dvander
...
--HG--
extra : rebase_source : c9df7041b8c8c7f12dce958883f4162c87916cf7
2010-11-16 15:30:54 -08:00
David Mandelin
07a579a6d7
Fix MSVC warnings in jsscope.cpp
2010-11-23 14:40:29 -08:00
Brendan Eich
a611a4a1d3
bz/brendan patch to hash function-local shapes in dictionary mode due to too many locals (610370, r=brendan/bz).
2010-11-19 15:53:55 -08:00
Jeff Walden
82a86462f5
Backed out changeset b6486db91e91, lots of orange
2010-11-11 14:23:49 -08:00
David Mandelin
1d9fdc0aba
Bug 610480 part 3: silence a last few MSVC warnings
2010-11-11 12:17:08 -08:00
Jim Blandy
f27d13f045
Bug 602139: Add js_UpdateWatchpointsForShape, to correctly update watchpoints after shape changes. r=jorendorff
...
Many of the watchpoint bugs have to do with wp->setter and wp->shape
getting out of sync. The new function js_UpdateWatchpointsForShape takes
care of bringing all relevant watchpoints fully up to date; it is called
from the places in jsscope.cpp where property changes take place, and is
also used by the watchpoint creation code. DropWatchPointAndUnlock becomes
simpler; js_FindWatchPoint, js_WrapWatchedSetter and js_watch_set_wrapper
become static to jsdbgapi.cpp.
2010-11-09 15:04:12 -08:00
Boris Zbarsky
c5a2cf663d
Backed out changeset 298e753a1726 (bug 610370) due to test orange.
2010-11-08 16:45:51 -05:00
Boris Zbarsky
4f8630a253
Bug 610370. Make sure to hash shapes in dictionary lists too, if they need it. r=brendan, a=shaver
2010-11-08 15:18:18 -05:00
Igor Bukanov
92b67c9caf
bug 607695 - Avoid unnecessary JS_GetStringBytes. r=gal
2010-10-28 17:15:53 +02:00
Brendan Eich
2c853ae9ce
Property enumeration order is altered after a method has been read (601399, r=jorendorff).
2010-10-26 19:12:40 -07:00
Brendan Eich
54fd156cb3
PropertyTable::{init,change} should use js_calloc/js_free, and JSObject::addPropertyInternal should report OOM on change failure (606880, r=anygregor).
2010-10-24 19:24:53 -07:00
Jason Orendorff
596862d852
Remove JSObject::title. Bug 606029, r=igor.
2010-10-22 19:04:22 -05: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
Brendan Eich
131feb1587
fun->u.i.names is incorrect when a local function shadows an argument (600067, r=jorendorff).
2010-09-29 16:15:43 -07:00
Gregor Wagner
fdb731becb
Bug 558861 - Compartmental GC (r=gal)
2010-09-24 10:54:39 -07:00
Brendan Eich
c27e88caa4
Fix shape vs. slot management under putProperty, plus related layering and error reporting fixes (596805, r=jorendorff).
2010-09-16 11:56:54 -07:00
Jim Blandy
96d7c2007b
Bug 492849 - Implement Object.preventExtensions, Object.isExtensible. a=waldo,jimb, r=brendan
...
--HG--
rename : js/src/jsapi-tests/testSeal.cpp => js/src/jsapi-tests/testDeepFreeze.cpp
2010-09-21 11:35:29 -07:00
Brendan Eich
adfba421c2
Fix slot leak that leads to allocSlot assert botch (597945, r=jorendorff).
2010-09-21 00:04:25 -07:00
Robert Sayre
031267d073
Back out changeset d7d3c0af2877. Brendan Eich – Fix slot leak that leads to allocSlot assert botch (597945, r=jorendorff).
2010-09-21 00:44:17 -04:00
Brendan Eich
2f94ccfb1e
Fix slot leak that leads to allocSlot assert botch (597945, r=jorendorff).
2010-09-20 15:21:41 -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
Brendan Eich
95d5ebd4d3
Fix bogus assertion: "!shape->inDictionary()" (only if not shape->frozen(); 592217, r=jorendorff).
2010-09-20 08:01:06 -07:00
Brendan Eich
158b754944
JSFunction::addLocal never calls Shape::maybeHash (595918, r=jorendorff).
2010-09-13 18:44:34 -07:00
Brendan Eich
7bcb596924
Modularize to avoid inline vs. not ShapeHasher static woes (595615, r=dbaron)
2010-09-12 09:34:56 -07:00
Brendan Eich
2ac9654d21
Google Maps crash on tracemonkey branch (595365, precog a=jorendorff).
2010-09-11 23:55:25 -07:00
Brendan Eich
6ba6389297
Rename freeslot appropriately (593256 separated cosmetics-only patch, r=jorendorff).
2010-09-03 11:05:43 -07:00
Brendan Eich
30cbd0913a
Bugs in dictionary-mode property table maintenance (593256, r=jorendorff).
2010-09-02 18:46:11 -07:00
Brendan Eich
d7abc9c150
Eliminate JSObject::freeslot via monotonic lastProp->freeslot (592556, r=jorendorff,dvander).
2010-09-02 14:50:44 -07:00
Igor Bukanov
e353306519
bug 588016 - Avoid reporting OOM when background has not finished. r=anygregor
...
--HG--
extra : rebase_source : 7d6b09d93bdc463cf7d06d2cdbe09085fd0e4b4b
2010-09-07 23:08:20 +02:00
Robert Sayre
0308956e29
Backed out changeset e2e1ea2a39ce. (Igor Bukanov – bug 588016 - Avoid reporting OOM when background has not finished. r=anygregor)
2010-09-01 11:24:45 -07:00
Igor Bukanov
3232f601ce
bug 588016 - Avoid reporting OOM when background has not finished. r=anygregor
2010-08-19 21:28:12 +02:00
Luke Wagner
31c2aa44b4
Bug 592069 - handle deep bail from IteratorMore/method-write barrier (r=gal,dvander CLOSED TREE)
2010-08-31 11:33:30 -07:00
Brendan Eich
790ddc9e99
Merge JSScope into JSObject and JSScopeProperty (now js::Shape; bug 558451, r=jorendorff).
2010-08-29 11:57:08 -07:00
Robert Sayre
250c59eece
Reland: Bug 577648 - arguments.callee.caller does not work in FF 4 under certain circumstances.
2010-08-01 09:58:03 -07:00
Robert Sayre
9bae5e1079
Backout changeset 80382d88b92c. (Bug 577648 - arguments.callee.caller does not work in FF 4 under certain circumstances). The patch is righteous, but MSVC's behavior with a mere 3GB of addressable memory is not. Will reland soon.
2010-07-31 14:01:26 -07:00
Igor Bukanov
2019c722fb
bug 571789 - merging JSObjectOps and JSExtendedClass into JSClass. r=jorendorff
2010-06-12 18:29:04 +02:00
Andreas Gal
69df940a4e
Back out bug 580803.
2010-07-28 11:20:19 -07:00