Skip to content
  • barraclough@apple.com's avatar
    JavaScriptCore: · 1dfe6f81
    barraclough@apple.com authored
    2009-02-26  Gavin Barraclough  <barraclough@apple.com>
    
            Reviewed by Geoff Garen.
    
            Fix bug #23614.  Switches on double precision values were incorrectly
            truncating the scrutinee value.  E.g.:
    
                switch (1.1) { case 1: print("FAIL"); }
    
            Was resulting in FAIL.
    
            * interpreter/Interpreter.cpp:
            (JSC::Interpreter::privateExecute):
            * jit/JITStubs.cpp:
            (JSC::JITStubs::cti_op_switch_imm):
    
    LayoutTests:
    
    2009-02-26  Gavin Barraclough  <barraclough@apple.com>
    
            Rubber stamped by Geoff Garen.
    
            Layout test for bug #23614.
    
            * fast/js/resources/switch-behaviour.js:
            * fast/js/switch-behaviour-expected.txt:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@41277 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    1dfe6f81