Commit Graph

51587 Commits

Author SHA1 Message Date
Brian Hackett
2aeb294c19 Interface for JSStackFrame.argc, bug 586533. r=lw 2010-08-19 16:44:12 -07:00
Nicholas Nethercote
efa83280f0 Update nanojit-import-rev stamp. 2010-08-19 16:22:30 -07:00
Bill McCloskey
5113963733 Bug 564548: faster special cases for Math.pow, r=gal 2010-08-19 14:17:56 -07:00
Edwin Smith
8a316147b9 Bug 584935 - Speed up register iteration loops by using BSF instruction (r=nnethercote+)
Changed all the register iteration loops to use lsbSet/msbSet functions
that use fast find-first-bit intrinsics when available.  Typical loops of
the form:

  for (Register r = FirstReg; r <= LastReg; r = nextReg(r))
    if (predicate(r))
	  /* use r */

were transformed by replacing the per-iteration predicate with a single
mask calculation, then iterating through only the 1 bits in the mask:

  RegisterMask set = /* calculate predicate with bitmask ops */;
  for (Register r = lsReg(set); set; r = lsNextReg(set))
    /* use r */

Iteration can be low-to-hi with lsReg/lsNextReg, or hi-to-low with msReg/msNextReg.
Primitives are provided for 32 and 64-bit masks.  PPC and MIPS need a 64-bit
mask, for example, even on 32-bit systems.

Refactoring details:

I renamed msbSet() to msbSet32() as part of adding [msb|lsb]Set[32|64], which
affected the AccSet code trivially.

I used if (sizeof(RegisterMask) == 4) to choose between 32 and 64bit
implementations, counting on a sane compiler to strip out the provably dead
path. An alternative would be to move the definitions of lsReg() and msReg() to
NativeXXX.h, after the RegisterMask typedef, allowing backends to hardcode the
choice.  Given we have six backends and one more on the way, it seemed better
to centralize the code and also avoid more ifdefs.

I moved the definitions of msbSet/lsbSet to nanojit.h, where other such helpers
already live.  It didn't seem appropriate to keep adding to LIR.h since the
helpers will now be used in several places in nanojit.

RegAlloc::managed is now set in Assembler.cpp instead of each backend; six
lines of code replaced by one.

prevreg() was dead after these changes.  Additionally, I hand-inlined nextreg()
in the other backends, because the usage was highly specialized -- those call
sites depended on nextreg being reg+1, (or reg+2) not some generic iteration.

I removed RegAlloc::countActive() since the only case was testing countActive()
== 0, which is equivalent to activeMask() == 0.

