Changeset 61778 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Jun 24, 2010, 11:28:06 AM (15 years ago)
Author:
[email protected]
Message:

2010-06-21 Nathan Lawrence <[email protected]>

Reviewed by Geoff Garen.

https://bugs.webkit.org/show_bug.cgi?id=40128
Fixed broken debug functionality.

  • interpreter/Interpreter.cpp: (JSC::Interpreter::dumpRegisters):

Fixed to work with updated call frame.

  • runtime/JSImmediate.h: (JSC::JSValue::isCell):

Added assert for aligned cell.

  • runtime/JSValue.cpp: (JSC::JSValue::description):

Fixed to work with current JSValue implementation.

  • runtime/JSZombie.cpp: (JSC::JSZombie::leakedZombieStructure):

JSombies compile again.

Location:
trunk/JavaScriptCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r61763 r61778  
     1 2010-06-21  Nathan Lawrence  <[email protected]>
     2
     3         Reviewed by Geoff Garen.
     4
     5         https://bugs.webkit.org/show_bug.cgi?id=40128
     6         Fixed broken debug functionality.
     7
     8         * interpreter/Interpreter.cpp:
     9         (JSC::Interpreter::dumpRegisters):
     10             Fixed to work with updated call frame.
     11         * runtime/JSImmediate.h:
     12         (JSC::JSValue::isCell):
     13             Added assert for aligned cell.
     14         * runtime/JSValue.cpp:
     15         (JSC::JSValue::description):
     16             Fixed to work with current JSValue implementation.
     17         * runtime/JSZombie.cpp:
     18         (JSC::JSZombie::leakedZombieStructure):
     19             JSombies compile again.
     20
    1212010-06-24  Leandro Pereira  <[email protected]>
    222
  • trunk/JavaScriptCore/interpreter/Interpreter.cpp

    r61588 r61778  
    457457    printf("[CallerRegisters]          | %10p | %d \n", it, (*it).i()); ++it;
    458458    printf("[ReturnPC]                 | %10p | %p \n", it, (*it).vPC()); ++it;
    459     ++it;
    460459    printf("[ArgumentCount]            | %10p | %d \n", it, (*it).i()); ++it;
    461460    printf("[Callee]                   | %10p | %p \n", it, (*it).function()); ++it;
  • trunk/JavaScriptCore/runtime/JSImmediate.h

    r58286 r61778  
    4444    class JSObject;
    4545    class UString;
     46
     47    extern const size_t CELL_MASK;
    4648
    4749#if USE(JSVALUE64)
     
    596598    inline bool JSValue::isCell() const
    597599    {
     600#ifndef NDEBUG
     601        bool r = !JSImmediate::isImmediate(asValue());
     602        ASSERT(!r || !(JSImmediate::rawValue(asValue()) & CELL_MASK));
     603        return r;
     604#else
    598605        return !JSImmediate::isImmediate(asValue());
     606#endif
    599607    }
    600608
  • trunk/JavaScriptCore/runtime/JSValue.cpp

    r60762 r61778  
    127127    else if (isNull())
    128128        snprintf(description, size, "Null");
    129     else {
    130         ASSERT(isUndefined());
     129    else if (isUndefined())
    131130        snprintf(description, size, "Undefined");
    132     }
     131    else
     132        snprintf(description, size, "INVALID");
    133133
    134134    return description;
  • trunk/JavaScriptCore/runtime/JSZombie.cpp

    r51625 r61778  
    3838    if (!structure) {
    3939        Structure::startIgnoringLeaks();
    40         structure = Structure::create(jsNull(), TypeInfo(UnspecifiedType)).releaseRef();
     40        structure = Structure::create(jsNull(), TypeInfo(UnspecifiedType), 0).releaseRef();
    4141        Structure::stopIgnoringLeaks();
    4242    }
Note: See TracChangeset for help on using the changeset viewer.