Commit Graph

570 Commits

Author SHA1 Message Date
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
Jason Orendorff
38d63ffa56 Back out changeset a8252fe3f211 due to turning everything orange. 2010-09-16 20:58:40 -07:00
Jason Orendorff
31cfa81e35 Bug 580033 - JS_Save/RestoreFrameChain should update cx->compartment. r=mrbkap.
--HG--
extra : rebase_source : 717f7f4d4f3e6e96955cbb1ddb8ca9e1533914f7
2010-09-16 17:29:21 -07:00
Luke Wagner
22b9595546 Bug 595923 - InvokeConstructor can return primitive value (r=brendan)
--HG--
extra : rebase_source : 75fd8e06ce4abceb17f2452236e3425efdb035fa
2010-09-15 21:59:08 -07:00
Jim Blandy
2a3cf83056 Bug 537873, Bug 514574: Have strict mode code report TypeErrors for assignments, deletions. r=brendan
TODO: Fix error messages.
2010-09-15 13:43:55 -07:00
Jason Orendorff
a43bea11f5 Bug 593147 - TM: global Object created in _newJSDContext needs a compartment. r=gal. 2010-09-14 16:24:59 -07:00
Chris Leary
269a7d6bab Bug 571355: Move RegExpStatics out of JSContext. (r=gal) 2010-09-13 15:53:50 -07:00
Nicholas Nethercote
837cae8aad Bug 590834 - Clean up number-to-string code. r=jwalden. 2010-09-13 13:08:25 -07:00
Chris Leary
86f41cf42a Fix build warning. (no_r=me)
--HG--
extra : rebase_source : cd1afe2f1e8597fb88ca530912dbd6008e3ee9f7
2010-09-13 13:00:58 -07:00
Chris Leary
2fa4fedbc1 Bug 540675: eviscerate JSStackFrame::callerVersion. (r=lw) 2010-09-13 09:38:22 -07:00
Luke Wagner
562fc49870 Bug 539144 - Make formal args a jit-time const offset from fp; rm argv/argc/thisv/script/callobj (r=brendan,dvander) 2010-08-09 22:43:33 -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
d7abc9c150 Eliminate JSObject::freeslot via monotonic lastProp->freeslot (592556, r=jorendorff,dvander). 2010-09-02 14:50:44 -07:00
Chris Leary
7c740a8dc0 Back out due to mochiserver breakage. (no_r=me) 2010-09-09 16:52:31 -07:00
Chris Leary
7c2ac56dff Bug 540675: remove callerVersion from stack frame. (r=lw) 2010-09-09 14:25:30 -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
Luke Wagner
5e9978f911 Bug 581263 - remove slow natives (r=waldo,mrbkap) 2010-08-16 12:35:04 -07: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
Igor Bukanov
edc6d00c4e bug 477999 - JS_SuspendRequest should suspend requests from all contexts . r=gal,anygregor 2010-08-30 20:46:18 +02:00
David Mandelin
de19395f25 [JAEGER] Merge from Tracemonkey. 2010-08-30 15:19:36 -07:00
David Mandelin
3dc48e12b2 [JAEGER] Merge from Tracemonkey. 2010-08-30 15:13:32 -07:00
David Mandelin
6d5af732b7 [JAEGER] Merge from Tracemonkey. 2010-08-30 12:03:59 -07:00
Brendan Eich
782ef24d23 Back out patch for 477999 due to assertbotch on Mac OS X trace-test shutdown, all tests. 2010-08-29 12:41:24 -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
78cdeefdf2 [JAEGER] Merge from Tracemonkey. 2010-08-24 11:56:29 -07:00
Jason Orendorff
efe79f8f4c Bug 583232 - Add rewrapping to jsapi.h. r=gal 2010-08-23 18:14:38 -04:00
Brian Hackett
a4a17593d6 Move cx->fp to cx->regs->fp, bug 588978. r=lw
--HG--
extra : rebase_source : 14a90a53ceeb1f65d0ab70eafb5371095535e66f
2010-08-22 16:00:20 -07:00
David Mandelin
02f201cead [JAEGER] Merge from tracemonkey. 2010-08-23 11:35:14 -07:00
Brian Hackett
53791f1d70 Move cx->fp to cx->regs->fp, bug 588978. r=lw 2010-08-22 16:00:20 -07:00
Jim Blandy
285b03968f Bug 438633: Give new JSScript objects lifetimes like GCThings. r=brendan
Attach script objects immediately in all JSAPI script-creating functions;
have JS_NewScriptObject simply return the already-allocated object; and
make JS_DestroyScript a no-op.

