Changeset 92710 in webkit


Ignore:
Timestamp:
Aug 9, 2011 2:38:57 PM (13 years ago)
Author:
fpizlo@apple.com
Message:

DFG JIT failure loading web site
https://bugs.webkit.org/show_bug.cgi?id=65930

Source/JavaScriptCore:

Reviewed by Oliver Hunt.

Put the use() call after the fpr()/gpr() calls, since doing otherwise
breaks the register allocator.

  • dfg/DFGNonSpeculativeJIT.cpp:

(JSC::DFG::NonSpeculativeJIT::compile):

LayoutTests:

Reviewed by Oliver Hunt.

Reproduced the failure seen in
http://www.skinnytaste.com/2011/06/ricotta-cheese-chocolate-chip-muffins.html

  • fast/js/boxed-double-to-int-expected.txt: Added.
  • fast/js/boxed-double-to-int.html: Added.
  • fast/js/script-tests/boxed-double-to-int.js: Added.

(boxedDoubleToInt):

Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r92705 r92710  
     12011-08-09  Filip Pizlo  <fpizlo@apple.com>
     2
     3        DFG JIT failure loading web site
     4        https://bugs.webkit.org/show_bug.cgi?id=65930
     5
     6        Reviewed by Oliver Hunt.
     7       
     8        Reproduced the failure seen in
     9        http://www.skinnytaste.com/2011/06/ricotta-cheese-chocolate-chip-muffins.html
     10
     11        * fast/js/boxed-double-to-int-expected.txt: Added.
     12        * fast/js/boxed-double-to-int.html: Added.
     13        * fast/js/script-tests/boxed-double-to-int.js: Added.
     14        (boxedDoubleToInt):
     15
    1162011-08-09  Anders Carlsson  <andersca@apple.com>
    217
  • trunk/Source/JavaScriptCore/ChangeLog

    r92706 r92710  
     12011-08-09  Filip Pizlo  <fpizlo@apple.com>
     2
     3        DFG JIT failure loading web site
     4        https://bugs.webkit.org/show_bug.cgi?id=65930
     5
     6        Reviewed by Oliver Hunt.
     7       
     8        Put the use() call after the fpr()/gpr() calls, since doing otherwise
     9        breaks the register allocator.
     10
     11        * dfg/DFGNonSpeculativeJIT.cpp:
     12        (JSC::DFG::NonSpeculativeJIT::compile):
     13
    1142011-08-09  Mark Hahnenberg  <mhahnenberg@apple.com>
    215
  • trunk/Source/JavaScriptCore/dfg/DFGNonSpeculativeJIT.cpp

    r92148 r92710  
    511511            DoubleOperand op1(this, node.child1());
    512512            GPRTemporary result(this);
     513            FPRReg fpr = op1.fpr();
     514            GPRReg gpr = result.gpr();
    513515            op1.use();
    514             numberToInt32(op1.fpr(), result.gpr());
    515             integerResult(result.gpr(), m_compileIndex, UseChildrenCalledExplicitly);
     516            numberToInt32(fpr, gpr);
     517            integerResult(gpr, m_compileIndex, UseChildrenCalledExplicitly);
    516518            break;
    517519        }
Note: See TracChangeset for help on using the changeset viewer.