Changeset 165296 in webkit


Ignore:
Timestamp:
Mar 7, 2014 3:21:18 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

[Win64] Compile error after r165128.
https://bugs.webkit.org/show_bug.cgi?id=129807

Patch by peavo@outlook.com <peavo@outlook.com> on 2014-03-07
Reviewed by Mark Lam.

Source/JavaScriptCore:

Check platform environment variable to determine if an assembler file should be generated.

Source/WTF:

  • wtf/Platform.h: MSVC does not support computed goto.

Also enabled COMPUTED_GOTO_OPCODES when !ENABLE(LLINT_C_LOOP). This is needed because the ASM LLINT operates like COMPUTED_GOTO_OPCODES,
and relies on the related data structures being defined to support this. On Win32, the platform does not HAVE_COMPUTED_GOTO support,
but does want ENABLE_COMPUTED_GOTO_OPCODES because it uses the ASM LLINT.

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r165293 r165296  
     12014-03-07  peavo@outlook.com  <peavo@outlook.com>
     2
     3        [Win64] Compile error after r165128.
     4        https://bugs.webkit.org/show_bug.cgi?id=129807
     5
     6        Reviewed by Mark Lam.
     7
     8        * JavaScriptCore.vcxproj/LLInt/LLIntAssembly/build-LLIntAssembly.sh:
     9        Check platform environment variable to determine if an assembler file should be generated.
     10
    1112014-03-07  Michael Saboff  <msaboff@apple.com>
    212
  • trunk/Source/JavaScriptCore/JavaScriptCore.vcxproj/LLInt/LLIntAssembly/build-LLIntAssembly.sh

    r165128 r165296  
    2121cd "${BUILT_PRODUCTS_DIR}/JavaScriptCore/DerivedSources"
    2222
    23 ##############################################################################
    24 # Step 3: Build LLIntOffsetsExtractor
    25 
    2623# Create a dummy asm file in case we are using the C backend
    2724# This is needed since LowLevelInterpreterWin.asm is part of the project.
     25
    2826printf "END" > LowLevelInterpreterWin.asm
    2927
    30 # When enabling LLINT and switching to the x86 backend, use "LowLevelInterpreterWin.asm" as output file when running asm.rb.
     28# Win32 is using the LLINT x86 backend, and should generate an assembler file.
     29# Win64 is using the LLINT C backend, and should generate a header file.
    3130
    32 /usr/bin/env ruby "${SRCROOT}/offlineasm/asm.rb" "${SRCROOT}/llint/LowLevelInterpreter.asm" "${BUILT_PRODUCTS_DIR}/LLIntOffsetsExtractor/LLIntOffsetsExtractor${3}.exe" "LowLevelInterpreterWin.asm" || exit 1
     31if [ "${PLATFORMARCHITECTURE}" == "32" ]; then
     32    OUTPUTFILENAME="LowLevelInterpreterWin.asm"
     33else
     34    OUTPUTFILENAME="LLIntAssembly.h"
     35fi
     36
     37/usr/bin/env ruby "${SRCROOT}/offlineasm/asm.rb" "${SRCROOT}/llint/LowLevelInterpreter.asm" "${BUILT_PRODUCTS_DIR}/LLIntOffsetsExtractor/LLIntOffsetsExtractor${3}.exe" "${OUTPUTFILENAME}" || exit 1
  • trunk/Source/WTF/ChangeLog

    r165225 r165296  
     12014-03-07  peavo@outlook.com  <peavo@outlook.com>
     2
     3        [Win64] Compile error after r165128.
     4        https://bugs.webkit.org/show_bug.cgi?id=129807
     5
     6        Reviewed by Mark Lam.
     7
     8        * wtf/Platform.h: MSVC does not support computed goto.
     9        Also enabled COMPUTED_GOTO_OPCODES when !ENABLE(LLINT_C_LOOP). This is needed because the ASM LLINT operates like COMPUTED_GOTO_OPCODES,
     10        and relies on the related data structures being defined to support this. On Win32, the platform does not HAVE_COMPUTED_GOTO support,
     11        but does want ENABLE_COMPUTED_GOTO_OPCODES because it uses the ASM LLINT.
     12
    1132014-03-06  Michael Saboff  <msaboff@apple.com>
    214
  • trunk/Source/WTF/wtf/Platform.h

    r165225 r165296  
    791791
    792792/* Configure the interpreter */
    793 #if COMPILER(GCC) || COMPILER(MSVC)
     793#if COMPILER(GCC)
    794794#define HAVE_COMPUTED_GOTO 1
    795795#endif
    796796
    797797/* Determine if we need to enable Computed Goto Opcodes or not: */
    798 #if HAVE(COMPUTED_GOTO) && ENABLE(LLINT)
     798#if HAVE(COMPUTED_GOTO) || !ENABLE(LLINT_C_LOOP)
    799799#define ENABLE_COMPUTED_GOTO_OPCODES 1
    800800#endif
Note: See TracChangeset for help on using the changeset viewer.