Changeset 51624 in webkit for trunk/JavaScriptCore/interpreter


Ignore:
Timestamp:
Dec 2, 2009, 10:25:58 PM (16 years ago)
Author:
[email protected]
Message:

Add zombies to JSC
https://bugs.webkit.org/show_bug.cgi?id=32103

Reviewed by Gavin Barraclough.

Add a compile time flag to make the JSC collector replace "unreachable"
objects with zombie objects. The zombie object is a JSCell subclass that
ASSERTs on any attempt to use the JSCell methods. In addition there are
a number of additional assertions in bottleneck code to catch zombie usage
as quickly as possible.

Grrr. Argh. Brains.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/interpreter/Register.h

    r48067 r51624  
    105105    ALWAYS_INLINE Register::Register(JSValue v)
    106106    {
     107#if ENABLE(JSC_ZOMBIES)
     108        ASSERT(!v.isZombie());
     109#endif
    107110        u.value = JSValue::encode(v);
    108111    }
Note: See TracChangeset for help on using the changeset viewer.