Commit Graph

587 Commits

Author SHA1 Message Date
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
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
David Mandelin
904ccc994c Merge from Tracemonkey. 2010-07-27 11:48:08 -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
ff0430908b Consolidate GC heuristics (580803, r=igor). 2010-07-23 15:17:42 -07:00
Igor Bukanov
6b8de5f2a8 bug 576596 - follow up to rename js_HasInstance into HasInstance
--HG--
extra : rebase_source : 2f4d4db7a849d3683a85f971e88855b1e72d8398
2010-07-23 23:56:16 +02:00
David Mandelin
cf0c3c24a7 Merge from tracemonkey. 2010-07-22 18:31:01 -07:00
Luke Wagner
3a499b8646 Bug 579183 - CallStack was a confusing name, CallStackSegment is more accurate (r=dvander) 2010-07-22 13:46:43 -07:00
David Anderson
cf5a8cf505 [JAEGER] Merge from tracemonkey. 2010-07-19 20:49:26 -07:00
Blake Kaplan
de74d9d8f4 Bug 563106 - Tie XPConnect to compartments. r=jorendorff/gal/jst 2010-07-19 13:36:49 -07:00
Dan Witte
53a5ef6fe9 Merge mozilla-central -> e10s. 2010-08-13 21:24:11 -07:00
Taras Glek
c3b1e9d1a0 Bug 580407 - Link js statically r=bsmedberg+khuey a=bsmedberg 2010-08-13 21:18:05 -07:00
Blake Kaplan
443e8e48fa Bug 577750 - Make computing global this a little simpler. r=jorendorff 2010-07-15 23:49:13 -07:00
Alan Pierce
52ba5c3616 Bug 571579 - Implement ropes (r=gal) 2010-07-16 17:41:22 -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
Jacek Caban
f55478a89b Bug 578340 - Sync jschar and PRUnichar on Windows r=jorendorff 2010-07-23 17:03:43 +02:00
Igor Bukanov
8e449d33fb bug 580458 - trigger operation callback once per thread, not once per cx. r=gal,mrbkap 2010-07-22 22:59:59 +02:00
David Anderson
0ddb5ebacc [JAEGER] Unbroke build, merge merge merge. 2010-07-05 20:14:42 -07: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
b6c66a4c30 Forgot to teach conservative GC about jsid type 2010-07-05 01:41:42 -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
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
Chris Leary
aa4f41d836 Bug 576148: Factor out js::UpvarCookie. (r=mrbkap, dvander) 2010-07-02 13:37:39 -07:00
Luke Wagner
15a253d499 Merge 2010-07-01 23:10:37 -07:00
Luke Wagner
d1c1fdd62b Fix build bustage on MSVC 2010-06-30 18:05:19 -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
f82e2f8002 Take the "Raw" out of MarkRaw and MarkGCThingRaw. It offends Andreas, and it might be a bad name 2010-06-29 23:02:23 -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
b8a731853a Put JSContext argument back at the end of SameValue (apparently that means something) 2010-06-29 02:08:07 -07:00
David Anderson
b9fd0759f7 [JAEGER] Merge from fatval. 2010-06-28 18:16:12 -07:00
Luke Wagner
ab3a0d3ffa Add 64-bit tracing support 2010-06-28 18:08:28 -07:00
David Anderson
b8b42cf3b3 [JAEGER] Merge from fatval. 2010-06-28 15:53:37 -07:00
David Anderson
da423a57a7 Fixed Linux 64-bit opt build. 2010-06-28 15:51:50 -07:00
Igor Bukanov
d7aedab4b6 bug 552266 - Allow for only one JSContext to be in a request on a given thread. r=mrbkap 2010-06-26 22:31:54 +02:00
Andreas Gal
4e11d941dd Disentangle cycle collector and JS GC (549806, r=peterv/igor). 2010-07-15 17:58:36 -07:00
Andreas Gal
f8afdf22b4 Backed out bug 549806. Very frustrating. 2010-07-15 15:39:06 -07:00
Andreas Gal
a148529929 Disentangle cycle collector and JS GC (549806, r=peterv, igor). 2010-07-15 10:21:34 -07:00
Luke Wagner
99411cc93d Bug 549143 - fatvals 2010-07-14 23:19:36 -07:00
Chris Leary
94f23c0a06 Arena pool macros don't want to die. 2010-07-11 00:09:34 -07:00
Chris Leary
48398c7423 Bug 559408: Arena macros to methods. (r=galish) 2010-07-10 23:19:14 -07:00
Robert Sayre
2a902f1084 Merge. 2010-07-08 18:18:36 -07:00
Robert Sayre
34b4182b78 Merge mozilla-central to tracemonkey. 2010-07-08 18:15:52 -07:00
Andreas Gal
9f011207b0 re-seed PRNG when clearing the scope (577512, r=bz). 2010-07-08 16:00:54 -07:00
David Anderson
a3709f170d [JAEGER] Merge from fatval branch. 2010-06-24 11:18:01 -07:00
Andrew Drake
30a3cc58b6 [JAEGER] Fix build on pedantic compilers, fix win32 shell. r=dvander 2010-06-22 19:11:50 -07:00
Luke Wagner
bae4687e65 Reuse existing JS_ValueToId instead of introducing new JSVAL_TO_JSID 2010-06-22 11:51:46 -07:00
Luke Wagner
7db2d34bde Merge 2010-06-21 16:30:17 -07:00
Luke Wagner
ebb2d4890b Be careful when using setDouble that we shouldn't use setNumber instead to fit in an int when possible. Was missing a lot in jsdate.cpp 2010-06-21 16:28:02 -07:00
David Mandelin
4ab1d47307 Bug 573578: intern string before converting to jsid in PropertyOpForwarder 2010-06-21 16:07:31 -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
David Anderson
b4060da2c5 Bug 567577 - new Math.sin is NaN, not an object, in interpreter only. r=Waldo. 2010-06-28 14:49:12 -05:00
Chris Leary
908f8ec587 Back out f8c6a272f2dc. It was working on Try a few minutes ago, I swear! (r=red) 2010-06-26 18:09:07 -07:00
Chris Leary
52608d352b Bug 559408: Turn arena pool macros into methods. (r=gal) 2010-06-26 17:55:00 -07:00
Andreas Gal
b74167790a Resort to default compartment when global object is set to NULL (r=crash on startup). 2010-06-24 20:13:22 -05:00
Jason Orendorff
5eed79e767 Bug 574320 - Tweaks to compartments API. r=gal. 2010-06-24 16:44:18 -05:00
Andreas Gal
1efe5e2ec6 Implement runtime-wide wrap hook (574299, r=mrbkap). 2010-06-24 16:45:32 -05:00
Igor Bukanov
2019c722fb bug 571789 - merging JSObjectOps and JSExtendedClass into JSClass. r=jorendorff 2010-06-12 18:29:04 +02:00