Commit Graph

81251 Commits

Author SHA1 Message Date
Chris Pearce
801e705807 Bug 704039 part 2 - Implement full-screen mode rollback stack. r=bz 2011-12-07 10:59:39 +13:00
Chris Pearce
40cb2a0345 Bug 704039 part 1 - Rename nsDocument::SetFullScreenState(Element*,bool) to nsDocument::SetFullScreenElement(Element*). r=bz 2011-12-07 10:59:27 +13:00
Igor Bukanov
072afd2333 Bug 707664 - atoms compartment should beunlocked during OOM reporting. r=luke 2011-12-05 21:28:07 +01:00
Igor Bukanov
d5bca61dfd Bug 707130 - Fix GCC 4.6 warnings coming from callgrind macros. r=jorendorff 2011-12-04 23:59:30 +01:00
Vladan Djeric
ac366d7537 Bug 699051. Report slow prepared SQL statements to Telemetry. r=sdwilsh.
--HG--
extra : rebase_source : dcf66cca7ae7b603b77a6bdacb50b3df1c0442ce
2011-12-06 15:12:55 -05:00
Chris Leary
2d56623ee9 Bug 704369: Factor unary emit. (r=Waldo) 2011-11-22 12:13:41 -08:00
Chris Leary
460f707092 Bug 704369: Move unary emit. (r=Waldo) 2011-11-22 12:10:21 -08:00
Chris Leary
0a23856abb Bug 704369: Factor array emit. (r=Waldo) 2011-11-22 12:04:57 -08:00
Chris Leary
2032a479d9 Bug 704369: Move array emit. (r=Waldo) 2011-11-22 12:03:16 -08:00
Chris Leary
365d5cb657 Bug 704369: Factor object emit. (r=Waldo) 2011-11-22 11:55:04 -08:00
Chris Leary
389713c2fb Bug 704369: Move object emit. (r=Waldo) 2011-11-22 11:52:51 -08:00
Chris Leary
7745f6225f Bug 704369: Factor conditional expr emit. (r=Waldo) 2011-11-22 11:46:18 -08:00
Chris Leary
0e654a6c18 Bug 704369: Move conditional expr emit. (r=Waldo) 2011-11-22 11:45:30 -08:00
Chris Leary
597c0688c7 Bug 704369: Move synthetic statements emit. (r=Waldo) 2011-11-22 11:42:27 -08:00
Chris Leary
bebfdafb67 Bug 704369: Factor label emit. (r=Waldo) 2011-11-22 11:32:41 -08:00
Chris Leary
259d94c08e Bug 704369: Move label emit. (r=Waldo) 2011-11-22 11:31:35 -08:00
Chris Leary
019a01edc6 Bug 704369: Factor inc/dec emit. (r=Waldo) 2011-11-22 11:28:39 -08:00
Chris Leary
50972c49bb Bug 704369: Move inc/dec emit. (r=Waldo) 2011-11-22 11:26:47 -08:00
Chris Leary
2c5efb6b54 Bug 704369: Factor logical emit. (r=Waldo) 2011-11-22 11:23:52 -08:00
Chris Leary
203e7ed504 Bug 704369: Move logical emit. (r=Waldo) 2011-11-22 11:21:28 -08:00
Chris Leary
b0b21c4703 Bug 704369: Factor call/new emit. (r=Waldo) 2011-11-22 11:17:42 -08:00
Chris Leary
53fdd77185 Bug 704369: Move call/new emit. (r=Waldo) 2011-11-22 11:16:49 -08:00
Chris Leary
4ef470d2b4 Bug 704369: Factor delete emit. (r=Waldo) 2011-11-22 11:12:12 -08:00
Chris Leary
cac1e70334 Bug 704369: Move delete emit. (r=Waldo) 2011-11-22 11:09:15 -08:00
Chris Leary
6a71cf368f Bug 704369: Factor statements emit. (r=Waldo) 2011-11-22 11:05:32 -08:00
Chris Leary
fc83a52493 Bug 704369: Move statements emit. (r=Waldo) 2011-11-22 10:59:25 -08:00
Chris Leary
5768ef7d97 Bug 704369: Factor return emit. (r=Waldo) 2011-11-22 10:48:49 -08:00
Chris Leary
a93ced5fd1 Bug 704369: Move return emit. (r=Waldo) 2011-11-22 10:47:24 -08:00
Chris Leary
f8134f3546 Bug 704369: Factor continue emit. (r=Waldo) 2011-11-22 10:45:37 -08:00
Chris Leary
d99969042a Bug 704369: Move continue emit. (r=Waldo) 2011-11-22 10:43:10 -08:00
Chris Leary
a9f171e11c Bug 704369: Factor break emit. (r=Waldo) 2011-11-22 10:41:11 -08:00
Chris Leary
9871fc84fa Bug 704369: Move break emit. (r=Waldo) 2011-11-22 10:40:06 -08:00
Chris Leary
49f2e349f3 Bug 704369: Factor while emit. (r=Waldo) 2011-11-22 10:37:25 -08:00
Chris Leary
5787980ae7 Bug 704369: Move while emit. (r=Waldo) 2011-11-21 17:59:27 -08:00
Chris Leary
efabf9287d Bug 704369: Factor do-while emit. (r=Waldo) 2011-11-21 17:56:17 -08:00
Chris Leary
7e53b59f0e Bug 704369: Move do-while emit. (r=Waldo) 2011-11-21 17:54:57 -08:00
Chris Leary
8ac39a0b8a Bug 704369: Factor function emit. (r=Waldo) 2011-11-21 17:50:43 -08:00
Chris Leary
c65cde124f Bug 704369: Move function emit. (r=Waldo) 2011-11-21 17:29:56 -08:00
Chris Leary
d0ca3bb198 Back out c0e237b26fe2 because it's folded. (r=#jsapi) 2011-12-06 11:52:59 -08:00
Jim Blandy
f02ea01423 Bug 687683: Collect resumption values from onEnterFrame handlers, and respect them. r=jorendorff
This patch makes SpiderMonkey respect resumption values returned by
Debugger onEnterFrame handler functions, as documented.

