Brian Hackett
5ab7972159
Fast native constructors, bug 579471.
2010-08-03 12:20:48 -07:00
David Mandelin
d7f6c4209b
Merge from Tracemonkey.
2010-08-02 15:55:29 -07:00
Brendan Eich
b35106fd7e
Bug 664009 - Fix a minor array bug that happens to break some code. r=jwalden, a=clegnitto
2011-06-14 16:07:29 -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
Luke Wagner
b23d605527
Bug 579183 - loosen-up StackSegment invariants - part 5 - CallArgs (r=waldo)
...
--HG--
extra : rebase_source : 4031cc1def70bef58bfa759a4cc90af06adfc9cd
2010-07-30 10:41:03 -07:00
David Mandelin
4c5a188923
[JAEGER] Merge from Tracemonkey.
2010-07-29 13:23:33 -07:00
Igor Bukanov
4eff9db05f
bug 579957 - parent as a field in JSObject. r=lw
2010-07-29 19:11:27 +02:00
Brian Hackett
e56731d546
JM: OOL fast path for setting array holes, bug 580355
2010-07-28 13:07:26 -07: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
b4a4d8d48e
bug 579957 - parent as a field in JSObject (relanding after wixing bug 583404). r=lw
2010-07-31 11:54:01 +02:00
Andreas Gal
98a47a4f07
Array.prototype lost its length property (583429, r=brendan).
2010-07-30 18:24:03 -07:00
Robert Sayre
c7bd912564
Backed out changeset d8bbb2ef3038. (Igor Bukanov – bug 579957 - parent as a field in JSObject. r=lw)
2010-07-29 18:11:41 -07:00
Robert Sayre
c62ccd686b
Backed out changeset b404ad209cb9. (Bug 587257 - Make Array.prototype.join faster. r=lw)
2010-08-23 19:20:46 -04:00
Robert Sayre
640b1f3097
Bug 587257 - Make Array.prototype.join faster. r=lw
2010-08-23 16:28:36 -04:00
Igor Bukanov
2019c722fb
bug 571789 - merging JSObjectOps and JSExtendedClass into JSClass. r=jorendorff
2010-06-12 18:29:04 +02:00
Igor Bukanov
a69fd0a49f
bug 571789 - merging JSObjectOps and JSExtendedClass into JSClass. r=jorendorff
2010-06-12 18:29:04 +02:00
Andreas Gal
988aed587b
Don't read past capacity in js_IsDensePrimitiveArray (582451, r=brendan).
2010-07-27 22:43:49 -07: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
Andreas Gal
d23600e449
Bug 582081 - Dense array patches regressed empty Array creation on Dromaeo. r=jwalden
2010-07-27 16:42:58 -07:00
Brendan Eich
794e678554
Arguments.callee.caller does not work in FF 4 under certain circumstances (577648, r=jwalden).
2010-07-23 14:41:56 -07:00
Jeff Walden
8dd21fe50e
Bug 562448 - Function.prototype.apply should accept any arraylike arguments. r=brendan
...
--HG--
extra : rebase_source : 1c6fc72b2b6a30d18e15c30ff84fa529e70709b0
2010-07-16 14:53:37 -05:00
Igor Bukanov
248a67333b
bug 579100 - various GC cleanups. r=anygregor
2010-07-26 20:44:04 +02: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
Andreas Gal
c9bde05bd6
Always allocate dslots for dense arrays (580877, r=njn).
2010-07-23 15:29:02 -07:00
Brendan Eich
1813531fe8
Back out patch for bug 577648, need to fix a leak.
2010-07-23 14:21:50 -07:00
Brendan Eich
72e638d9ef
arguments.callee.caller does not work in FF 4 under certain circumstances (577648, r=jwalden).
2010-07-10 11:48:00 -07:00
Andreas Gal
817e9fe04a
Remove hole count from dense arrays (580846, r=njn).
2010-07-22 18:45:21 -07:00
Igor Bukanov
246300e968
bug 576596 - removal of JSObjectOps::(call|construct|hasInstance). r=jorendorff
...
--HG--
extra : rebase_source : 8fd09ab6bfb4daece7a27b9a46097ae74bdc055c
2010-07-07 09:53:50 +02:00
Luke Wagner
53a742ae98
Bug 579598 - Help GCC out in array_splice (r=waldo)
2010-07-20 20:27:15 -07:00
Jeff Walden
e26b5f2fa5
Bug 562446 - ES5: Array.prototype.toString and Array.prototype.toLocaleString should be generic. r=igor
...
--HG--
extra : rebase_source : 003f392af828817cba1d1153c2ed5d4e5402f5c3
2010-07-15 12:33:33 -05:00
Jeff Walden
31e6cfd5e7
Er, really fix DEBUG_jwalden code. r=tpyo
...
--HG--
extra : rebase_source : 957de112c57250d4244883eada9561cc76b49006
2010-07-16 14:10:47 -05:00
Jeff Walden
eb0c1f7fb0
Fix DEBUG_jwalden code for fatvals. r+sr+ui-r+a=mconnor per firebot2 (an evil doppelgänger?)
2010-07-15 14:28:56 -05:00
Luke Wagner
99411cc93d
Bug 549143 - fatvals
2010-07-14 23:19:36 -07:00
Igor Bukanov
fe84ed0d56
bug 572494 - removal of JSObjectOps::defaultValue, r=jorendorff
2010-07-07 09:53:47 +02:00
Robert Sayre
34b4182b78
Merge mozilla-central to tracemonkey.
2010-07-08 18:15:52 -07:00
Jeff Walden
e8e463d19c
Bug 631098 - Ensure slow arrays always have a length property. r=brendan, a=b
2011-02-03 11:04:14 -08:00
Bill McCloskey
8e7e07dfaa
Bug 623297 - Make JS_TRACE_MONITOR more robust by distinguishing callers (r=gal)
2011-02-01 10:18:06 -08:00
Bill McCloskey
3c8509742b
Bug 623297 - Reduce usage of JS_TRACE_MONITOR in jstracer (r=gal)
2011-02-01 10:16:44 -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
David Mandelin
618cf9a71d
Bug 624041: skip elements deleted via shift or reverse in iteration, r=igor
...
--HG--
extra : rebase_source : 4e6862e68ee808b172c782412a2983ad0ea5ac4a
2011-01-10 18:39:46 -08:00
Luke Wagner
75d92493c9
Bug 626526 - Change cx->busyArrays to use SystemAllocPolicy; avoid JSContext init subtleties (r=pbiggar)
2011-01-24 09:47:25 -08:00
Bill McCloskey
238069d8ff
Bug 623050 - Move tracerState to compartment (r=gal)
2011-01-12 16:56:23 -08:00
Chris Leary
29a4e97a8f
Bug 617935: Check string lengths using StringBuffer. (r=lw)
2011-01-12 15:28:58 -08:00
Jeff Walden
d7667cbf66
Back out 72ac46e9f64e for orange. r=bustage
2011-01-11 15:04:36 -06:00
David Mandelin
3933a8dec7
Bug 624041: skip elements deleted via shift or reverse in iteration, r=igor
2011-01-10 18:39:46 -08:00
David Mandelin
7ad6a4c643
Backed out changeset 000cb7431848 -- bad commit messaage
2011-01-11 11:42:29 -08:00
David Mandelin
28e3bcfb71
[mq]: fix-iter.diff
...
* * *
[mq]: fix-iter2.js
* * *
[mq]: itertest.js
2011-01-10 18:39:46 -08:00
Paul Biggar
602b3440e8
Bug 623859 - Add missing OOM checks during array allocation (r=lw)
2011-01-07 18:55:35 -08:00
Luke Wagner
b30b771200
Bug 619970 - Use the correct magic-value code in GetElement (r=waldo)
2011-01-03 09:06:26 -08:00
timeless@mozdev.org
2338f1f744
Bug 575024 JSObject::resizeDenseArrayElements comparison is always false due to limited range of data type
...
r=dvander
--HG--
extra : rebase_source : 2be13535bf494080eb098ab4c4f9008d7a6feb88
2010-06-28 13:22:52 +03:00
Igor Bukanov
b9b1577eec
bug 630209 - (Compile|Execute)Script that are GC-safe. r=jorendorff
2011-02-03 14:06:21 +01:00
Chris Leary
089bf2c468
Back out bug 654301 to run again on try.
2011-05-16 19:03:20 -07:00
Chris Leary
338cf025af
Bug 654301: Better interned string API. (r=Waldo)
2011-05-16 18:18:59 -07:00
Brian Hackett
16873a1fb8
Bug 579471 - fast constructors (r=dmandelin,lw)
2010-08-10 16:38:08 -07:00
Igor Bukanov
02fc618d59
bug 566836 - eliminating JSObjectOps::dropProperty. r=gal
...
--HG--
extra : rebase_source : cdffca0a863d8a3dddbc77335fc3cdac2eff9f4b
2010-06-05 23:24:54 +02:00
Jeff Walden
2a8187e20b
Bug 548671 - Stop using shared-permanent properties "inherited" from the prototype to represent (function(){}).length and [].length. r=jorendorff
...
--HG--
extra : rebase_source : c5d48e4fe489f9e350798b49bed70f763e3abf37
2010-06-02 23:44:24 -07:00
Andreas Gal
64497c9a69
Suppress deleted properties during iteration (569735, r=brendan).
2010-06-03 21:41:01 -07:00
Jeff Walden
3ceb4d071b
Bug 569471 - Rename js_GetWrappedObject to JSObject::wrappedObject. r=jorendorff
2010-06-01 15:59:02 -07:00
Jason Orendorff
a1e58bc1c7
Back out changeset 96dbe8a784f1 (bug 569735) due to failing tests.
2010-06-02 23:48:22 -07:00
Andreas Gal
a17cfb3b61
Suppress deleted properties during iteration (569735, r=brendan).
2010-06-02 20:11:56 -07:00
Robert Sayre
def349ad75
Merge mozilla-central to tracemonkey.
2010-05-24 09:05:39 -07:00
Michael Kohler
5f19df86e0
Bug 564091: Fix spelling of nonexistent across the tree. r=timeless
...
--HG--
extra : rebase_source : 4f15f7fd6f90926b77d136be83af7f22c5ffa830
2010-05-23 12:26:15 -07:00
Luke Wagner
9b49d62378
Bug 540706 - use contiguous buffer for stack frames and slots (r=waldo)
2010-03-03 17:52:26 -08:00
Luke Wagner
6a6afd60ce
Backed out changeset 23efaeb8652b
2010-05-13 02:21:27 -07:00
Luke Wagner
98a7dc9ea6
Bug 540706 - use contiguous buffer for stack frames and slots (r=waldo)
2010-03-03 17:52:26 -08:00
Andreas Gal
2004c301c3
fast object iteration (558754, r=brendan, CLOSED TREE).
2010-05-07 17:52:52 -07:00
Nicholas Nethercote
45f5c025d0
Bug 563210 - "Assertion failure: isDenseArrayMinLenCapOk()," with gc, gczeal, Array, defineGetter. r=brendan.
2010-05-04 17:29:42 -07:00
Robert Sayre
1e491a700b
Merge.
2010-05-03 12:32:11 -04:00
Robert Sayre
df21a4aa06
Update dense array cloning with new factoring of getDenseArrayCapacity
2010-05-03 11:19:45 -04:00
Robert Sayre
2a89b5be4f
Merge mozilla-central to tracemonkey.
2010-05-03 11:03:37 -04:00
Nicholas Nethercote
1e5fc26c40
Bug 560774 - encapsulate array-related dslots accesses. r=brendan.
2010-04-26 18:33:36 -07:00
Andreas Gal
478f54cddf
remove useless date and array trace natives (563055, r=dvander).
2010-04-30 14:59:28 -07:00
Nicholas Nethercote
d8b33d0d5f
Bug 562571 - TM: don't have two bounds checks for array getelem. r=brendan.
2010-04-29 20:22:33 -07:00
Nicholas Nethercote
225ae34fc8
Bug 562251 - JSSLOT_ARRAY_COUNT isn't used for slow arrays. r=brendan.
2010-04-28 18:35:22 -07:00
Nicholas Nethercote
58fd901fa9
Bug 556165 - dead code in array_shift(). r=jwalden.
2010-04-11 22:38:55 -07:00
Nicholas Nethercote
6bcbe2ea63
Bug 557713 - encapsulate JSSLOT_ARGS_* within JSObject. r=brendan.
2010-04-11 16:45:20 -07:00
Andreas Gal
a887d81302
Inline the object allocation path (558003, r=sayrer).
2010-04-10 16:16:35 -07:00
Luke Wagner
777b935aea
Bug 558144 - un-macroize OBJ_SCOPE, OBJ_SHAPE, LOCKED_OBJ_SET_SLOT, LOCKED_OBJ_GET_SLOT (r=Waldo)
2010-04-08 11:22:04 -07:00
Luke Wagner
b9f8c249e6
Bug 552574 - de-mystify js_ValueToNumber API (r=igor)
2010-04-07 13:18:50 -07:00
Nicholas Nethercote
26d8277a75
Bug 413730 - Replace all OBJ_GET_CLASS() macro calls with JSObject::getClass() calls. r=gal.
2010-04-07 16:09:49 -07:00
Nicholas Nethercote
4542317997
Bug 556187 - encapsulate JSSLOT_ARRAY_* within JSObject. r=brendan.
2010-04-05 18:32:16 -07:00
Robert Sayre
596f6ceff5
Bug 554850: silence JSBool -> bool conversion warnings in msvc. r=waldo
2010-04-01 16:54:57 -04:00
Nicholas Nethercote
795d4b8ad2
Bug 556353 - Remove OBJ_IS_NATIVE, HAS_FUNCTION_CLASS. r=brendan.
2010-03-31 22:13:51 -07:00
Jeff Walden
570eb3ecf8
Bug 538690 - js::AutoValueVector for auto-managed rooting and storage of an indefinite number of jsvals. r=igor
2010-03-01 14:46:15 -08:00
Nicholas Nethercote
1b2ab1f779
Don't pointlessly set fslots[JSSLOT_ARRAY_COUNT] to a integer jsval when converting a dense array to a slow array. no bug, r=brendan via IRC.
2010-03-30 20:19:41 -07:00
Nicholas Nethercote
684396fb91
Bug 555631 - Convert STOBJ_* macros to inline functions. r=gal.
2010-03-30 14:42:48 -07:00
Brendan Eich
34b1a91d97
Fix arguments objects to share a runtime-wide empty scope, instead of each getting a differently shaped own scope at birth (554626, r=igor).
2010-03-30 00:44:28 -07:00
Jeff Walden
d4b28272e8
Readd jsarray.cpp changes for bug 548702. array_sort in particular is a rat's-nest of complexity, so this file's changes are being pushed in isolation from all others. In the interest of getting the tree as pristine for morning, I'm pushing this now and letting it cycle while I sleep -- if it turns anything pretty colors, please back out. Otherwise, look for more in the morning...
2010-03-29 00:02:13 -07:00
Jeff Walden
0973dfd6ab
Merge.
2010-03-26 21:53:40 -07:00
Jeff Walden
95422c65a3
Backed out changeset e7065853ef79; I'll be repushing this incrementally, attempting to find the precise place where things go bad, in the near future. Happy days are here again! :-\
2010-03-26 18:01:54 -07:00
Luke Wagner
a1a73dd94d
Bug 551276 - a more type-safe way to zero memory (r=Waldo)
...
--HG--
extra : rebase_source : fc5564c34cde6490a1d3b48a16a451f7e50c052a
2010-03-10 15:34:12 -08:00
Jeff Walden
ace03add6c
More bustage fix, sigh
2010-03-09 15:38:41 -08:00
Jeff Walden
c723d157a5
Bustage fix, r=redness
2010-03-09 15:07:38 -08:00
Jeff Walden
106fbd8085
Bug 548702 - Temporary value-rooting scheme should be C++- and RAII-based, not macro-based. r=igor
...
--HG--
extra : rebase_source : c7bb34662dbd70df49d40880227139537c60356e
2010-01-11 11:52:21 -06:00
Mike Moening
0373a2437d
bug 549010 - fixing and silencing MSVC warnings. r=brendan,igor
2010-03-04 20:44:09 -08:00
Nicholas Nethercote
c8a754a27d
Bug 545274 - nanojit: start adding alias info to loads/stores/calls (TM-specific part). r=jseward.
2010-03-02 13:47:17 +11:00
Andreas Gal
7fc1c8efb0
Introduce ObjectOps for typeOf and make trace a mandatory ObjectOp (547314, r=brendan).
2010-02-22 16:30:22 -08:00
Jason Orendorff
68642d97db
Bug 547274 - js_InitArrayClass is not thread-safe. r=brendan.
...
--HG--
extra : rebase_source : 4b9ca0af846d7b77601ebbbf642941ffd136c9c8
2010-02-19 13:05:00 -06:00
Gregor Wagner
dc4711d401
BUG 545303: TM: non API function for JS_CallTracer r=igor
2010-02-18 13:16:02 -08:00
Luke Wagner
f8096c6b67
Try 784ceadd60e5 again with more #pragma optimize("", off)
2010-02-06 10:14:05 -08:00
Luke Wagner
fda9474440
Backout 784ceadd60e5 until PGO stops crashing
2010-02-08 10:28:07 -08:00
Luke Wagner
22b7692a6a
Bug 515812 - Double hashing template (r=jorendorff)
2010-02-06 10:14:05 -08:00
Igor Bukanov
836b8a84eb
bug 540805 - using reference counting only for empty scopes. r=jorendorff
2010-01-27 09:50:17 +03:00
Luke Wagner
2645ecd2da
Bug 541452 - put jstracer.cpp in namespace js (r=jorendorff)
2010-01-22 14:49:18 -08:00
Nicholas Nethercote
e36831cff7
Avoid bogus uninit variable warning. r=gcc.
2010-01-21 13:12:02 +11:00
Brendan Eich
398f5f3b9b
Bug 537204 - No more BOGUS_CX bogosities (r=jwalden).
2009-12-30 13:49:26 -08:00
Brendan Eich
e672f52623
Eliminate JSClass::reserveSlots and streamline new-object paths (535416, r=gal).
2010-06-18 17:43:02 -07:00
Nicholas Nethercote
6f97ec3b23
Bug 572945 - TM: dense arrays specify the wrong number of reserved slots (2
...
vs 3). r=gal.
2010-06-22 00:18:51 -07:00
Andreas Gal
56f83ce367
Slow arrays don't need custom objectops (571810, r=mrbkap).
2010-06-21 12:19:36 -07:00
David Mandelin
63421f8622
Bug 571595: make sure dense_grow always gets inlined, r=nnethercote
...
--HG--
extra : rebase_source : 14d00cd5356a3dc1fbc88fd305a2244584ac6889
2010-06-21 11:23:39 -07:00
Igor Bukanov
a3a94a3484
bug 572411 - removal of JSObjectOps::checkAccess. r=mrbkap
2010-06-17 14:32:26 +02:00
Blake Kaplan
f1be43a299
Bug 566651 - Actually store the result in vp. r=jorendorff
2010-06-08 09:12:52 -07:00
Igor Bukanov
dd52a42965
bug 526449 - marking the slow array as HAS_PRIVATE for simpler handling of JSSLOT_ARRAY_LENGTH. r=brendan
2009-12-13 22:06:04 +03:00
Robert Sayre
8dac81dafc
Merge
2009-12-01 15:51:22 -05:00
Robert Sayre
4ea539c658
Relanding: Bye-bye middle-deletes and their O(n^2) worst case complexity; hello dictionary-mode scopes (473228, r=jorendorff). Backed out changeset ee7bfc1923ad
2009-12-01 15:49:15 -05:00
Robert Sayre
8be5b171b9
Backed out changeset c03ebf340688. Bye-bye middle-deletes and their O(n^2) worst case complexity; hello dictionary-mode scopes (473228, r=jorendorff).
2009-12-01 09:56:16 -05:00
Robert Sayre
5d34830070
Backout bug 473228 and its follow-up, temporarily, to attempt a clean merge of other stuff.
2009-12-01 09:57:20 -05:00
Brendan Eich
c731045c51
Bye-bye middle-deletes and their O(n^2) worst case complexity; hello dictionary-mode scopes (473228, r=jorendorff).
2009-11-20 16:14:42 -08:00
Andreas Gal
574e4cf9f2
Properly reject new arrays with negative length (530617, r=jwalden).
2009-11-23 16:09:02 -08:00
Jason Orendorff
cd32782f94
Bug 505523 - Property cache can skip JSClass::resolve or JSClass::addProperty hooks. r=graydon, r=brendan.
...
--HG--
extra : rebase_source : a77b0e81203010aabe07b92b639762dce83200c0
2009-11-18 14:29:58 -06:00
David Mandelin
5ee0760ca7
Bug 519363 debugging followup: strip diagnostic instrumentation, r=lw
2009-11-09 16:57:47 -08:00
Robert Sayre
8218769bc0
Merge mozilla-central to tracemonkey.
2009-10-29 08:48:15 -07: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
Jason Orendorff
eed5fefef2
Bug 523670 - Add assertion to detect proto-less dense arrays. r=brendan.
2009-10-23 14:40:36 -05:00
Igor Bukanov
af1a5810f7
bug 505315 - constructing GC free lists during finalization. r=brendan
2009-10-16 10:10:54 +04:00
Igor Bukanov
9212853abd
Backed out changeset 487b81c753c0 - landing of bug 505315 caused talos crashes across platforms.
2009-10-15 13:53:40 +04:00
Igor Bukanov
0d37930589
bug 505315 - constructing GC free lists during finalization. r=brendan
2009-10-15 11:41:08 +04:00
David Mandelin
dbad0b0f5d
Bug 519363 - topcrash [@ js_Interpret], change some code to aid in debugging efforts. r=brendan
...
--HG--
extra : rebase_source : 51c16011f74f154bee8d124b2dedfd5f2f5a5a62
2009-10-07 17:30:34 -07:00
Andreas Gal
885547e4ed
Possible overflow in ResizeSlots on 64-bit systems (517644, r=jorendorff).
2009-10-06 15:24:12 -07:00
Igor Bukanov
79b9eab8cb
bug 520046 - eliminating "uintN flags" parameter from js_NewSomeGCThing functions. r=brendan
2009-10-02 12:21:19 +04:00
Igor Bukanov
3fa86d4157
Backed out changeset 19b4c1cacdb8 - everything related to bug 517199.
2009-10-01 16:10:42 +04:00
Igor Bukanov
fed9242625
bug 517199 - typed GC free lsists - newborn refactoring. r=brendan
2009-10-01 08:13:04 +04:00
Igor Bukanov
27c2d57074
bug 517749 - removal of weakRoots.newborn = null. r=mrbkap
2009-09-25 16:30:11 +04:00
Jeff Walden
12df1ce230
Bug 518663 - Fix some typos in JSAutoTempValueRooter uses. r=dvander
2009-09-24 14:48:24 -07:00
David Mandelin
99fb23d064
Bug 511695: Fix JS warnings in MSVC8, r=brendan
2009-09-23 11:16:30 -07:00
Jeff Walden
b7b5073917
I hate PPC, can we kill it? Hoping this will fix, --disable-jit is fail on my system
2009-09-22 17:55:58 -07:00
Jeff Walden
729fcd0f3d
I hate !JS_TRACER architectures. r=redness for the final time
...
--HG--
extra : rebase_source : f3e9e8f8bdfb50e68c7ae6f9ae271fd9bcf5b2eb
2009-09-22 17:12:21 -07:00
Jeff Walden
553915decf
Bug 307791 - Implement ES5's Object.keys(O). r=jorendorff
2009-09-08 15:59:14 -07:00
Brendan Eich
eaabbf253c
Bug 516075 - Move shape into JSObjectMap from JSScope, const-ipate and use LIR_ldc* to get to it (r=jorendorff).
2009-09-14 20:29:46 -04:00
Boris Zbarsky
16e03f7999
Bug 497794. Don't allocate two copies of the image data when doing GetImageData/CreateImageData, just to throw one away immediately. r=robarnold,jwalden
2009-10-26 16:57:41 -04:00
Luke Wagner
d72c89d060
Backed out changeset b866396faae4
2009-09-10 16:44:01 -07:00
Luke Wagner
e9357856b4
Bug 506410 - bring template lovin' to hash tables (r=jorendorff)
2009-09-10 16:16:29 -07:00
Blake Kaplan
adf434e70c
Bug 513428 - Ignore transparent wrappers when deciding if something is an array or not. r=brendan
2009-09-10 14:51:45 -07:00
Luke Wagner
6bfe9f9329
Bug 460904 - rename/tweak JSTraceableFunction (take 2)
2009-09-04 13:44:31 -07:00
Luke Wagner
3087376a4d
Backed out changeset 94da2f68afdb
2009-09-04 11:35:52 -07:00
Luke Wagner
52d822b6d2
Bug 460904 - rename/tweak JSTraceableFunction (r=jorendorff)
2009-09-03 11:57:14 -07:00
Brendan Eich
cce4dce512
Join lambdas assigned or initialized as methods to the compiler-created function object if we can, with a read barrier to clone on method value extractions other than call expressions (471214, r=jorendorff).
2009-09-03 14:41:19 -07:00
Jason Orendorff
d41212b7a6
Bug 514222 - js_GetMutableScope gives the scope a unique shape. r=brendan.
2009-09-02 17:58:25 -05:00
Brendan Eich
932d989110
Fix net vs. gross botches from patch for 489899 (514112, r=gal).
2009-09-01 22:54:02 -07:00
Igor Bukanov
b919139e8d
bug 511425 - removal of JSObjectOps.(get|set)RequiredSlot. r=brendan
2009-08-28 09:53:26 +04:00
Jason Orendorff
dafc9b5d2a
Bug 508685 - Remove last parameter of defineProperty op. r=brendan.
2009-08-26 14:28:36 -07:00
Brendan Eich
b063d31520
Back out changeset aff171a8c4f0 (bug 471214).
2009-08-26 09:34:41 -07:00
Brendan Eich
bd8f55c0ad
Join function objects where possible (471214, r=igor).
2009-08-25 23:42:37 -07:00
Andreas Gal
ebfe09b112
Fast path for writing a double into an array (511737, r=danderson).
2009-08-20 16:53:10 -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
Jeff Walden
3ee1d5026c
Bug 510537 - Implement Array.isArray, easiest ES5 feature evar. r=jorendorff
2009-08-14 03:23:07 -07:00
Igor Bukanov
7e607aac4d
bug 495061 - js_PutArgsObject and js_PutCallObject that never fail. r=brendan
2009-08-14 20:43:16 +02:00
Luke Wagner
fa2f83712c
Bug 507458 - clear the waters a bit regarding JSVAL_BOOLEAN
2009-08-12 16:39:23 -07:00
Jason Orendorff
9dc4a54a5d
Bug 498488 - Change some JSObject macros to methods. r=Waldo.
2009-08-11 15:05:44 -05:00
Luke Wagner
21205c39ce
Removed unnecessary null check before cx->free.
2009-08-11 11:10:44 -07:00
Luke Wagner
7470eaa57b
Bug 503952 - JSStringBuffer/JSCharBuffer with JSTempVector, part 1. r=jwalden
2009-08-07 20:09:11 -07:00
Jason Orendorff
1e09b59b10
Bug 509047 - Defining a property that forces a dense array to become sparse shouldn't call a setter. r=brendan.
2009-08-07 18:31:54 -05:00
Atul Varma
169e0bf289
Bug 505494 - Unwrap invisible wrappers when they're passed to Function.prototype.apply. r=mrbkap
2009-08-06 20:48:57 -07:00
Igor Bukanov
ef90f6f522
bug 493457 - uniform access to private slots. r=mrbkap, sr=jwalden
2009-08-04 23:06:55 +02:00
Robert Sayre
99a0962393
Backed out changeset e09130fcb013
2009-07-28 18:51:35 -04:00
Brendan Eich
8d27b07ec5
Bug 471214 - Join function objects transparently, clone via read barrier to satisfy de-facto standard (r=igor).
2009-07-28 13:20:14 -07:00
Andreas Gal
e7f2714ea1
When finalizing, deallocate memory in a separate thread (505612, r=bent,brendan,waldo).
2009-07-27 21:10:12 -07:00
David Mandelin
cfb0d1fd1b
Bug 506821: clean up trailing whitespace, r=brendan
2009-07-27 18:40:12 -07:00
Robert Sayre
9e0ade7287
Backed out changeset b3d459d23452
2009-07-24 00:01:37 -04:00
Andreas Gal
eb711234db
Use a background thread to free() memory while sweeping (505612, r=brendan,bent).
2009-07-23 15:12:34 -07:00
Robert Sayre
b8172c1402
Bug 503160 - integer constants are not automatically demoted. Patch by Andreas Gal and Robert Sayre. r=dvander/gal
2009-07-22 19:47:41 -04:00
Igor Bukanov
9534c3d315
bug 504033 - avoiding calling JSFinalizeStub. r=brendan
2009-07-22 18:23:21 +02:00
Andreas Gal
1af8dfb112
Avoid integer division in NewGCThing path (503157, r=jwalden).
2009-07-14 17:06:09 -07:00
Andreas Gal
f552010935
Make js_ValueToString inline (503669, r=jwalden).
2009-07-13 14:55:04 -07:00
Brendan Eich
f60779aef5
Bug 503343 - Change JSScope macros to methods. r=jorendorff
2009-07-09 15:27:21 -05:00
Luke Wagner
55ec9409d5
Bug 501834 - Regression on js1_5/Regress/regress-312588.js crash [@ JS_HashTableRawLookup]. r=jwalden
2009-07-06 13:02:43 -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
Benjamin Smedberg
c7cc8fde73
Bug 498398 - fast natives such as array_sort and many others must not be JS_REQUIRES_STACK, r=jorendorff
2009-06-25 15:12:19 -04:00
Benjamin Smedberg
3d4a869324
Bug 491988 - Annotation fixes required for analyzing JS_REQUIRES_STACK for function pointers, r=jorendorff
2009-06-25 15:12:19 -04:00
Ben Turner
0edf1180b5
Bug 559476 - Do a fast copy of dense primitive arrays when making a structured clone. r=mrbkap+jst.
2010-04-28 18:32:13 -07:00
Robert Sayre
967abe0d4d
Merge tracemonkey to mozilla-central.
2009-06-19 09:22:50 -04:00
Jason Orendorff
52fe5a97ba
Bug 497618 - Change JSString macros to methods. r=Waldo.
2009-06-10 20:29:44 -05:00
Jeff Walden
ae6248fe09
Fix bogus warnings from gcc thinking that js_GetLengthProperty doesn't always write its outparam by removing code from it and simplifying what remains -- WIN! No bug, r=gal
2009-05-29 14:57:32 -07:00
Igor Bukanov
92f94e451c
bug 491126 - sharing object map for non-native objects. r=brendan
2009-05-14 12:35:23 +02:00
Jeff Walden
6beac46a8b
Likely gmail bustage fix
2009-05-11 15:41:00 -07:00
Jeff Walden
8e5456999b
Bug 486326 - Specialize array methods which modify large numbers of array elements to work efficiently on dense arrays, avoiding highly generalized get/set/delete methods and the floating-point-to-integer conversions needed solely to handle large array indexes but which are rarely necessary in practice. r=shaver
2009-05-11 14:57:18 -07:00
nnethercote@mozilla.com
1f7e5c0ef5
kill builtins.tbl (479888, r=jorendorff).
2009-05-05 17:36:26 -07:00
jorendorff
93c6d226d3
Record all calls to native functions (487134, r=gal, brendan).
2009-05-05 14:26:06 -07:00
Andreas Gal
214ea26d91
Compilation fix for 489899.
2009-04-24 16:35:42 -07:00
Andreas Gal
a89bbaad23
Stay on trace when reading holes from dense arrays (489899, r=brendan).
2009-04-24 16:28:21 -07:00
Jeff Walden
d19e88a97f
Bug 488989 - Don't go slow if we don't have to. r=jorendorff
2009-04-23 13:34:18 -07:00
Jeff Walden
f10c82d6e3
Kick tinderboxen out of a Linux orange that looks bogus
2009-04-18 22:09:37 -07:00
Andreas Gal
adc0da147c
Merge.
2009-04-17 12:44:37 -07:00
Andreas Gal
da0094a55c
Backed out changeset 324bb9dc8372 (bug 487204 is implicated in top site failures).
2009-04-17 12:41:00 -07:00
Andreas Gal
6520b20732
Backed out changeset 5bd116148175 (attempting to re-land bug 487204).
2009-04-16 17:56:18 -07:00
Andreas Gal
3b10c56019
Backed out changeset d1a4ee3d0c59 (bug 487204, due to possible leak).
2009-04-16 12:19:24 -07:00
Igor Bukanov
94a3d7329c
bug 487930 - removal of JSSLOT_ARRAY_LOOKUP_HOLDER. r=mrbkap
2009-04-17 11:37:59 +02:00
Igor Bukanov
5836717df3
bug 487204 - avoiding extra locks for js_Native(Get|Set). r=brendan
2009-04-16 02:36:14 +02:00
Andreas Gal
05faccf228
Backed out changeset d1a4ee3d0c59 due to build fail, test fail, and perf regressions.
2009-04-15 14:20:52 -07:00
Igor Bukanov
577cb23ac0
bug 487204 - avoiding extra locks for js_Native(Get|Set). r=brendan
2009-04-15 21:13:27 +02:00
Jason Orendorff
b5d4ba583e
Bug 487676 - Nesting deep-aborting trace calls don't work. r=gal.
...
--HG--
extra : rebase_source : 436164485bd5e981e5ae8997eed2c371f3ecd77b
2009-04-09 18:07:00 -05:00
Brendan Eich
962b187fe5
upvar2, aka the big one take 2 (452598, r=mrbkap).
2009-04-05 21:17:22 -07:00
Andreas Gal
706120c0fb
Backed out changeset 972c44aa9d1f (bug 452598).
2009-04-04 10:14:52 -07:00
Brendan Eich
5f4d9ff474
upvar2, aka the big one (452598, r=mrbkap).
2009-04-04 10:05:49 +01:00
Igor Bukanov
f48629a9d6
bug 486139 - removal of JSProperty struct definition. r=mrbkap
2009-04-03 09:53:17 +02:00
Igor Bukanov
4df05a423c
bug 484861 - removal of unsed fields from JSObjectOps. r=mrbkap
2009-04-01 14:32:51 +02:00
Igor Bukanov
0e62709153
bug 486106 - restoring JS*Lookup API compatibility with fast arrays. r=shaver
2009-03-31 21:42:31 +02:00
Boris Zbarsky
7b0ee90b96
Bug 495499. Speed up PutImageData for cases when the array contains doubles. r=brendan,vlad,jorendorff
2009-06-11 10:35:41 -04:00
Robert Sayre
150b7d8a28
Merge tracemonkey to mozilla-central.
2009-03-24 13:49:05 -04:00
Jeff Walden
c9c51f7aa5
Bug 484750 - Assertion failure: newlen == 0 || obj->dslots[newlen - 1] != JSVAL_HOLE, at ../jsarray.cpp. Modify an assertion to properly handle intentional fenceposting behavior where we copy 0 elements to the end of an array -- can't assert that the end of the array isn't a hole in this case because we're intentionally not changing the array from what it was before -- demonstrated by [,].splice(1). r=me as obvious from debugging the testcase
2009-03-23 00:26:52 -07:00
Jim Blandy
875aee5e88
Bug 479258: Include "jsstdint.h" for <stdint.h> type use within SpiderMonkey. r=brendan
2009-03-18 11:38:16 -07:00
Igor Bukanov
01b205d742
bug 369696 - improving object graph serialization. r=brendan
2009-03-17 09:51:38 +01:00
Brendan Eich
403138bf01
Followup patch for bug 481251.
2009-03-04 00:12:35 -08:00
Andreas Gal
5b7dfe03a9
Assert prototype shapes when reading a hole from a dense array instead of calling a builtin (481328, r=brendan).
2009-03-03 21:58:56 -08:00
Andreas Gal
a1e02f0996
Fixed MacOSX breakage.
2009-03-03 18:27:49 -08:00
Andreas Gal
8c3223aab5
Browser spuriously sets runtime->anyArrayPrototypeHasElement and makes perf bad (481251, r=mrbkap).
2009-03-03 18:04:15 -08:00
Andreas Gal
56117dc22a
js_Array_dense_setelem can call arbitrary JS code (479487, r=jorendorff).
2009-02-26 11:59:07 -08:00
Igor Bukanov
896a95119f
bug 477706 - fixing most VC 2005 warnings. r=gal,mrbkap
2009-02-26 09:49:39 +01:00
Andreas Gal
78ba6b4a54
Make arrays with less than 256 entries always dense (479386, r=brendan).
2009-02-25 14:48:07 -08:00
Jason Orendorff
be299388d1
Bug 477279 - Tune dense array growth. r=brendan.
...
--HG--
extra : rebase_source : 4493d59e8bd46c1635d2f8cef39f87904d83e09f
2009-02-23 17:31:02 -06:00
Robert Sayre
12943580cf
Merge m-c to tracemonkey.
2009-02-23 12:44:23 -05:00
Blake Kaplan
adf5d20bc2
Fix bustage from checkin for bug Bug 479566
2009-02-21 14:25:43 -08:00
Jason Orendorff
15b9f03458
Bug 479566 - Rename array "dense length" to capacity. r=shaver.
2009-02-21 15:33:50 -06:00
Jim Blandy
ede7e6d142
Bug 391488: Eliminate PTRDIFF macro; delete jssttddef.h. r=jimb
...
Delete jsstddef.h, since its only remaining purpose is to make certain
Win16-specific definitions; we don't support Win16 any more. In
particular, we can just subtract pointers now, so the PTRDIFF macro is
unnecessary noise.
Most places get stddef.h via jstypes.h or some other header, so we can
just delete #inclusions of jstddef.h. The exception is jskwgen.h, so
there we explicitly include <stddef.h> instead.
2009-02-18 09:14:51 -08:00
Jason Orendorff
c9b0918474
Bug 477142 - _FAIL builtins need to be GC-safe. r=brendan.
...
--HG--
extra : rebase_source : 10515f7d1f5a85c1965c812f55d91d3d0f49a28e
2009-02-11 13:33:17 -06:00
Andreas Gal
93eb39269d
Substitute operation counting with a watchdog thread (477187, 3nd attempt, r=brendan/mrbkap/jst, sr=brendan/jst).
2009-02-10 14:07:01 -08:00
Andreas Gal
474d0d308f
Backout bug 477187.
2009-02-10 09:54:14 -08:00
Andreas Gal
f796bcd60a
Substitute operation counting with a watchdog thread (477187, 2nd attempt, r=brendan/mrbkap/jst, sr=brendan/jst).
2009-02-10 03:45:36 -08:00
Andreas Gal
7ea402f38c
Merge.
2009-02-09 22:54:41 -08:00
Andreas Gal
2a20c2a6de
Backing out bug 477187. Breaks xpcshell.
2009-02-09 22:54:05 -08:00
Andreas Gal
2e46d80547
Merge.
2009-02-09 18:21:15 -08:00
Andreas Gal
cbfbbd3cac
Substitute operation counting with a watchdog thread (477187, r=brendan/mrbkap/jst, sr=brendan/jst).
2009-02-09 18:20:50 -08:00
Jeff Walden
19207254e5
Remove some trailing whitespace to maybe kick build machines out of an orange
2009-02-08 03:30:29 -08:00
Robert Sayre
4bd2cf8d3d
Fix bustage from Bug 476873
2009-02-06 12:36:14 -08:00
Jason Orendorff
b93b5173f2
Bug 476873 - TM: Trace JSOP_ARRAYPUSH. r=brendan.
2009-02-06 13:19:06 -06:00
Graydon Hoare
d1049135f4
Bug 469625 - Deoptimize special own-properties, r=brendan.
2009-02-04 11:08:31 -08:00
Jason Orendorff
e4c1fb1cfd
Bug 462027 - Bail off trace when reentering interpreter. r=gal.
2009-02-03 18:25:12 -06:00
Jason Orendorff
4e3f2cfd40
Revert to 07be1f190a3d. Revision 5f5c1cd63641 should not have been pushed.
2009-02-03 12:38:44 -06:00
Jason Orendorff
f6ffd1d380
[mq]: bug-462027-v9
2009-02-02 20:42:46 -06:00
Jason Orendorff
37f2985bdf
Bug 476177 - TM: cx->stackPool must not be accessed on trace. r=brendan.
...
--HG--
extra : rebase_source : 746d61b54aa38cbe18fe31bce4efcbbad4629678
2009-01-30 17:40:05 -06:00
shaver@mozilla.org
728f9f9126
Backed out changeset 7246c4dcf997 (bug 469625) due to trace-test.js failures.
2009-01-28 22:26:46 -05:00
brendan@mozilla.org
14dd060156
Conservatively track modifications along the prototype chain of arrays (469625, r=jorendorff).
2009-01-28 16:16:20 -08:00
Blake Kaplan
500f0a0301
Bug 467499 - Pass the proper size argument to ResizeSlots. r=shaver/crowder
2009-01-26 16:20:05 -08: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