Commit Graph

399 Commits

Author SHA1 Message Date
Jeff Walden
7b5179a175 Bug 514568 - Add JSObject::callIsForEval rather than using JSObject::getCallObjCallee() == NULL. r=igor 2011-01-05 14:54:04 -06:00
Jeff Walden
e93935e339 Bug 514568 - Trace strict eval frame Call objects correctly, keep the eval script safe from GC, and properly put strict eval Call objects when the script completes. r=igor 2011-01-05 13:55:18 -06:00
Jeff Walden
d6e9eb57fe Back out 86285f568e0c for orange. 2011-01-07 15:03:39 -06:00
Jeff Walden
8e764445c1 Bug 623301 - Properly root arguments names during a call to Function(). r=brendan
--HG--
extra : rebase_source : 62f1e5d974ef8a208d8c661dfb29f292371f8c14
2011-01-05 16:50:30 -06:00
Robert Sayre
a562bdb2a8 Backed out changeset 2e94f0b8d03c 2011-01-06 21:41:25 -05:00
Jeff Walden
9bfd43b2d9 Bug 514568 - Trace strict eval frame Call objects correctly, keep the eval script safe from GC, and properly put strict eval Call objects when the script completes. r=igor 2011-01-05 13:55:18 -06:00
Brendan Eich
042b55be8a Fix joined method leak via arguments.callee.caller (586482, r=igor). 2011-01-04 12:27:18 -08:00
David Anderson
0ad08b0222 Don't record setting upvars from nested trees (bug 620662, r=luke). 2011-01-05 15:21:59 -08: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
Brendan Eich
4d93d9cad7 Backing out last push. 2011-01-03 23:07:46 -08:00
Brendan Eich
3f2e5de43d Bug 586482 - arguments.callee.caller not equal to proto-delegated joined function object method (r=igor). 2010-11-11 10:06:56 -08:00
Nicholas Nethercote
42704598e2 Bug 610070 - Large amount of heap allocation from js::PropertyTable::init. r=brendan. 2011-01-03 17:14:55 -08:00
Luke Wagner
20d39d2639 Bug 614752 - Make js_ReportIsNotFunction allow deviation from simulated sp in either direction (r=brendan) 2011-01-03 09:06:35 -08: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
Brendan Eich
97408da376 Second followup for 619003, adding the jsreftest needed to cover the bug fixed by the first followup. Some comment tweaks too.
--HG--
rename : js/src/tests/js1_8_5/regress/regress-619003.js => js/src/tests/js1_8_5/regress/regress-619003-1.js
2010-12-29 17:16:46 -08:00
Brendan Eich
0e94dad967 Restore append-only fun->u.i.names rule by binding destructured-to vars for destructuring args after binding all args (619003, r=igor). 2010-12-27 15:10:58 -08:00
Jeff Walden
e2834ef56d Require JSFunction::inStrictMode() callers to check for isInterpreted() first, since most already know that the function in question is interpreted. r=dmandelin 2010-12-22 21:06:08 -05:00
Bill McCloskey
9090d0a347 Bug 584860 - TraceMonitor cleanups (r=igor) 2010-12-22 14:00:06 -08:00
Bill McCloskey
c8eee530e2 Bug 584860 - Move TraceMonitor into compartment (r=gal) 2010-12-22 12:02:25 -08:00
Brendan Eich
3705041036 Determine whether to shadow a property based on slotful *or* has JSPropertyOp setter (552432, r=jorendorff). 2010-12-13 18:10:39 -08:00
Luke Wagner
d8719356c0 Bug 609440, part 4 - make JSString::chars() fallible (r=waldo,dvander,igor,dwitte,njn) 2010-12-06 10:26:58 -08:00
Nicholas Nethercote
1f1fbee591 Backed out changeset 0343557b0c7a due to orange. 2010-12-13 18:43:11 -08:00
Nicholas Nethercote
225d4f7e2d Bug 610070 - Large amount of heap allocation from js::PropertyTable::init. r=brendan. 2010-12-13 16:43:39 -08:00
Jeff Walden
c39f97db70 Convert JSScript::*Offset into offsets from the end of JSScript, not from its start, to escape an offset <= 0xFF requirement failing due to an impending increase in the size of JSScripts for bug 614493. r=brendan
--HG--
extra : rebase_source : 8c4046bdc99b8280d414cba864b7d5e1b1f25331
2010-12-02 14:23:51 -08:00
Jeff Walden
f432da735d Bug 614333 - Remove the empty-script singleton optimization: it is effectively disabled with the methodjit, and its use of a single const JSScript for everything (including across compartments) interferes with recording name bindings in scripts, in order to correctly implement strict mode eval. r=brendan
--HG--
extra : rebase_source : 38a7faedb4b090e844cc342c82b273c75ef763bb
2010-11-16 15:30:56 -08:00
Jason Orendorff
40cdddfee7 Bug 617405 - Assertion failure: isObject() after defining getter on .prototype property of constructor. Take 2, removes two wrong tests. r=Waldo. (Additional r=Waldo on IRC to remove the tests.)
--HG--
extra : rebase_source : 288d966f1ee349e489e0151f8b2672ce4b611c56
2010-12-08 17:01:42 -06:00
Jason Orendorff
02972ef6e4 Backed out changeset b890994e2595. Orange. 2010-12-08 17:42:35 -06:00
Jason Orendorff
66de58ce24 Bug 617405 - Assertion failure: isObject() after defining getter on .prototype property of constructor. r=Waldo.
--HG--
extra : rebase_source : 63c64f5435059473fdc3d2cff7df906628c2a760
2010-12-08 17:01:42 -06:00
Nicholas Nethercote
fecf9a1832 Bug 588648 - Don't copy chars when scanning. r=brendan. 2010-12-07 15:22:52 -08:00
Jeff Walden
88d923a99a Bug 614338 - Move some call object property methods into the js namespace. r=dmandelin
--HG--
extra : rebase_source : 3816a3ae6d775e5866030c8a51cc305f09dda1f2
2010-11-16 15:30:57 -08:00
Igor Bukanov
5d06dd5a14 Bug 599610 - making sure that PurgeScriptFragments collects all fragments 2010-10-06 17:21:23 +02:00
Igor Bukanov
52ea348c4c bug 610198 - Replacing JS_GetStringBytes usage with JS_EncodeString. r=gal 2010-11-11 21:40:29 +01:00
David Anderson
7487c14d37 Backed out changeset 8e119f847f97 (build busted) 2010-11-11 11:19:42 -08:00
Igor Bukanov
e32ba97023 bug 610198 - Replacing JS_GetStringBytes usage with JS_EncodeString. r=gal 2010-11-02 15:36:25 +01:00
Brendan Eich
cda8308ccf Add FIXME: bug 611190 for last commit (which was for bug 550391). 2010-11-10 18:14:35 -08:00
Brendan Eich
a1f16f2371 Lots of MISMATCH_EXITS exits due to protohazardshape on voxel rendering demo (550391, r=mrbkap). 2010-11-10 10:59:02 -08:00
Brendan Eich
7ca60435b0 Lazy resolution of standard classes changes the shape of Object.prototype (610697, r=mrbkap).
--HG--
extra : rebase_source : 7d95f23e2dbf9b11a416f07ae51d409d95e130cb
2010-11-09 12:09:07 -08:00
Igor Bukanov
92b67c9caf bug 607695 - Avoid unnecessary JS_GetStringBytes. r=gal 2010-10-28 17:15:53 +02:00
Luke Wagner
f57c947fc9 Bug 605192 - JM: make f.apply(x, obj) fast, part 4 (r=dvander)
--HG--
extra : rebase_source : 2dec4f92e1306ef1594262607ffca908b9ed1c64
2010-10-21 11:33:22 -07:00
Luke Wagner
977a639eeb Bug 605192 - JM: make f.apply(x, obj) fast, part 1 (r=waldo)
--HG--
extra : rebase_source : cceaabf5a68cae8bfa67320b4a47f0673ade86c6
2010-10-20 23:52:55 -07:00
Chris Leary
8692140272 Bug 607724: Minor scope chain function cleanup. (r=mrbkap) 2010-10-27 16:18:16 -07:00
Bill McCloskey
efc89ce679 Bug 563126 - Rename JS instruction tracing -> logging, and ensure it doesn't convert call objs (r=brendan) 2010-10-26 12:07:26 -07:00
Jeff Walden
ca6294d553 Bug 607148 - Remove unnamed namespaces from SpiderMonkey code. rs=luke 2010-10-25 16:47:11 -07:00
Andreas Gal
257334300b Backed out changeset 685accd622f0 (bug 606065). 2010-10-24 13:21:33 -07:00
Andreas Gal
61a710e895 Move deflated string cache into compartment (606065, r=jorendorff). 2010-10-24 02:07:42 -07:00
Jason Orendorff
bfaf004fd7 Merge. 2010-10-22 19:11:26 -05:00
Jason Orendorff
596862d852 Remove JSObject::title. Bug 606029, r=igor. 2010-10-22 19:04:22 -05:00
Andreas Gal
a4b0c37cda Remove obsolete wrappedObject extended class hook (604523, r=mrbkap/vlad/dvander). 2010-10-22 15:40:11 -07:00
Andreas Gal
6e672eda05 Backed out changeset 438afef93fd5 (bug 604523) due to suspected orange. 2010-10-20 23:19:05 -07:00