Commit Graph

228930 Commits

Author SHA1 Message Date
Luke Wagner
45c1c787f7 Bug 588558 - fix FrameRegsIter thinko (r=waldo) 2010-08-20 16:54:58 -07:00
Jim Blandy
d6af3475c1 Bug 438633: Give new JSScript objects lifetimes like GCThings. r=brendan
Attach script objects immediately in all JSAPI script-creating functions;
have JS_NewScriptObject simply return the already-allocated object; and
make JS_DestroyScript a no-op.

Verify that all scripts given to JSAPI script-consuming functions have
objects, or are the canonical empty script object.
2010-08-20 13:11:05 -07:00
Jim Blandy
8c2b7ca1e2 Bug 585803: Pass TCF_NEED_MUTABLE_SCRIPT when producing scripts returned via JSAPI functions. r=brendan
All scripts produced using JSAPI functions should be able to have
JS_NewScriptObject applied to them. However, JS_CompileFile and
JS_CompileFileHandleForPrincipals fail to pass TCF_NEED_MUTABLE_SCRIPT, and
thus will occasionally return JSScript::emptyScript(); applying
JS_NewScriptObject to that causes a crash.
2010-08-20 13:11:04 -07:00
Robert Sayre
5d4ec38d54 Merge mozilla-central to tracemonkey. 2010-08-20 10:04:58 -04:00
Ryan VanderMeulen
0eed661393 Bug 588977 - Fix MSVC warning spam by casting as floats. r=roc a2.0=joe 2010-08-20 14:45:07 +02:00
Luke Wagner
8379b6a86f Bug 589015 - js_watch_set doesn't need that crazy dummy frame (r=mrbkap) 2010-08-19 18:02:17 -07:00
Nicholas Nethercote
eae82f529a merge 2010-08-19 16:46:27 -07:00
Brian Hackett
23a13f33cb Interface for JSStackFrame.argc, bug 586533. r=lw 2010-08-19 16:44:12 -07:00
Nicholas Nethercote
fad5ba9d8b Update nanojit-import-rev stamp. 2010-08-19 16:22:30 -07:00
Bill McCloskey
a1204d31e7 Bug 564548: faster special cases for Math.pow, r=gal 2010-08-19 14:17:56 -07:00
Edwin Smith
481b2874a8 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
Robert Sayre
5f896a74c9 Merge from mozilla-central 2010-08-19 13:50:37 -04:00
Robert Sayre
5a9450dd7a Merge mozilla-central to tracemonkey. 2010-08-19 11:18:37 -04:00
Axel Hecht
1e3ef5b1b0 bug 559961, explicitly abspath optimizejars.py, js, too, r=khuey, a=bustage-fix 2010-08-19 16:46:38 +02:00
Axel Hecht
221b6a0b5a bug 559961, explicitly abspath optimizejars.py, r=ted, a=bustage-fix 2010-08-19 15:56:20 +02:00
Dão Gottwald
4ca4bf2c4c 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
15b60f67db 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
42f4ae414d 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
2652742bfd 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
2b9260af53 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
e6d1b46d66 Bug 584033. 'Inspect' menu item should have a checkbox. r=dolske,a=dolske 2010-08-19 21:49:25 +12:00
Takanori MATSUURA
6cf6c46e34 Bug 587614. Remove MOZ_NO_INSPECTOR_APIS. r=ted,a=NPOTB 2010-08-19 21:44:34 +12:00
Takanori MATSUURA
7b17d911b0 Bug 587614. Remove use of MOZ_NO_INSPECTOR_APIS. r=roc,a=NPOTB 2010-08-19 21:44:01 +12:00
Micah Gersten
51b0b548e1 Bug 567620. Bump minimum version for system NSPR. r=ted 2010-08-19 21:39:05 +12:00
Rich Walsh
947a8e8d68 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
93b4ccf3da Bug 449141. Save media resources when doing 'Save As' on the page. r=roc,a=dbaron 2010-08-19 21:35:09 +12:00
Robert O'Callahan
bbfebee4c5 Bug 586804. Swallow exceptions generated in the error message listener, to avoid infinite loop. r=robcee,a=test-only 2010-08-19 21:35:09 +12:00
Bas Schouten
6dd8478e7a Bug 588568. Only check VRAM if we have a D2D device. r=joe,a=blocking 2010-08-19 21:35:08 +12:00
Pirkka Kärenlampi
8740898d9f Bug 586944. Make 'backtrace' static to fix issues with the symbol being overriden by system libraries. r=dbaron,a=bsmedberg 2010-08-19 21:35:08 +12:00
Robert O'Callahan
81e67c505a Bug 588664. Cache DPI in nsCocoaWindow. r=joshmoz,a=blocking 2010-08-19 21:35:08 +12:00
Rob Arnold
832394c514 Bug 587566 - Enable Depth/Clip to allow D2D for non DX10 devices; r=bas.schouten approval2.0=joe 2010-08-19 09:28:14 +01:00
Ginn Chen
68f8d77d85 Bug 584219 should use "signed bit" for signed bit-field r=nnethercote
--HG--
extra : convert_revision : 2f6b1e2a50de2df8f78b98b4c725d5a9897e9c4b
2010-08-19 16:08:53 +08:00
Ginn Chen
0f8c4a96ed Bug 585559 Fix alignment for length2StringTable and hundredStringTable with Sun Studio r=lw 2010-08-19 15:58:52 +08:00
Nicholas Nethercote
8501b46354 Bug 585866 - Avoid unnecessary calls to YearFromTime(). r=jwalden. 2010-08-18 19:44:28 -07:00
Makoto Kato
756a1ec647 Bug 588273 - Yarr is broken on Win64 ABI. r=dvander 2010-08-19 10:09:22 +09:00
Robert Sayre
84dc4be9e4 Merge 2010-08-18 17:48:32 -04:00
Robert Sayre
4ed1b293f3 Merge 2010-08-18 17:22:08 -04:00
Gregor Wagner
92dbea21cf Bug 572057 - TM: remove weak roots (pigeon hole) r=igor 2010-08-18 12:46:47 -07:00
Brian Hackett
216951068a Assert fix, bug 588339. r=brendan 2010-08-18 11:03:22 -07:00
Michael Wu
bcbe3a9b15 Bug 556644: Update removed-files.in for omnijar. r=rs, a=blocking-beta5 2010-08-17 12:13:07 -07:00
Mark Banner
10526c069a Bug 587984 Toolkit's l10n.mk can't be included from comm-central. r=Mitch,a=bsmedberg 2010-08-19 09:28:05 +01:00
Mark Banner
48d6353d9a Back out changeset f600448ae7db / bug 471643 due to reftest failures. 2010-08-19 09:27:38 +01:00
Mark Banner
aa557442d3 Backed out changeset f600448ae7db / bug 471643 due to reftest failures 2010-08-19 09:27:01 +01:00
Dão Gottwald
2f26e93255 Bug 585935 - scrollboxes should use native scroll arrows. r=ventnor a=bs 2010-08-19 09:46:47 +02:00
Zack Weinberg
2fa7c64088 Bug 471643: Make vertical percentages in border-radius relative to box height. r=dbaron 2010-08-19 09:45:32 +02:00
Daniel Holbert
b1af0183eb (no bug) a few whitespace fixes in layout, to triger fresh builds on a CLOSED TREE 2010-08-18 21:53:55 -07:00
Leon Sha
a5e1b43ae1 Bug 585926 - check-math-partial-sums.js failed with JIT on SPARC. r=wmaddox
--HG--
extra : convert_revision : eceee95267377daa09d5951f6293db752a1b9f77
2010-08-17 16:02:46 +08:00
Ben Turner
8cab391efd Bug 587876 - 'Undetermined progress bars should use mozRequestAnimationFrame'. r=roc 2010-08-16 17:06:29 -07:00
Joshua M
7a3351d0f2 Bug 583386 - Implement latest Firefox Menu design. r=dolske, ui-r=faaborg, a=blocking2.0 2010-08-19 11:59:20 -07:00
Chris Pearce
5d4f6b68e4 commit merge. a=backout 2010-08-20 21:51:01 +12:00