Changeset 38012 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Oct 30, 2008, 3:16:26 PM (17 years ago)
Author:
[email protected]
Message:

2008-10-30 Cameron Zwarich <[email protected]>

Reviewed by Oliver Hunt.

Bug 21987: CTI::putDoubleResultToJSNumberCellOrJSImmediate() hardcodes its result register
<https://bugs.webkit.org/show_bug.cgi?id=21987>

CTI::putDoubleResultToJSNumberCellOrJSImmediate() hardcodes its result
register as ecx, but it should be tempReg1, which is ecx at all of its
callsites.

  • VM/CTI.cpp: (JSC::CTI::putDoubleResultToJSNumberCellOrJSImmediate):
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r38009 r38012  
     12008-10-30  Cameron Zwarich  <[email protected]>
     2
     3        Reviewed by Oliver Hunt.
     4
     5        Bug 21987: CTI::putDoubleResultToJSNumberCellOrJSImmediate() hardcodes its result register
     6        <https://bugs.webkit.org/show_bug.cgi?id=21987>
     7
     8        CTI::putDoubleResultToJSNumberCellOrJSImmediate() hardcodes its result
     9        register as ecx, but it should be tempReg1, which is ecx at all of its
     10        callsites.
     11
     12        * VM/CTI.cpp:
     13        (JSC::CTI::putDoubleResultToJSNumberCellOrJSImmediate):
     14
    1152008-10-30  Cameron Zwarich  <[email protected]>
    216
  • trunk/JavaScriptCore/VM/CTI.cpp

    r38009 r38012  
    796796    // Yes it really really really is representable as a JSImmediate.
    797797    emitFastArithIntToImmNoCheck(tempReg1);
    798     emitPutResult(dst, X86::ecx);
     798    emitPutResult(dst, tempReg1);
    799799}
    800800
Note: See TracChangeset for help on using the changeset viewer.