Commit Graph

442 Commits

Author SHA1 Message Date
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
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
Blake Kaplan
443e8e48fa Bug 577750 - Make computing global this a little simpler. r=jorendorff 2010-07-15 23:49:13 -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
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
Gregor Wagner
e265b8c778 Bug 581589 - TM: add defaultCompartment to compartments array (r=gal) 2010-08-05 15:48:34 -07:00
Luke Wagner
c650a3d7e3 Bug 584168 - consider canonicalizing nans passed to the JSAPI (r=brendan) 2010-08-04 04:13:19 -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
Igor Bukanov
2019c722fb bug 571789 - merging JSObjectOps and JSExtendedClass into JSClass. r=jorendorff 2010-06-12 18:29:04 +02:00
Andreas Gal
69df940a4e Back out bug 580803. 2010-07-28 11:20:19 -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
a69fd0a49f bug 571789 - merging JSObjectOps and JSExtendedClass into JSClass. r=jorendorff 2010-06-12 18:29:04 +02: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
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
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
Luke Wagner
3a499b8646 Bug 579183 - CallStack was a confusing name, CallStackSegment is more accurate (r=dvander) 2010-07-22 13:46:43 -07:00
Blake Kaplan
de74d9d8f4 Bug 563106 - Tie XPConnect to compartments. r=jorendorff/gal/jst 2010-07-19 13:36:49 -07:00
Alan Pierce
52ba5c3616 Bug 571579 - Implement ropes (r=gal) 2010-07-16 17:41:22 -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
Chris Leary
aa4f41d836 Bug 576148: Factor out js::UpvarCookie. (r=mrbkap, dvander) 2010-07-02 13:37:39 -07:00
timeless@mozdev.org
3530aac334 Bug 555686 scope is never used in JS_NextProperty
r=jorendorff

--HG--
extra : rebase_source : 65aaf4e7c50880e467fec4397bf9a514eee5dd38
2010-05-25 04:11:48 +03: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
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
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