Граф коммитов

287262 Коммитов

Автор SHA1 Сообщение Дата
Chris Leary 5d604a3eac Bug 704369: Move do-while emit. (r=Waldo) 2011-11-21 17:54:57 -08:00
Chris Leary f4d5fbe30b Bug 704369: Factor function emit. (r=Waldo) 2011-11-21 17:50:43 -08:00
Chris Leary 6444e39661 Bug 704369: Move function emit. (r=Waldo) 2011-11-21 17:29:56 -08:00
Chris Leary e4eec1c584 Back out c0e237b26fe2 because it's folded. (r=#jsapi) 2011-12-06 11:52:59 -08:00
Jim Blandy 4a57493320 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 066f111072 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 89ecd2603c Bug 687683: Some random comment fixes I came across. r=jorendorff 2011-12-06 11:40:27 -08:00
Jim Blandy 6cc74f4d30 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 95a44bf9bf Bug 687683: Remove unnecessary 'js::' namespace prefixes from Debugger code. r=jorendorff 2011-12-06 11:40:27 -08:00
David Mandelin 00e486c519 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 bebe2c34a5 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 5aa979ee8b Bug 704369: Factor EmitTree to avoid recursion limit. (r=Waldo) 2011-12-06 10:50:23 -08:00
Bobby Holley 1aeaff9c74 Bug 706301 - Tests. r=mrbkap 2011-12-06 11:05:26 -08:00
Bobby Holley 53c5cc2bb5 Bug 706301 - Don't cache own properties on XrayProxy. r=mrbkap 2011-12-06 11:05:26 -08:00
Patrick McManus ff1f4a8830 Bug 707662 - spdy null deref halfopen-transportstatus r=honzab 2011-12-06 09:43:09 -05:00
Patrick McManus a5d765002d bug 706236 spdy deadlock on TCP rst during frame body buffering r=honzab 2011-12-06 09:43:08 -05:00
Andrew Halberstadt 5199ebde67 Bug 706844 - Create a make target for peptest. r=jmaher 2011-12-06 09:26:24 -05:00
Honza Bambas 4abb32fcb9 Bug 676349 - Implement high-resolution platform timers for the Windows platform, r=robarnold 2011-12-06 12:16:16 +01:00
Honza Bambas f82e18187b Bug 703024 - Back out bug 662996 (OCSP requests leak cookies) because of bug 701019, r=bsmith 2011-12-06 12:16:16 +01:00
Kyle Huey 65da655ba6 Bug 706088 Make .put allow no key being provided if it's an autoIncrement object store. r=bent 2011-12-06 02:45:46 -08:00
Wellington Fernando de Macedo 9700e3ef4c Bug 664179 - Allow Cross-Origin URLs in EventSource (Server-Sent Events). r=sicking 2011-12-05 21:02:42 -02:00
Tom Schuster 58fa924511 Bug 663338 - parseInt was wrong for very small doubles. r=jandem
--HG--
extra : rebase_source : 41c6581143053835665dc47d88f60d918be57450
2011-12-06 11:31:16 +01:00
Tom Schuster 8bdd27fe83 Bug 700169 - Refactor code to use StringBuffer. r=Waldo
--HG--
extra : rebase_source : fefe9dcae3b2e227b9b32a17a976320eb9d71ba3
2011-12-06 11:31:00 +01:00
Ed Morley c0e20e9cdd Merge mozilla-central and mozilla-inbound 2011-12-06 09:04:40 +00:00
Tim Taubert adba64bce9 merge m-c to fx-team 2011-12-06 08:55:18 +01:00
Boris Zbarsky cf32cfc4b0 Fix missing braces compile warning. No bug. 2011-12-06 01:45:13 -05:00
Jared Wein 1e6ac9fd9e Bug 633691 - Removed the ability to add exceptions to framed certerrors. r=gavin 2011-12-05 14:01:00 -08:00
Jared Wein 81b63a15aa Bug 699719 - Fade out video controls if mouse movement is stalled > 2 seconds. r=dolske 2011-12-05 14:00:42 -08:00
Jared Wein 19761a34bb Bug 513405 - Add text to video controls to describe the cause of errors. r=dolske 2011-12-05 14:00:28 -08:00
Jared Wein 9072c9fd43 Bug 706329 - JS error in console when switching to full screen 'this.isVideoInFullScreen is not a function'. r=dolske 2011-12-05 13:59:39 -08:00
Matt Brubeck 5987d6fd23 Merge latest green changeset from mozilla-inbound to mozilla-central 2011-12-05 10:04:12 -08:00
jhorak@redhat.com 15fbce424b Bug 682832 - Don't ignore Gnome 3 proxy settings. r=karlt 2011-12-05 15:45:54 +01:00
Andrew Quartey d0e1ea5eb3 Bug 465299 - Validity check for mozStorageStatementWrapper::Initialize. r=sdwilsh 2011-12-05 15:44:41 +01:00
Andrew Quartey 57dfce2611 Bug 705414 - Failure checks for JS_DefineElement in nsScriptableRegion::GetRects. r=evilpie 2011-12-05 15:44:06 +01:00
Marco Bonardo 6e0dd60c89 Backout 407fba8cbd5a (bug 702256) for build failure on Windows. 2011-12-05 13:48:59 +01:00
Robert O'Callahan 2cf4f09a0d Bug 699351. Part 4: Fix test. r=tnikkel 2011-12-06 01:39:48 +13:00
Robert O'Callahan 903d7e7ccd Bug 699351. Part 3: Fix clipping to subdocument to not use subdocument root view bounds. r=tnikkel 2011-12-06 01:39:43 +13:00
Robert O'Callahan 079b1da01e Bug 699351. Part 2: fix assertion. r=tn 2011-12-06 01:39:14 +13:00
Robert O'Callahan 0f579f89fe Bug 699351. Add nsIFrameLoader::clipSubdocument API to allow XUL <iframe> and <browser> to not clip the subdocument. r=tnikkel,sr=bzbarsky 2011-12-06 01:38:46 +13:00
Mark Banner 1b1f74d2be Bug 557047 - Replace mailnews specific ifdef (MOZ_MAIL_NEWS) in cookie code with tests for a protocol flag. r=sdwilsh,sr=bzbarsky 2011-12-05 12:35:23 +00:00
Geoff Brown 13f3603bed Bug 701038 - use zip to improve performance of devicemanagerADB.pushDir; r=jmaher 2011-12-05 07:19:31 -05:00
William Lachance b85189e518 Bug 706974 - devicemanagerADB's pushDir method does not conform to interface specifications. r=jmaher 2011-12-05 07:19:31 -05:00
Geoff Brown 24417638dd Bug 698113: copy libmozutils.so to device during remote xpcshell setup; r=jmaher 2011-12-05 07:19:31 -05:00
Geoff Brown 681588f664 Bug 706372: remove -j option from xpcshell command invoked by xpcshell-tests-remote; r=jmaher 2011-12-05 07:19:31 -05:00
Geoff Brown 86b1c23c65 Bug 700916: improve command line when launching process via devicemanagerADB; r=jmaher 2011-12-05 07:19:31 -05:00
Justin Lebar 37fed0a06a Bug 702256 - "[Gonk] Add DOM API for turning screen on/off and adjusting the screen's brightness" r=cjones,mounir 2011-12-05 01:07:00 +08:00
Hub Figuiere 696f1bc8ad Bug 707846 - remove unused nsAccessibleWrap::GetUnignoredChildCount(). r=surkov 2011-12-06 14:08:01 +08:00
Hub Figuiere 97571e9da3 Bug 689105 - Ensure a11y children are initialized before caching on Mac. r=surkov, r=davidb 2011-12-05 12:33:30 -08:00
Alexander Surkov 8eef5033f9 Bug 704852 - Calculate compatibility mode when accessibility starts, r=tbsaunde, sr=neil, f=marcoz 2011-12-06 14:07:46 +08:00
Boris Zbarsky 21303f1007 Bug 704911. Don't restyle based on state selectors that match our node but don't depend on the state that's changing. r=dbaron 2011-12-05 23:58:15 -05:00