Ignore:
Timestamp:
Oct 4, 2013, 3:45:09 PM (12 years ago)
Author:
[email protected]
Message:

FTL: Add support for ValueToInt32(bool(x))
https://bugs.webkit.org/show_bug.cgi?id=122346

Patch by Nadav Rotem <[email protected]> on 2013-10-04
Reviewed by Geoffrey Garen.

  • ftl/FTLCapabilities.cpp:

(JSC::FTL::canCompile):

  • ftl/FTLLowerDFGToLLVM.cpp:

(JSC::FTL::LowerDFGToLLVM::compileNode):
(JSC::FTL::LowerDFGToLLVM::compileValueToInt32):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ftl/FTLCapabilities.cpp

    r156047 r156919  
    204204        }
    205205        break;
     206    case ValueToInt32:
     207        if (node->child1().useKind() != BooleanUse)
     208            return CannotCompile;
     209        break;
    206210    default:
    207211        // Don't know how to handle anything else.
Note: See TracChangeset for help on using the changeset viewer.