Ignore:
Timestamp:
Mar 15, 2011, 4:29:56 PM (14 years ago)
Author:
[email protected]
Message:

2011-03-15 Geoffrey Garen <[email protected]>

Reviewed by Oliver Hunt.

Removed a few more deprecatedAppends, and removed HeapRoot<T>
https://bugs.webkit.org/show_bug.cgi?id=56422


Added HeapRootMarker, a privileged class for marking direct heap roots
that are iterated during each garbage collection. This is easier to use
and more reliable than HeapRoot<T>, so I've removed HeapRoot<T>.

  • debugger/Debugger.cpp: (JSC::evaluateInGlobalCallFrame):
  • debugger/DebuggerCallFrame.cpp: (JSC::DebuggerCallFrame::evaluate):
  • interpreter/CallFrame.h: (JSC::ExecState::exception):
  • jit/JITStubs.cpp: (JSC::DEFINE_STUB_FUNCTION):
  • runtime/Completion.cpp: (JSC::evaluate): exception is no longer a HeapRoot<T>, so no need to call .get() on it.
  • runtime/Heap.cpp: (JSC::Heap::markProtectedObjects): (JSC::Heap::markTempSortVectors): (JSC::Heap::markRoots):
  • runtime/Heap.h: Updated to use HeapRootMarker.
  • runtime/JSCell.h: (JSC::JSCell::MarkStack::append): Added private functions for HeapRootMarker to use.
  • runtime/JSGlobalData.h: exception is no longer a HeapRoot<T>.
  • runtime/MarkStack.h: (JSC::HeapRootMarker::HeapRootMarker): (JSC::HeapRootMarker::mark): Added private functions for HeapRootMarker to use.
  • runtime/SmallStrings.cpp: (JSC::SmallStrings::markChildren): Updated to use HeapRootMarker.
  • runtime/SmallStrings.h: (JSC::SmallStrings::emptyString): (JSC::SmallStrings::singleCharacterString): (JSC::SmallStrings::singleCharacterStrings): Updated to use HeapRootMarker.
  • runtime/WriteBarrier.h: Removed HeapRoot<T>.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/jit/JITStubs.cpp

    r80684 r81191  
    944944#define CHECK_FOR_EXCEPTION() \
    945945    do { \
    946         if (UNLIKELY(stackFrame.globalData->exception.get())) \
     946        if (UNLIKELY(stackFrame.globalData->exception)) \
    947947            VM_THROW_EXCEPTION(); \
    948948    } while (0)
    949949#define CHECK_FOR_EXCEPTION_AT_END() \
    950950    do { \
    951         if (UNLIKELY(stackFrame.globalData->exception.get())) \
     951        if (UNLIKELY(stackFrame.globalData->exception)) \
    952952            VM_THROW_EXCEPTION_AT_END(); \
    953953    } while (0)
    954954#define CHECK_FOR_EXCEPTION_VOID() \
    955955    do { \
    956         if (UNLIKELY(stackFrame.globalData->exception.get())) { \
     956        if (UNLIKELY(stackFrame.globalData->exception)) { \
    957957            VM_THROW_EXCEPTION_AT_END(); \
    958958            return; \
     
    34733473    STUB_INIT_STACK_FRAME(stackFrame);
    34743474    JSGlobalData* globalData = stackFrame.globalData;
    3475     ExceptionHandler handler = jitThrow(globalData, stackFrame.callFrame, globalData->exception.get(), globalData->exceptionLocation);
     3475    ExceptionHandler handler = jitThrow(globalData, stackFrame.callFrame, globalData->exception, globalData->exceptionLocation);
    34763476    STUB_SET_RETURN_ADDRESS(handler.catchRoutine);
    34773477    return handler.callFrame;
Note: See TracChangeset for help on using the changeset viewer.