Verify that all scripts given to JSAPI script-consuming functions have
objects, or are the canonical empty script object.
2010-08-20 13:11:05 -07:00
Jim Blandy
16f4c21b3c Bug 585803: Pass TCF_NEED_MUTABLE_SCRIPT when producing scripts returned via JSAPI functions. r=brendan
All scripts produced using JSAPI functions should be able to have
JS_NewScriptObject applied to them. However, JS_CompileFile and
JS_CompileFileHandleForPrincipals fail to pass TCF_NEED_MUTABLE_SCRIPT, and
thus will occasionally return JSScript::emptyScript(); applying
JS_NewScriptObject to that causes a crash.
2010-08-20 13:11:04 -07:00
David Mandelin
67a9ce8c76 [JAEGER] Merge from tracemonkey. 2010-08-20 11:34:59 -07:00
Robert Sayre
d598acd055 Merge mozilla-central to tracemonkey. 2010-08-20 10:04:58 -04:00
David Mandelin
a21c621577 Merge from Tracemonkey. 2010-08-19 11:11:36 -07:00
Robert Sayre
43c1350df6 Merge mozilla-central to tracemonkey. 2010-08-19 11:18:37 -04:00
Gregor Wagner
77d8fcb9e6 Bug 572057 - TM: remove weak roots (pigeon hole) r=igor 2010-08-18 12:46:47 -07:00
David Mandelin
6f19cd8199 [JAEGER] Merge from Tracemonkey part 1: don't change visibility of JSStackFrame members yet 2010-08-16 15:37:15 -07:00
David Mandelin
066c9f1718 [JAEGER] Merge from Tracemonkey. scopeChain and blockChain are still public so I can check one thing at a time--this merge is brutal. 2010-08-16 14:59:44 -07:00
Brian Hackett
ed4defc8b5 Add interface for JSStackFrame.fun/script/thisv/rval, bug 586533. r=lw 2010-08-15 08:44:51 -04:00
Brian Hackett
da6f70519b Second try at adding interface for JSStackFrame.scopeChain/blockChain, bug 586533. r=lw 2010-08-13 23:36:37 -04:00
David Mandelin
a8a454c883 [JAEGER] Merge from tracemonkey. 2010-08-13 12:01:02 -07:00
Jason Orendorff
2ca54c3e0e Bug 585257 - "Assertion failure: obj == obj2". r=gal. 2010-08-13 08:17:29 -05:00
Robert Sayre
a00d7f60fe Backed out changeset 1406935fced4. Brian Hackett – Put JSStackFrame.scopeChain/blockChain behind an interface, bug 586533. r=lw. 2010-08-12 21:47:46 -07:00
Brian Hackett
a416b05f95 Put JSStackFrame.scopeChain/blockChain behind an interface, bug 586533. r=lw 2010-08-13 00:08:37 -04:00
Jason Orendorff
0a72eec1c8 Bug 584648 - Assertion failure: !entry->key.obj && entry->flags == 0. r=brendan. 2010-08-12 21:00:45 -05:00
Jim Blandy
4e04561ee9 Revert fixes for bug 438633, bug 585803 2010-08-12 14:07:52 -07:00
Jim Blandy
ce4b4e5c9e Bug 438633: Give new JSScript objects lifetimes like GCThings. r=brendan
Attach script objects immediately in all JSAPI script-creating functions;
have JS_NewScriptObject simply return the already-allocated object; and
make JS_DestroyScript a no-op.

Verify that all scripts given to JSAPI script-consuming functions have
objects, or are the canonical empty script object.
2010-08-12 12:38:37 -07:00
Jim Blandy
087a52be00 Bug 585803: Pass TCF_NEED_MUTABLE_SCRIPT when producing scripts returned via JSAPI functions. r=brendan
All scripts produced using JSAPI functions should be able to have
JS_NewScriptObject applied to them. However, JS_CompileFile and
JS_CompileFileHandleForPrincipals fail to pass TCF_NEED_MUTABLE_SCRIPT, and
thus will occasionally return JSScript::emptyScript(); applying
JS_NewScriptObject to that causes a crash.
2010-08-12 12:38:37 -07:00