Changeset 38012 in webkit for trunk/JavaScriptCore/VM/CTI.cpp


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):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.