Changeset 74029 in webkit


Ignore:
Timestamp:
Dec 14, 2010 8:57:14 AM (13 years ago)
Author:
cwzwarich@webkit.org
Message:

Reviewed by Eric Seidel.

Clang fails to build the JSC interpreter
https://bugs.webkit.org/show_bug.cgi?id=51016

Clang does not allow indirect gotos out of scopes with cleanup. GCC 4.2 allows
them, but it does not correctly generate the cleanup, causing a leak if the
cleanup decrements a reference count.

  • interpreter/Interpreter.cpp:

(JSC::Interpreter::privateExecute): Put an Identifier into its own scope.

Location:
trunk/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r74028 r74029  
     12010-12-13  Cameron Zwarich  <zwarich@apple.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Clang fails to build the JSC interpreter
     6        https://bugs.webkit.org/show_bug.cgi?id=51016
     7
     8        Clang does not allow indirect gotos out of scopes with cleanup. GCC 4.2 allows
     9        them, but it does not correctly generate the cleanup, causing a leak if the
     10        cleanup decrements a reference count.
     11
     12        * interpreter/Interpreter.cpp:
     13        (JSC::Interpreter::privateExecute): Put an Identifier into its own scope.
     14
    1152010-12-14  Carlos Garcia Campos  <cgarcia@igalia.com>
    216
  • trunk/JavaScriptCore/interpreter/Interpreter.cpp

    r72442 r74029  
    31973197            NEXT_INSTRUCTION();
    31983198        }
    3199         Identifier propertyName(callFrame, subscript.toString(callFrame));
    3200         result = baseValue.get(callFrame, propertyName);
     3199        {
     3200            Identifier propertyName(callFrame, subscript.toString(callFrame));
     3201            result = baseValue.get(callFrame, propertyName);
     3202        }
    32013203        CHECK_FOR_EXCEPTION();
    32023204        callFrame->uncheckedR(dst) = result;
  • trunk/JavaScriptCore/wtf/Platform.h

    r73802 r74029  
    974974    && (OS(DARWIN) || !COMPILER(GCC) || GCC_VERSION_AT_LEAST(4,1,0)) \
    975975    && !OS(WINCE)
    976 #define ENABLE_JIT 1
     976#define ENABLE_JIT 0
    977977#endif
    978978
Note: See TracChangeset for help on using the changeset viewer.