Commit Graph

342 Commits

Author SHA1 Message Date
David Mandelin
072b39fb42 Bug 584603: don't optimize names to JSOP_GETGLOBAL if the function contains JSOP_DEFFUN, r=dvander 2010-11-11 16:51:30 -08: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
Jim Blandy
15430ee67a Bug 553778: Don't orphan placeholder definition nodes when a real definition is found. r=brendan
When we incorporate an inner function's lexdeps into our own lexdeps and
decls tables, always create a fresh definition node for an identifier we
don't have an entry for yet, and turn the inner definition node into a use
of that definition, to ensure that references to those definitions from
TOK_UPVARS nodes properly resolve to the outer definitions that capture
them.

This patch also changes MakePlaceholder to initialize the new node's type
and op. Normally, JSParseNode::create initializes them from the current
token, but that creates a fragile dependency of placeholder construction on
lexing state, and is not actually what two out of (now) three call sites
want.
2010-11-10 13:18:15 -08:00
Brendan Eich
769e50b90a Bug 609617 - delete(eval(...)) calls indirect eval (r=jimb). 2010-11-04 16:06:08 -07:00
Luke Wagner
c8b83168a6 Bug 543100 - Shrink Parser::statement stack frame size (r=waldo)
--HG--
extra : rebase_source : f0e11ae51ced168b5c575a2840077393a1179d00
2010-11-05 11:10:02 -07:00
Igor Bukanov
92b67c9caf bug 607695 - Avoid unnecessary JS_GetStringBytes. r=gal 2010-10-28 17:15:53 +02:00
Luke Wagner
4cb9b47a90 Bug 602129 - JM: make f.call(...) fast, part 1 (r=dvander)
--HG--
extra : rebase_source : 5b1a307aee78390c146bb10eb5f998847d20a0b1
2010-10-13 15:57:42 -07:00
Jason Orendorff
596862d852 Remove JSObject::title. Bug 606029, r=igor. 2010-10-22 19:04:22 -05:00
Bill McCloskey
c685845c26 Bug 596364 - Allow the trace JIT to tell the method JIT to unblacklist a loop (r=dvander) 2010-10-19 11:08:25 -07:00
Bill McCloskey
88e727ada5 Bug 601395 - Fix parent pointer tracking for block objects (r=cdleary) 2010-10-18 11:34:57 -07:00
Jeff Walden
f8640c1804 Fix old comment referring to eval cache code being in obj_eval. r=waylon
--HG--
extra : rebase_source : d16f94910568917291fb0b28b124e1632c1f02af
2010-10-11 11:49:29 -07:00
Jeff Walden
4626f47ec6 Bug 514570 - 3 - Don't box |this| for strict mode functions. r=jorendorff 2010-10-12 11:50:03 -07:00
Jason Orendorff
630900ee20 Finally get rid of /* Added by JSIFY */ comments. r=Waldo. 2010-10-01 18:46:54 -05:00
Bill McCloskey
20e3b7290e Bug 535912 - Eliminate blockChain from JSStackFrame (r=cdleary) 2010-09-29 13:21:36 -07:00
David Anderson
2f002d500e Add local and argument closure information to JSScript (bug 592973, r=brendan+dmandelin).
--HG--
extra : rebase_source : 3d36a7908230006f2b048835f7526962fac2b32b
2010-09-13 22:33:44 -07:00
David Anderson
2804cac937 Fix closed-name analysis in with-statements (bug 593556, r=brendan).
--HG--
extra : rebase_source : 3ca35ee12087fe262ec147d571900fb94e809979
2010-09-28 21:09:21 -07:00
Gregor Wagner
fdb731becb Bug 558861 - Compartmental GC (r=gal) 2010-09-24 10:54:39 -07:00
David Anderson
52761821cf Fix global variables overwriting resolved properties (bug 595917, r=brendan). 2010-09-21 12:38:30 -07:00
Dave Herman
9d8c1a41fa bug 569464, r=brendan: bad let-expression-statements in strict mode 2010-09-14 19:53:35 -07:00
Chris Leary
269a7d6bab Bug 571355: Move RegExpStatics out of JSContext. (r=gal) 2010-09-13 15:53:50 -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
David Anderson
aa2dda885e [JAEGER] Removed bogus assert in global var prediction (bug 591606, r=dmandelin). 2010-08-30 19:04:23 -07:00
David Mandelin
d27af4b94d [JAEGER] Fix browser build bustage left from merge. 2010-08-30 15:21:29 -07:00
David Mandelin
3dc48e12b2 [JAEGER] Merge from Tracemonkey. 2010-08-30 15:13:32 -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
8057a267e7 [JAEGER] Bug 590088: copy only variables into call objects that may be referred to later, r=dvander 2010-08-27 15:54:30 -07:00
David Mandelin
a21c621577 Merge from Tracemonkey. 2010-08-19 11:11:36 -07:00
David Mandelin
d32d792513 [JAEGER] Merge from tracemonkey. Note that we will currently fail one trace test that was recently added. There is a bug in that test that will be fixed posthaste. 2010-08-17 15:32:40 -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
Brian Hackett
ed4defc8b5 Add interface for JSStackFrame.fun/script/thisv/rval, bug 586533. r=lw 2010-08-15 08:44:51 -04:00
David Mandelin
9376a78c81 [JAEGER] Merge from Tracemonkey. This picks up Yarr. 2010-08-12 11:42:16 -07:00
Jeff Walden
24f0559035 Bug 516255 - Eagerly copy initial parameter values into the arguments object when a function's parameters might be mutated, and rely on normal resolution behavior in the remaining cases when parameters are never modified. r=dmandelin 2010-08-11 23:27:33 -07:00
Jeff Walden
b87fb56e06 Bug 516255 - Start analyzing named-parameter assignments in strict mode functions to determine when to eagerly create an arguments object and when creation can be deferred. r=dmandelin 2010-08-11 23:27:03 -07:00
Chris Leary
e0ace5bc86 Bug 564953: Port YARR! Lands macroassembler. (r=gal) 2010-08-11 13:30:07 -07:00
David Anderson
784866e48c [JAEGER] Eagerly initialize Function, Object classes before compiling (bug 582286, rs=brendan). 2010-08-03 19:18:05 -07:00
Jeff Walden
ba064bca66 Bug 536472 - ES5: getters in object literals must have no arguments, and setters in object literals must have one argument. r=cdleary
--HG--
extra : rebase_source : 5335e6ebd22d8bc2255a3ddc7a7fcbb944dacd40
2010-08-02 12:35:08 -07:00
Jeff Walden
0e3e62e14e Bug 536472 - Move argument parsing into a new function. r=cdleary
--HG--
extra : rebase_source : c22845afb7f961e7347cb22b60bbefef1c9defaf
2010-07-29 13:54:47 -07:00
Jeff Walden
f78ef6bfbf Bug 536472 - Move name parsing from function parsing into the callers, as needed. r=cdleary
--HG--
extra : rebase_source : 002477269ebd8dc3a5a474c4d9d60b232190e0e1
2010-07-29 13:49:03 -07:00
Jeff Walden
d87075cb43 Bug 536472 - Remove unnecessary getter/setter-setting in JSFunction::flags code. r=cdleary
--HG--
extra : rebase_source : c8365682d92693493adaa74f5f69e8837d1bd5cd
2010-07-28 15:52:15 -07:00
David Mandelin
a73ecdeee1 Merge from Tracemonkey. 2010-07-28 11:16:36 -07:00
David Mandelin
904ccc994c Merge from Tracemonkey. 2010-07-27 11:48:08 -07:00
Jeff Walden
ea07e60efa Bug 536472 - Parser::functionDef declaration-delaying. r=cdleary
--HG--
extra : rebase_source : cf878ea44079cf562eb433b01ffe945431c47c88
2010-07-26 16:11:40 -07:00
David Mandelin
882f581f03 [JAEGER] Bug 582039: deoptimize globals if the initial var object is not the global object, r=dvander 2010-07-26 14:36:32 -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