Ignore:
Timestamp:
Sep 15, 2009, 4:29:33 AM (16 years ago)
Author:
[email protected]
Message:

2009-09-14 Gabor Loki <[email protected]>

Reviewed by Gavin Barraclough.

Detect VFP at runtime in generic ARM port on Linux platform.
https://bugs.webkit.org/show_bug.cgi?id=29076

  • JavaScriptCore.pri:
  • assembler/MacroAssemblerARM.cpp: Added. (JSC::isVFPPresent):
  • assembler/MacroAssemblerARM.h: (JSC::MacroAssemblerARM::supportsFloatingPoint):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/assembler/MacroAssemblerARM.h

    r47530 r48389  
    3131#include <wtf/Platform.h>
    3232
    33 #if ENABLE(ASSEMBLER) && PLATFORM(ARM)
     33#if ENABLE(ASSEMBLER) && PLATFORM(ARM) && !PLATFORM_ARM_ARCH(7)
    3434
    3535#include "ARMAssembler.h"
     
    638638    bool supportsFloatingPoint() const
    639639    {
    640         // FIXME: should be a dynamic test: VFP, FPA, or nothing
    641         return false;
     640        return s_isVFPPresent;
    642641    }
    643642
     
    794793    }
    795794
     795    static const bool s_isVFPPresent;
    796796};
    797797
    798798}
    799799
    800 #endif
     800#endif // ENABLE(ASSEMBLER) && PLATFORM(ARM) && !PLATFORM_ARM_ARCH(7)
    801801
    802802#endif // MacroAssemblerARM_h
Note: See TracChangeset for help on using the changeset viewer.