In Debugger, we change fireEnterFrame to collect a resumption value from
the hook, and change onEnterFrame and slowPathOnEnterFrame to propagate
them out. These now need an 'rval' argument, so that they can return forced
return values and exceptions.

ScriptDebugPrologue now accepts a JSTrapStatus from Debugger::onEnterFrame,
takes care of placing the return value or exception where it belongs, and
returns a JSTrapStatus.

Calls to ScriptDebugPrologue now handle the JSTrapStatus:
- at the head of js::Interpret;
- in the JSOP_NEW/JSOP_CALL/JSOP_FUNCALL/JSOP_FUNAPPLY case;
- in stubs::ScriptDebugPrologue, which JM epilogues call; and
- in the REJOIN_THIS_PROTOTYPE case in js_InternalInterpret (you must add a
  JS_GC call to ic::GetPropNoCache for Debugger-onEnterFrame-resumption-05.js to
  hit this reliably).

We also rearrange the js_InternalThrow JSTrapStatus-handling switch statement to
have an explicit default case that raises a JS_NOT_REACHED assertion, instead of
just omitting JSTRAP_CONTINUE.
2011-12-06 11:40:28 -08:00
Jim Blandy
de97f716fe Bug 687683: Assert that REJOIN_CHECK_ARGUMENTS and REJOIN_FUNCTION_PROLOGUE are never generated in debug mode. r=bhackett1024
Explanation in the comments.

Fixing bug 699196 properly entails replacing the assertion this patch adds
with real code to call ScriptDebugPrologue. If this patch lands, hopefully
the person fixing 669196 will notice that and write tests that reach the
assertion/new code, but just to make sure we should probably add a note to
that bug about it.
2011-12-06 11:40:27 -08:00
Jim Blandy
b756212969 Bug 687683: Some random comment fixes I came across. r=jorendorff 2011-12-06 11:40:27 -08:00
Jim Blandy
5a44cb887e Bug 687683: Separate ScriptDebugPrologue add ScriptDebugEpilogue from and ScriptPrologue and ScriptEpilogue. r=jorendorff
At the moment, ScriptDebugPrologue is called (conditionally) from within
ScriptPrologue. For onEnterFrame handlers to be able to return a resumption
value, we need ScriptDebugPrologue to return a JSTrapStatus value, but it
is (non-debug) ScriptPrologue's callers that would need to handle those
values.

It seems strange to have ScriptPrologue return a JSTrapStatus. So this
patch brings ScriptDebugPrologue out of ScriptPrologue (and
ScriptPrologueOrGeneratorResume), and has ScriptPrologue's callers call
ScriptDebugPrologue explicitly.

For symmetry, we do the same with ScriptEpilogue,
ScriptEpilogueOrGeneratorYield, and ScriptDebugEpilogue.

Actually adding and processing the JSTrapStatus values comes in a later
patch. This is just meant to be a behavior-preserving rearrangement.
2011-12-06 11:40:27 -08:00
Jim Blandy
b47adbd950 Bug 687683: Remove unnecessary 'js::' namespace prefixes from Debugger code. r=jorendorff 2011-12-06 11:40:27 -08:00
David Mandelin
a3494e61a0 Bug 707351: remove tracer-specific things in jit-tests, r=dvander
--HG--
extra : rebase_source : 363730ebc4ab81d55b947b93f0cf9523e7efd8cf
2011-12-05 17:46:13 -08:00
Rafael Ávila de Espíndola
eaa3408362 Bug 707648 - Only try to init the critical range if we are able to walk the stack. r=ehsan. 2011-12-06 14:26:49 -05:00
Chris Leary
718eefc6c5 Bug 704369: Factor EmitTree to avoid recursion limit. (r=Waldo) 2011-12-06 10:50:23 -08:00
Bobby Holley
24850ce76d Bug 706301 - Tests. r=mrbkap 2011-12-06 11:05:26 -08:00
Bobby Holley
c4f54961de Bug 706301 - Don't cache own properties on XrayProxy. r=mrbkap 2011-12-06 11:05:26 -08:00
Patrick McManus
f54a57c679 Bug 707662 - spdy null deref halfopen-transportstatus r=honzab 2011-12-06 09:43:09 -05:00