--HG--
extra : convert_revision : c7009f5cd83ea028b98f59e1f8830a76ba27c1dd
2010-08-19 16:04:19 -04:00
Chris Jones
f97bf2bc48 Bug 588911: Initialize gArgc/v earlier in XRE_InitParentProcess(). r=bent a=test-only 2010-08-19 14:50:17 -05:00
Chris Jones
715ca394bf Fix typo exposed by followup to bug 582057. 2010-08-24 22:16:42 -05:00
Oleg Romashin
832333ab06 Merged with mozilla-central: 00186bbb7459 2010-08-24 14:21:48 -07:00
Dave Townsend
18b43b4231 Bug 581084: List of search results doesn't visually differentiate between installed add-ons and available add-ons. r=Unfocused, a=blocking-beta5 2010-08-24 11:23:46 -07:00
Chris Jones
2eea7a3ba1 Update nsDisplayRemote to new nsDisplayItem interface 2010-08-23 22:23:37 -05:00
Chris Jones
1b38174082 Merge remote-frame code into m-c tip 2010-08-23 22:10:50 -05:00
Michal Novotny
246844ffaa Bug 513008 - Eliminate synchronous reads from cache. r=jduell,sdwilsh sr=shaver a2.0=blocking 2010-08-24 03:06:23 +02:00
Mounir Lamouri
7511140cd2 Bug 588683 - Implement the form attribute. r=sicking sr=jst a2.0=blocking 2010-08-24 03:11:04 +02:00
Brad Lassey
c5ebc044d1 bug 589851 - [Regression] protocol handlers are broken on 8/22 nightly build r=dwitte a=blocking-fennec=2.0a1+ 2010-08-23 15:29:41 -04:00
Jim Chen
06010779e8 Bug 589844 - Return correct string from getTextBeforeCursor on Android; r=mwu a=blocking-fennec=2.0a1+ 2010-08-23 10:54:00 -04:00
Loïc Yhuel
b6ed504f4c Bug 589809. D2D: Fix running with PIX. r=bas
When we do "newSurf->backBuf->QueryInterface(&newSurf->surface);", PIX returns
the original interface instead of the hooked one, so I swapped newSurf->backBuf
and newSurf->surface, to get the two interfaces in the reverse order. In this
case PIX returns hooked interfaces which will work when used as argument of
hooked methods.
2010-08-24 13:46:34 -04:00
Loïc Yhuel
9b46c88361 Bug 589809. D2D: Fix surface leak. r=bas
We were using a raw pointer and not releasing it.
Switch to a RefPtr.
2010-08-24 13:46:03 -04:00
Joel Maher
ce269022ab Bug 574189 - Fix chrome tests to work from an extension for android and e10s support a=NPOTB r=ctalbert 2010-08-24 10:29:34 -07:00
Chris Jones
fcfbc0ecb8 Missed comment and --disable-ipc bustage fix. 2010-08-20 22:06:53 -05:00
Chris Jones
ca1369ea3d Followup to bug 582057: Paper over Show() being called multiple times and triggering an assertion in the content process. This will all be reworked in bug 589337. r=dougt 2010-08-20 18:35:11 -05:00
Chris Jones
9ce9433a4a Bug 570620, part o: Connect the dots to enable drawing remote frames for <browser remote>: create the frame on the content side, insert a display item for it in compositor-side SubdocFrame, and use IPC-enabled layer managers to make it all work. r=mats sr=roc 2010-08-20 18:24:41 -05:00
Chris Jones
07e1a3fd87 Bug 570620, part n: Hook layout/ipc into the build system, and integrate PRenderFrame into the PBrowser family. sr=bsmedberg 2010-08-20 18:24:41 -05:00
Chris Jones
dee3368105 Bug 570620, part m: Add API for attaching a "remote frame" to its corresponding nsFrameLoader, so that the frame can be found during painting. r=tn sr=smaug 2010-08-20 18:24:41 -05:00
Chris Jones
a8fd1c09e1 Bug 570620, part l: Implement the child side of PRenderFrame, which just acts as a conduit for shadow layers. r=tn 2010-08-20 18:24:41 -05:00
Chris Jones
8bf9326ebe Bug 570620, part k: Implement the compositor side of PRenderFrame, which grafts a shadow layer tree into the compositor's tree. r=mats sr=roc 2010-08-20 18:24:41 -05:00
Chris Jones
3c749b6915 Bug 570620, part j: Add a PRenderFrame protocol for cross-process frame objects. r=tn 2010-08-20 18:24:41 -05:00
Chris Jones
f30d5c8a27 Bug 570620, part i: Implement ShadowLayer::Disconnect() for common-case shutdown, and ShadowableLayer::Disconnect() for emergency-case shutdown. r=vlad 2010-08-20 18:24:41 -05:00
Chris Jones
d839c7e1a5 Bug 570620, part h: Add a Layer::Disconnect interface. sr=vlad 2010-08-20 18:24:41 -05:00
Chris Jones
b59148a17a Bug 570620, part g: Fix bone-headed bugs with shadowable layers, remove unnecessary MOZ_LAYER_DECL_NAME()s, and have the "shadow layer manager" side keep a "shadow root" rather than setting the "real" root. r=vlad 2010-08-20 18:24:41 -05:00
Chris Jones
114105aa68 Bug 570620, part e: Implement PuppetWidget::Destroy. r=roc 2010-08-20 18:24:40 -05:00
Chris Jones
f6f5f2fe60 Bug 582057, part l: Use PuppetWidgets in content processes. r=roc 2010-08-20 18:24:40 -05:00
Chris Jones
546d94a7b3 Bug 582057, part k: Gut platform widgets from content processes. sr=bsmedberg 2010-08-20 18:24:40 -05:00
Chris Jones
96088ecbf0 Bug 582057, part j: Implement a "puppet widget" stand-in for platform widgets, for content processes. sr=roc 2010-08-20 18:24:40 -05:00
Robert Sayre
b54b2278b9 Merge from mozilla-central 2010-08-19 13:50:37 -04:00
Dan Witte
450bb6ea23 Merge m-c -> e10s. 2010-08-19 09:26:45 -07:00
Jim Mathies ext:(%2C%20Rob%20Arnold%20%3Crobarnold%40cs.cmu.edu%3E)
69070bf96e Bug 559613 - Reuse the rendering context for tab previews and drop the cache time to 5 seconds. r=robarnold,jimm sr=vlad
a=blocking2.0
2010-08-19 08:22:46 -07:00
Shawn Wilsher
f85cdd7d11 Backed out changeset 8caf58f301b2 (bug 178506 - save original last-modified date on file downloads) since it is no longer the right thing to do.
a=shaver (via irc)
2010-08-19 08:22:02 -07:00
Robert Sayre
43c1350df6 Merge mozilla-central to tracemonkey. 2010-08-19 11:18:37 -04:00
Axel Hecht
919cdfddf9 bug 559961, explicitly abspath optimizejars.py, js, too, r=khuey, a=bustage-fix 2010-08-19 16:46:38 +02:00
Axel Hecht
057073b70e bug 559961, explicitly abspath optimizejars.py, r=ted, a=bustage-fix 2010-08-19 15:56:20 +02:00
Dão Gottwald
8bc3dafe3d Backed out changeset 3137ecdfdb60 to see if Ts Shutdown/MIN Dirty Profile on MacOSX 10.5.8 goes back down (merge) a=nobody 2010-08-19 14:38:11 +02:00
Dão Gottwald
4a3d75b8d5 Backed out changeset 3137ecdfdb60 to see if Ts Shutdown/MIN Dirty Profile on MacOSX 10.5.8 goes back down 2010-08-19 14:28:54 +02:00
Dão Gottwald
7851d2a919 Backed out changeset c167c845d8e6 to see if Ts Shutdown/MIN Dirty Profile on MacOSX 10.5.8 goes back down (merge) 2010-08-19 14:27:57 +02:00
Dão Gottwald
d771e963e8 Backed out changeset c167c845d8e6 to see if Ts Shutdown/MIN Dirty Profile on MacOSX 10.5.8 goes back down 2010-08-19 14:27:12 +02:00
Masayuki Nakano
e4a3280e2e Bug 581576 hung up or too slow when press Enter key on Gmail editor which has a lot of misspelled words r=ehsan, a2.0=dbaron 2010-08-19 20:27:04 +09:00
Vlado Valastiak
0f3640e8c7 Bug 584033. 'Inspect' menu item should have a checkbox. r=dolske,a=dolske 2010-08-19 21:49:25 +12:00
Takanori MATSUURA
d427515d05 Bug 587614. Remove MOZ_NO_INSPECTOR_APIS. r=ted,a=NPOTB 2010-08-19 21:44:34 +12:00
Takanori MATSUURA
05b4001200 Bug 587614. Remove use of MOZ_NO_INSPECTOR_APIS. r=roc,a=NPOTB 2010-08-19 21:44:01 +12:00
Micah Gersten
8828445ae0 Bug 567620. Bump minimum version for system NSPR. r=ted 2010-08-19 21:39:05 +12:00
Rich Walsh
8545e9b4ca Bug 442304. Mark exits from content area as toplevel on OS/2. r=wuno,a=OS/2 2010-08-19 21:35:09 +12:00
Chris Double
e38260e9d9 Bug 449141. Save media resources when doing 'Save As' on the page. r=roc,a=dbaron 2010-08-19 21:35:09 +12:00