David Mandelin
3dc48e12b2
[JAEGER] Merge from Tracemonkey.
2010-08-30 15:13:32 -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
David Mandelin
ab97c995fd
[JAEGER] Merge from tracemonkey.
2010-08-26 10:35:24 -07:00
David Mandelin
ef5b0f9077
[JAEGER] Merge from tracemonkey.
2010-08-25 11:00:41 -07:00
Luke Wagner
338d890b00
Bug 589340 - factor out / weaken dummy frames (r=mrbkap)
2010-08-21 16:03:07 -07:00
David Mandelin
d32d792513
[JAEGER] Merge from tracemonkey. Note that we will currently fail one trace test that was recently added. There is a bug in that test that will be fixed posthaste.
2010-08-17 15:32:40 -07:00
Jeff Walden
765b61e1cb
Bug 429507 - ES5: Function.prototype.bind. r=brendan
2010-08-13 10:42:33 -07:00
Brian Hackett
466e80d99b
[JAEGER] Second try at start/end iterator fast paths, bug 578756. r=dmandelin, dvander, gal
2010-08-12 17:26:07 -04:00
Jeff Walden
88db90ddd5
Bug 516255 - Use different classes for arguments objects created inside and outside strict mode code, with slightly different ops, in preparation for implementing strict mode arguments objects' less magical functionality. r=dmandelin
2010-08-11 23:26:59 -07:00
L. David Baron
0a579a3bbb
Back out changeset 7dcd0d16cc08 (bug 547941) for causing jsreftest crashes on debug builds.
2011-04-12 01:28:40 -07:00
Andreas Gal
55fc66a7e0
Bug 547941 - WeakMap. r=jorendorff.
2011-04-11 22:38:11 -07:00
Jeff Walden
484a36371d
Bug 640503 - Convert new String().length to use a regular data property and not a shared-permanent property-op getter/setter. r=jorendorff
...
--HG--
extra : rebase_source : 06bb9b53c0498d20b3afc6e558096c2398559602
2011-03-13 20:38:34 -07:00
Jeff Walden
47551e8efe
Bug 514563 - ES5 strict mode: arguments.caller and arguments.callee poison pills. r=dmandelin
...
--HG--
extra : rebase_source : 2f0b258624ec065cb019f61f017115998a8835b2
2010-08-04 14:39:45 -07:00
Jeff Walden
df688c0946
Rename JSObject::getArgsLength to JSObject::getArgsInitialLength, to make clearer precisely what value it returns. r=dmandelin
...
--HG--
extra : rebase_source : c642dd15d4d1cf5f8ac2211dc2ee33845d11bef1
2010-08-04 13:50:01 -07:00
Brian Hackett
5ab7972159
Fast native constructors, bug 579471.
2010-08-03 12:20:48 -07:00
Jeff Walden
443f3f510a
Bug 514581 - ES5: fun.caller and fun.arguments must throw when fun is strict-mode code. r=jimb
...
--HG--
extra : rebase_source : 10f930852e39b0b1ef917b18b6a1332a9a815d5d
2010-08-02 23:52:12 -07:00
David Mandelin
d7f6c4209b
Merge from Tracemonkey.
2010-08-02 15:55:29 -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
Jason Orendorff
3e23944c3b
Fix MSVC warnings about class JSFunction. no_r=me.
2010-07-29 08:08:23 -05:00
David Mandelin
a73ecdeee1
Merge from Tracemonkey.
2010-07-28 11:16:36 -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
David Mandelin
904ccc994c
Merge from Tracemonkey.
2010-07-27 11:48:08 -07: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
Jason Orendorff
6972003bf8
Delete obsolete comment. no_r=me.
...
--HG--
extra : rebase_source : 8b9b7408c0efd682a5f11f827fca2d2304e0a4a3
2010-07-30 10:21:11 -05:00
Robert Sayre
909914ff10
Merge backout.
2010-07-29 18:15: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
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
David Mandelin
3c3566af26
[JAEGER] Merge from tracemonkey.
2010-07-23 18:47:24 -07:00
Andreas Gal
c9bde05bd6
Always allocate dslots for dense arrays (580877, r=njn).
2010-07-23 15:29:02 -07:00
David Mandelin
cf0c3c24a7
Merge from tracemonkey.
2010-07-22 18:31:01 -07:00
David Anderson
cf5a8cf505
[JAEGER] Merge from tracemonkey.
2010-07-19 20:49:26 -07:00
David Anderson
3c92cb6c14
[JAEGER] Added PIC for arguments.length (bug 580036).
2010-07-19 18:21:34 -07:00
Luke Wagner
165d33e232
Bug 578015 - desc.getter/setter can be null (r=dmandelin)
2010-07-16 11:14:05 -07:00
Jason Orendorff
7947f2514c
Make CheckScopeChainValidity local to jsobj.cpp. No bug#, rs=gal on IRC.
2010-07-29 16:25:06 -05:00
Jeff Walden
e009ebc027
Bug 465199 - RegExp.lastIndex setting shouldn't coerce to integer (should happen during internal use of the property instead). r=cdleary
...
--HG--
extra : rebase_source : d2f32831a11a4e88dbed927a9a17e96f2a9561b3
2010-07-12 15:40:44 -05: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
David Anderson
64fd3377e9
[JAEGER] Merge from fatval & TM.
2010-07-05 18:07:39 -07:00
Luke Wagner
97d36215fd
Change asX to toX, asXRef to getXRef, XTag to XValue
2010-07-05 13:44:59 -07:00
Luke Wagner
b77253dee8
Fix browser bustage from merge
2010-07-04 19:48:36 -07:00
Luke Wagner
d119486317
Merge from TM
...
--HG--
rename : js/src/xpconnect/src/wrappers/AccessCheck.cpp => js/src/xpconnect/wrappers/AccessCheck.cpp
2010-07-04 14:49:39 -07:00
Luke Wagner
a190b35d3a
Browser build fixes (stuff still broken)
2010-07-04 12:35:21 -07:00
Luke Wagner
d52a11e637
Get merge building js shell and passing trace/ref tests. Still need to fix up browser
2010-07-04 00:12:06 -07:00
Sean Stangl
bcde0f1fc6
[JAEGER] Merge with fatval.
2010-07-02 21:52:25 -07:00
Andreas Gal
38966949eb
Implement remaining cross compartment wrappers (574924, r=mrbkap).
2010-07-02 13:54:53 -07:00
Luke Wagner
15a253d499
Merge
2010-07-01 23:10:37 -07:00
Luke Wagner
c2f68a0182
Pull jsval impl details into jsvalimpl.h (included by jspubtd.h) and pull js::Value into jsvalue.h (engine-private)
2010-06-30 15:25:47 -07:00
David Anderson
9c55bbcdbc
[JAEGER] Merge from fatval.
2010-06-30 11:46:07 -07:00
Luke Wagner
19f7cefc18
Drop the distinction in js::Value of funobj vs. nonfunobj. Instead, values can just have JSVAL_TYPE_OBJECT. The trace-jit still uses funobj/nonfunobj and translates as necessary.
2010-06-29 22:33:52 -07:00
David Anderson
9d91d7d5a9
[JAEGER] Merge from fatval.
2010-06-29 11:54:42 -07:00
Luke Wagner
ae0f7e12b6
Change js::DumpX back to js_DumpX
2010-06-29 01:49:55 -07:00
Chris Leary
21e4248a17
JM: Bug 574697, eagerly calculate |this|. (r=dvander)
2010-06-28 22:24:21 -07: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
Luke Wagner
aa7965a17e
Bug 581769 - fix JS_ValueToId on xml object. remove spurious iterator assert (r=waldo)
...
--HG--
extra : rebase_source : e3485c5d7b586303a35d169cd2e51413f85c33c5
2010-07-26 17:05:17 -07:00
David Anderson
a3709f170d
[JAEGER] Merge from fatval branch.
2010-06-24 11:18:01 -07:00
Luke Wagner
ed28dae403
64-bit builds and passes trace tests on OS X with --disable-tracejit. reftests has failures, but these also show up on tm and should be fixed by a rebase
2010-06-23 16:58:32 -07:00
David Anderson
68eadd08f9
[JAEGER] Re-added Dave Mandelin's GETPROP PIC stubs for string and array length (bug 572310, part 2).
2010-06-20 16:07:21 -07:00
Luke Wagner
b7955fe7b7
Browser builds
2010-06-17 23:51:54 -07:00
Luke Wagner
ab09c2952d
Switch jsids back to pointer-sized and fix a bunch of broken assumptions
2010-06-16 18:21:34 -07:00
Andreas Gal
1efe5e2ec6
Implement runtime-wide wrap hook (574299, r=mrbkap).
2010-06-24 16:45:32 -05:00
Jeff Walden
a255bae3b1
Add cycle-detection assertions to prototype/parent-setting methods, tighten some nearby code stylistically. (let r () (r))
2010-06-23 16:57:52 -07:00
David Anderson
297eb1af31
[JAEGER] Added monomorphic inline cache for reads of unbound globals.
2010-06-12 19:00:30 -07: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
d23600e449
Bug 582081 - Dense array patches regressed empty Array creation on Dromaeo. r=jwalden
2010-07-27 16:42:58 -07:00
David Mandelin
f242431382
Bug 569766: Make tracing work with fat values
2010-06-10 17:20:26 -07:00
Jason Orendorff
c1a1fb9be1
Bug 563099 - Compartments and wrappers API. r=gal.
...
--HG--
extra : rebase_source : cb34d0d0fc689fc6401d67e7f719344cd8e27655
2010-06-23 16:35:10 -05:00
Brendan Eich
e672f52623
Eliminate JSClass::reserveSlots and streamline new-object paths (535416, r=gal).
2010-06-18 17:43:02 -07:00
Jason Orendorff
c7000f4f86
Bug 574013 - Change JSObjectOps::call to compute this even later in certain cases. (This will also facilitate implementint ES5 primitive this.) r=gal.
...
--HG--
extra : rebase_source : 2f588a571cc7970ae2119338e4abfc34bdd6fdc8
2010-06-23 12:08:34 -05: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
Luke Wagner
1bb5128ab0
Merge with TraceMonkey
2010-06-09 21:59:18 -07:00
Jason Orendorff
6e7f075424
Merge backout.
2010-06-07 20:39:48 -05:00
Jason Orendorff
5874315d91
Back out changeset 5f425aecd7ab again. Still has performance issues; 14% in ThisObject hook.
2010-06-07 20:36:57 -05:00
Andreas Gal
be035f8008
Allow reading reserved slots without locking if we know its safe to do so (570404, r=brendan).
2010-06-07 21:35:58 -04:00
Luke Wagner
9814243213
xpconnect builds
2010-06-07 13:57:40 -07:00
Luke Wagner
7b81a5dc24
Make JSHasInstanceOp and JSEqualityOp take jsval. Get a lot of xpconnect compiling
2010-06-04 16:55:08 -07:00
Jason Orendorff
5f5deee89d
Bug 556277 - Compute this eagerly in more cases. r=brendan. Second landing.
2010-06-04 00:34:57 -07:00
Luke Wagner
8846bb56a4
Fix failing reftests. Align consts stored in scripts
2010-06-03 18:22:37 -07:00
Luke Wagner
8f6c06b148
Remove jsboxedword, change jsid to be a jsval
2010-06-02 19:09:04 -07:00
Bill McCloskey
40b74847a1
Bug 609104 - Move the property tree to the compartment (r=brendan)
2011-02-04 10:59:07 -08:00
Bill McCloskey
4d89be0bd8
Backed out bug 609104 (csets ac3ba38f20c0 and 7717cabaf20c) (orange)
2011-02-02 14:20:06 -08:00
Bill McCloskey
daa16e64bb
Bug 609104 - Move the property tree to the compartment (r=brendan)
2011-01-27 15:46:39 -08:00
David Mandelin
a4880c2f6d
Bug 611652: clear values instead of scope when global window is cleared, r=brendan,enn,jeff,mrbkap,smaug
...
--HG--
extra : rebase_source : 77e3844d35de229817bee767256a96d030a78bf9
2011-01-21 18:37:30 -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
Jim Blandy
2016210905
Bug 554955: Revert fix (changesets 297b1312f534, 18a1effafe19, 26d40e1e80bf, f6117465a979): 14% performance hit as measured by Talos. r=talos
2011-01-31 16:48:26 -08:00
Jason Orendorff
f1be13e671
js_InitExceptionClasses was skipping part js_InitClass, leading to "Assertion failure: proto->canProvideEmptyShape". Bug 624968, r=Waldo.
...
--HG--
extra : rebase_source : 08ebb71574a0b1962e8f1c0c3f9a7aa7ec904b03
2011-01-24 17:32:44 -06:00
Jim Blandy
a237e87988
Bug 554955: Give blocks and call objects unique shapes when they have parents that may be extended with new bindings. r=jorendorff
...
The comments for js::Bindings::extensibleParents explain why this is necessary.
AssertValidPropertyCacheHit should have been catching this bug, but for
reasons I don't understand, it is restricted from checking this case. This
patch extends it to assert when the bug is detected.
I've gathered the infallible parts of the initialization for Call objects
and cloned block objects into their own functions.
2011-01-31 12:08:13 -08:00
Jim Blandy
4b5d129a27
Bug 554955: Make JSObject::setMap not pretend to take a const shape. r=jorendorff
...
Without this patch, JSObject::setMap takes a const js::Shape *, which is
kind of misleading. The object will not actually treat the shape as const
(it does a const_cast). At all but one call site, setMap's argument is not
a const shape --- and in fact, many call sites are installing empty shapes
whose role in life is to be extended.
The only place where a const js::Shape appears is in setSharedNonNativeMap,
which is doing something unusual. The const cast should be there.
Changing js::Bindings::lastShape to return a non-const shape is then
natural, and cleans up the definition of initCall coming in the next patch.
2011-01-31 12:08:13 -08:00
Chris Leary
6d0cc31d27
Back out changeset 7d82892cb8df.
2011-01-27 19:43:33 -08:00
Chris Leary
001cef1fd8
Merge the backout head.
2011-01-27 16:26:21 -08:00
Chris Leary
8f8ea8fd48
Backed out changeset b5ca98debed0
2011-01-27 16:25:30 -08:00
Bill McCloskey
a4f9ab0da8
Bug 609104 - Move the property tree to the compartment (r=brendan)
2011-01-27 15:46:39 -08:00
David Mandelin
62ff5f09d8
Bug 611653: clear values instead of scope when global window shuts down, r=brendan,smaug
2011-01-21 18:37:30 -08:00
timeless@mozdev.org
313f426282
Bug 615834 warning: inline function ‘JSCompartment* JSObject::getCompartment() const’ used but never defined. r=gal
...
r=mrbkap
--HG--
extra : rebase_source : fe12e4864bb95a55802be395bd119a064af64baf
2011-01-18 14:25:46 -08:00
Andreas Gal
3c34eab945
Follow-up fix for bug 625559.
2011-01-26 19:19:33 -08:00
Andreas Gal
927855f788
Cache eval CSP check (bug 614137, r=mrbkap, a=dmandelin).
2011-01-22 14:28:37 -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
Jeff Walden
7b5179a175
Bug 514568 - Add JSObject::callIsForEval rather than using JSObject::getCallObjCallee() == NULL. r=igor
2011-01-05 14:54:04 -06:00
Robert Sayre
5001e2565e
Backed out changeset feb6682a10af
2011-01-06 21:40:54 -05:00
Jeff Walden
cf77bbb8be
Bug 514568 - Add JSObject::callIsForEval rather than using JSObject::getCallObjCallee() == NULL. r=igor
2011-01-05 14:54:04 -06:00
Jeff Walden
de8c94c378
Bug 514568 - Use a fresh variable environment for strict mode code run by eval, and give strict mode eval code frames a Call object backed by those variables. r=igor
2010-10-12 11:38:06 -07:00
Tom Schuster
010f1cebb4
Bug 557353 - JM: PIC for object-wrapped string length. r=dvander
2010-12-30 13:25:03 -06:00
Jeff Walden
a6ce2e1493
Bug 622053 - Streamline and greatly clarify Call object PropertyOp getters and setters, for easier reading and more bounds-checking assertions than the none (!) we had before. r=dmandelin
2010-12-29 22:21:18 -06:00
Jeff Walden
f7bec8a9e8
Bug 614493 - Move top-level binding storage (and argument, variable, and upvar counts) out of JSFunction and into js::Bindings, itself stored in JSScript, anticipating the time when strict mode eval scripts will need it. r=brendan
2010-11-16 15:34:24 -08:00
Jeff Walden
001fbb6163
Update comments on the structure of arguments objects in jsobj.h to account for strict mode arguments. r=commentsonlyfix
2010-12-29 16:45:44 -06:00
Chris Leary
5c3dd7b9ca
Merge mozilla-central to tracemonkey.
2010-12-30 00:36:53 -05:00
Chris Leary
272d457a20
Merge mozilla-central to tracemonkey.
2010-12-29 19:25:04 -05:00
David Mandelin
c3e8135c6a
Bug 595975 diagnostic 2: shape markers and object data, r=billm, a=blocker
...
--HG--
extra : rebase_source : ddc486824d5f4a4e3dfe114ccde7e4841033ebaa
2010-12-28 14:50:01 -08:00
David Mandelin
625946d567
Backed out changeset c35a4e6ea3ca -- done with diagnotics.
2010-12-29 17:46:14 -08:00
Jason Orendorff
46fecd5674
Bug 570169 - Part 2, add assertions that gcthings do not leak across compartments. r=gal.
...
--HG--
extra : rebase_source : eaa2aee559527dbca94c3279d256833d2293ca67
2010-06-16 16:13:28 -05:00
Brendan Eich
734c3a1ba9
Back out a81f2aed9c9b due to orange.
2010-06-18 17:39:22 -07:00
Brendan Eich
157c408713
Eliminate JSClass::reserveSlots and reserve fixed-per-class slots lazily (535416, r=gal).
2010-06-15 10:06:40 -07:00
Brendan Eich
4b502c156f
Fix warnings due to constant JS_MAX size params in MAX_DSLOTS_LENGTH (r=gal).
...
--HG--
extra : rebase_source : eb93aa51f3ee12ff4711170093434910ff19a125
2010-06-13 06:08:50 +01:00
Andreas Gal
a92e115145
Move proto out of fslots and make it JSObject* (572820, r=jorendorff).
2010-06-17 15:23:17 -07:00
Igor Bukanov
a3a94a3484
bug 572411 - removal of JSObjectOps::checkAccess. r=mrbkap
2010-06-17 14:32:26 +02:00
Jason Orendorff
c1e349137a
Back out changeset 4c1fbfcf1d0d due to orange.
2010-06-16 20:03:11 -05:00
Jason Orendorff
2d3b5bbe7a
Bug 570169 - Part 2, add assertions that gcthings do not leak across compartments. r=gal.
2010-06-16 16:13:28 -05:00
Jason Orendorff
6472e34dba
Bug 570169 - Part 1, preparation. Rearrange some code. r=gal.
2010-06-16 16:13:01 -05:00
Andreas Gal
ffe7358fca
Eagerly calculate 'this' for 'with' objects (570655, r=brendan/mrbkap).
2010-06-08 17:09:40 -04:00
Igor Bukanov
02fc618d59
bug 566836 - eliminating JSObjectOps::dropProperty. r=gal
...
--HG--
extra : rebase_source : cdffca0a863d8a3dddbc77335fc3cdac2eff9f4b
2010-06-05 23:24:54 +02:00
Robert Sayre
37d6a810f7
Merge backout.
2010-06-05 11:43:27 -04:00
Robert Sayre
3a10b5449b
Backed out changeset 52be13ea0488. Bug 556277 - Compute this eagerly in more cases. r=brendan. Suspected of performance regression on SunSpider unpack-code. 80ms -> 135ms.
2010-06-05 11:42:59 -04:00
Jason Orendorff
2ab131a259
Bug 556277 - Compute this eagerly in more cases. r=brendan.
...
--HG--
extra : rebase_source : b295b576f019a95b55d12b86077aaef295e3eec8
2010-06-04 00:34:57 -07:00
Luke Wagner
6950cf8510
Fix misnamed js_DumpStackFrameChain (r=me)
...
--HG--
extra : rebase_source : c8d4e523cea0909dc190eac3c368d207d9c6abbb
2010-06-04 11:15:23 -07: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
70617110b8
Add an API for compartments (570040, r=jorendorff).
2010-06-04 16:32:10 -07:00
Bill McCloskey
c66ced57da
Backed out changeset d75da3b12098 (tree burning)
2010-12-21 16:06:19 -08:00
Bill McCloskey
fbc7978aad
Bug 547327 - Estimate optimal number of JSObject slots (r=lw)
2010-12-21 15:54:25 -08:00
Jeff Walden
3ceb4d071b
Bug 569471 - Rename js_GetWrappedObject to JSObject::wrappedObject. r=jorendorff
2010-06-01 15:59:02 -07:00
Andreas Gal
c7677875dc
Rip out proto cache and store prototypes in the global object (569537, r=jorendorff).
2010-06-02 20:30:45 -07:00
Andreas Gal
966cb32879
Don't re-run resolve hooks after a standard class was delete (569306, r=mrbkap).
2010-06-02 01:18:50 -07:00
Brendan Eich
66e2a9929e
Nit patrol flies at dawn, spots minor spacing infractions.
2010-05-30 11:40:14 -07:00
Luke Wagner
926bf1e82a
Passing trace-tests
2010-05-20 18:39:06 -07:00
Luke Wagner
72913f6cf1
Bug fixes, cleanups
2010-05-20 10:05:04 -07:00
mozilla@buildmonkey-left.mv.mozilla.com
88fadd2d53
Fix some things so this builds on 64-bit and OS X
2010-05-19 09:55:27 -07:00
Luke Wagner
d3a3926b34
Fix bugs
2010-05-18 17:25:12 -07:00
Andreas Gal
efd9bd790e
Implement ES Harmony Proxies (bug 546590, r=mrbkap).
2010-05-18 19:21:43 -07:00
Luke Wagner
19c9bbad15
Turns out function objects can be on parent chains
2010-05-18 14:23:23 -07:00
Luke Wagner
4efd7171cc
Started fixing asserts
2010-05-17 22:57:30 -07:00
Luke Wagner
e374a37e1c
Remove explicit copy, ObjPtr
2010-05-17 22:15:51 -07:00
Luke Wagner
d1c3253e19
It compiles and links. Time to make it run
2010-05-17 21:21:44 -07:00
Luke Wagner
b3c6d771b1
Fixing shell/js
2010-05-17 18:49:58 -07:00
Robert Sayre
13c247559e
Merge mozilla-central to tracemonkey
2010-05-17 13:55:37 -04:00
Luke Wagner
0a7c4f2ffb
convert up to jsstr
2010-05-13 14:49:26 -07:00
Luke Wagner
588e08228c
jsiter
2010-05-12 19:05:43 -07:00
Luke Wagner
4e6c52c52b
New Tag scheme, no SetObject silliness
2010-05-12 16:36:10 -07:00
Luke Wagner
400c4bbaef
Finished corrections from rebase
2010-05-12 12:32:34 -07:00
Luke Wagner
bd3571c1b5
Still recovering from rebase
2010-05-11 19:00:59 -07:00
Luke Wagner
6c0883c94f
Merge from tracemonkey
2010-05-11 00:41:08 -07:00
Luke Wagner
4e71f5312b
(unrebased) fat value patch
2010-05-10 22:01:31 -07:00
Igor Bukanov
b9b1577eec
bug 630209 - (Compile|Execute)Script that are GC-safe. r=jorendorff
2011-02-03 14:06:21 +01:00
Luke Wagner
fb7ceb4c78
Bug 547851 - remove JSStackFrame::regs, JSStackFrame::callerFrame.sp (r=dvander)
2010-03-03 18:10:13 -08:00
Igor Bukanov
97039b9427
bug 561364 - removal of JSRuntime::gcLevel. r=jorendorff
2010-05-14 15:55:17 +02:00
Luke Wagner
bddd202c18
(unrebased) remove regs
2010-03-03 18:10:13 -08:00
Luke Wagner
24a4486456
(fake) remove-regs patch
2010-03-03 18:10:13 -08: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
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
46b653e0e1
Mac bustage fix for bug 556187. r=brendan via IRC.
2010-04-06 12:16:37 +10:00
Nicholas Nethercote
4542317997
Bug 556187 - encapsulate JSSLOT_ARRAY_* within JSObject. r=brendan.
2010-04-05 18:32:16 -07:00
Andreas Gal
2004c301c3
fast object iteration (558754, r=brendan, CLOSED TREE).
2010-05-07 17:52:52 -07:00
Nicholas Nethercote
f824f9ebe3
Bug 563575 - encapsulate jsobj.cpp dslots accesses. r=brendan.
2010-05-04 20:28:38 -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
Jeff Walden
00f6066393
Bug 552560 - Remove support for __parent__. r=mrbkap
2010-04-11 13:51:00 -07:00
Nicholas Nethercote
1cd832e8d3
Bug 562872 - encapsulate Arguments-related dslots accesses. r=brendan.
2010-05-02 21:42:09 -07:00
Brendan Eich
52ed1d8098
Fix getter/setter built-in vs. scripted type confusion: union getter/setter callable object pointer with raw JSPropertyOp pointer, fix watchpoint assertion/null-deref related to ES5's {get: undefined, set: undefined} new scripted getter/setter state encoding, clean up related code (560796, r=jwalden).
2010-04-30 16:03:37 -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
1e5fc26c40
Bug 560774 - encapsulate array-related dslots accesses. r=brendan.
2010-04-26 18:33:36 -07:00
Boris Zbarsky
d319faf7ba
Bug 556830 part 1. Change things so a bindname resolve of a global property won't define it on the window in ES5 strict mode. r=jorendorff
2010-04-26 10:06:25 -04:00
Andreas Gal
df7122d975
backing out clean up bug 560167 due to massive conflicts with the iterator patch
2010-04-23 20:49:06 -07:00
Nicholas Nethercote
a46ca032d4
Bug 560167 - encapsulate XML-related JSSLOT_* values within JSObject. r=brendan.
2010-04-22 16:37:41 -07: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
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
Nicholas Nethercote
f0550e09e5
Bug 560167 - encapsulate XML-related JSSLOT_* values within JSObject (attempt 2; attempt 1 was backed out due to conflicts). r=brendan.
2010-05-12 18:57:36 -07:00
Jason Orendorff
bdb491ed34
Backed out changeset 8cb8888c68d3 due to failing mochitests.
2010-05-12 09:34:03 -05:00
Jason Orendorff
2b3384521c
Bug 513065 - Part 3, compute scope in the engine before calling the thisObject hook. r=mrbkap.
2010-05-12 08:15:49 -05:00
Jason Orendorff
ab2c2c89d5
Bug 513065 - Part 1, avoid thisObject when unwrapping With objects. r=mrbkap.
...
--HG--
extra : rebase_source : 129c8592e7f14bb76cc648ba8ae930bfc73507cb
2010-05-12 08:11:46 -05:00
Brian Hackett
8ad86a5d56
Date performance fixes, bug 578259. r=waldo
2010-08-17 10:42:57 -07:00
Brian Hackett
16873a1fb8
Bug 579471 - fast constructors (r=dmandelin,lw)
2010-08-10 16:38:08 -07:00
Jason Orendorff
d354a0998c
No bug: fix visibility warnings in GCC, no_r=me
2010-04-01 11:01:14 -05:00
Nicholas Nethercote
795d4b8ad2
Bug 556353 - Remove OBJ_IS_NATIVE, HAS_FUNCTION_CLASS. r=brendan.
2010-03-31 22:13:51 -07:00
Jason Orendorff
24aa3470aa
Bug 556315 part 2 - JSObject::getGlobal() and JSStackFrame::getThisObject(). r=gal.
...
--HG--
extra : rebase_source : 103e73537d3c2f537a914b69a620136451a664ba
2010-03-31 17:57:03 -05:00
Robert Sayre
baeb2d1edf
Merge mozilla-central to tracemonkey.
2010-03-30 21:13:01 -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
560212f1a8
Readd all jsobj.cpp and related changes from bug 548702.
2010-03-28 20:32:20 -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
Jason Orendorff
d5f9ef6c2a
Bug 500431 part 3 - Rename JSPropertyCache to js::PropertyCache and other renamings. r=brendan.
2010-03-24 21:20:44 -05:00
Andreas Gal
06be8164da
Public JS API for new ES5 Object functions (551595, r=jwalden).
2010-03-24 12:36:42 -07:00
Jason Orendorff
289a8b3513
Bug 530583 - Delete silly JS_INT32_TO_PTR etc. macros. r=jwalden.
...
--HG--
extra : rebase_source : ccd52d3c33a3fd984fb5588ef12cbf9a6a80c423
2010-03-16 10:41:28 -05:00
Andreas Gal
5bea94fbab
Backed out changeset 1732da7b3164
2010-03-15 16:13:49 -07:00