Commit Graph

652 Commits

Author SHA1 Message Date
Andreas Gal
96223bbef4 Make functions per compartment, and deep copy instead of clone them if needed (584789, r=mrbkap). 2010-09-29 23:17:29 -07:00
Blake Kaplan
a44ad43150 bug 580128 - Fix more compartment warnings. Work of multiple people. r=gal/peterv/jst 2010-10-10 15:37:19 -07:00
Blake Kaplan
c563e195ac bug 580128 - Allow API consumers to pass in a new object altogether before trying to wrap in a security wrapper. r=gal/peterv 2010-10-10 15:36:38 -07:00
Blake Kaplan
9b63ed2490 bug 580128 - Fix bugs dealing with transplanting when navigating. r=gal 2010-09-28 17:02:43 -07:00
Jason Orendorff
e71e7e1578 bug 580033 - Make JS_Save/RestoreFrameChain set cx->compartment. r=mrbkap 2010-09-27 18:24:24 -07:00
Andreas Gal
04c3f3cf48 bug 599503 - Return true compartment info from JSObject::getCompartment(). r=jorendorff/gregor/gal 2010-09-27 13:49:09 -07:00
Brian Hackett
0d369b900f Add interruptCounter to JSRuntime for JM, bug 589193. r=igor,dvander 2010-09-20 16:21:49 -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
Blake Kaplan
2ce9a1fca4 bug 580128 - Propagate whether we're getting or setting to getPropertyDescriptor. r=gal 2010-09-17 14:54:41 -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
Blake Kaplan
ca33e41f5d Bug 610078 - Return the value when we found it on a proxy. r=brendan a=blocking betaN 2010-11-05 18:25:37 -07:00
Blake Kaplan
3c355b8fa0 bug 580128 - Give API consumers a way to perform "brain transplants" on an object. r=gal 2010-09-17 14:54:40 -07:00
David Anderson
552330f091 ICs for scripted new (bug 589398, r=luke,dmandelin).
--HG--
extra : rebase_source : d7311ce916e8d6c876d1851090806bc7d073bd63
2010-10-04 14:13:33 -07:00
David Anderson
6dbf424efd Backed out changeset de5d1b528b9a 2010-10-04 15:12:00 -07:00
David Anderson
6ddd3429fc ICs for scripted new (bug 589398, r=luke,dmandelin). 2010-10-04 14:13:33 -07:00
Jason Orendorff
c1daff3aa7 Rename JS_{Read,Write}Pair to JS_{Read,Write}Uint32Pair as suggested by Brendan. Followup to bug 595297. 2010-10-02 09:41:18 -05:00
Brian Hackett
abdc87c9ca Header changes for sixgill, annotations. bug 601129, r=jorendorff 2010-10-01 21:00:55 -07:00
Jason Orendorff
630900ee20 Finally get rid of /* Added by JSIFY */ comments. r=Waldo. 2010-10-01 18:46:54 -05:00
Gregor Wagner
9aad841305 Bug 594455 Add assertions for defaultCompartments. r=jorendorff 2010-10-01 11:10:30 -07:00
Jason Orendorff
00704fa52d Bug 595297 - Portable serialize/deserialize implementation of the HTML5 structured cloning algorithm (jsclone.cpp). r=gal. 2010-09-30 19:47:10 -05:00
Andreas Gal
331dc80c9e Backout bug 584789, has to go into blake's patch queue, event't handlers don't set the right compartment in TM tip. 2010-09-30 00:05:33 -07:00
Andreas Gal
dd4d8530b1 Make functions per compartment, and deep copy instead of clone them if needed (584789, r=mrbkap). 2010-09-29 23:17:29 -07:00
Andreas Gal
e80492a92a Back out bug 584789. 2010-09-29 20:38:03 -07:00
Andreas Gal
650aaf4f01 Make functions per compartment, and deep copy instead of clone them if needed (584789, r=mrbkap). 2010-09-29 19:42:22 -07:00
Andreas Gal
1649ef6d21 Always create a dummy stack frame when crossing compartment boundaries (bug 600015, r=mrbkap). 2010-09-27 15:55:15 -07:00
Gregor Wagner
02421e6aa4 Bug 599801 - TM: Clean up Compartment (de)construction. r=sayrer 2010-09-27 15:35:10 -07:00
Igor Bukanov
b8792e95c1 bug 597736 - fixing TreeFragment leak. r=gal 2010-09-21 14:58:19 +02:00
Gregor Wagner
fdb731becb Bug 558861 - Compartmental GC (r=gal) 2010-09-24 10:54:39 -07:00
Chris Leary
a9624ec341 Back out b70659aca040, burning XPCShell tests. (no_r=me) 2010-09-23 16:48:35 -07:00
Chris Leary
203741ee8e Bug 596580: fix versioning on mozJSSubScriptLoader. (r=sayrer,brendan)
--HG--
extra : rebase_source : fb2fe804a3f94bc9d6947605ce0e0c19a29b2227
2010-09-23 14:48:58 -07:00
Jim Blandy
9b88f70086 Bug 492845: Implement Object.isSealed, Object.seal. a=jwalden, r=brendan 2010-09-21 11:35:30 -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
Jim Blandy
ad83424ea2 Bug 594574: Change GetPropertyNames to take its out-parameter by address, not by non-const reference. r=brendan 2010-09-21 11:35:29 -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
David Mandelin
9376a78c81 [JAEGER] Merge from Tracemonkey. This picks up Yarr. 2010-08-12 11:42:16 -07:00
Igor Bukanov
5b9726fc8e bug 477999 - JS_SuspendRequest should suspend requests from all contexts. r=anygregor,gal
--HG--
extra : rebase_source : 593bcd06380a6d6ade3da1ffed11eeb18b43cdfd
2010-08-12 15:02:51 +02:00
Robert Sayre
3479a7bbbf Fix bustage on Mac PPC. 2010-08-11 15:44:32 -07:00
Chris Leary
e0ace5bc86 Bug 564953: Port YARR! Lands macroassembler. (r=gal) 2010-08-11 13:30:07 -07:00
David Mandelin
acfc0bc281 [JAEGER] Merge from tracemonkey. 2010-08-11 11:30:10 -07:00
David Mandelin
17a258c673 [JAEGER] Merge from tracemonkey. 2010-08-11 11:23:29 -07:00
David Mandelin
4b7d4e43d2 [JAEGER] Merge from tracemonkey. 2010-08-11 11:05:24 -07:00
Igor Bukanov
32c740b945 bug 568730 - folloup to add missing activity callback null check 2010-08-10 15:32:33 +02:00
Alon Zakai
8ba541a087 Bug 568730 - Allow customizing the sleep duration in XPCJSRuntime::WatchdogMain. r=igor/jst/gal 2010-08-09 16:39:28 -07:00
Steve Fink
082cfbef39 Bug 507012: function call/return callback for profiling, r=dmandelin, a=sayrer 2010-08-09 13:38:13 -07:00
Paul Biggar
6634b70997 Split object/function allocation paths to avoid branch (578158, r=brendan). 2010-08-09 09:11:22 -07:00
Gregor Wagner
35c318f12b Bug 583598 - GC-related JS_ASSERT (r=igor) 2010-08-07 18:56:24 -07:00
David Mandelin
df3e6a9e74 [JAEGER] Merge from tracemonkey. 2010-08-09 11:36:39 -07:00
David Mandelin
b3eb68b6e5 [JAEGER] Merge from tracemonkey. 2010-08-06 15:39:15 -07:00
Gregor Wagner
e265b8c778 Bug 581589 - TM: add defaultCompartment to compartments array (r=gal) 2010-08-05 15:48:34 -07:00
David Mandelin
48342132f5 Merge from Tracemonkey. 2010-08-04 11:30:05 -07:00
Luke Wagner
c650a3d7e3 Bug 584168 - consider canonicalizing nans passed to the JSAPI (r=brendan) 2010-08-04 04:13:19 -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