Ignore:
Timestamp:
Aug 10, 2008, 3:06:13 AM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Sam Weinig.

Added same heap debug checks to more code paths.

  • kjs/JSActivation.cpp: (KJS::JSActivation::put): (KJS::JSActivation::putWithAttributes):
  • kjs/JSGlobalObject.cpp: (KJS::JSGlobalObject::putWithAttributes):
  • kjs/JSObject.h: (KJS::JSObject::putDirect):
  • kjs/JSVariableObject.h: (KJS::JSVariableObject::symbolTablePut): (KJS::JSVariableObject::symbolTablePutWithAttributes):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/JSVariableObject.h

    r35203 r35657  
    126126    inline bool JSVariableObject::symbolTablePut(const Identifier& propertyName, JSValue* value)
    127127    {
     128        ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this));
     129
    128130        SymbolTableEntry entry = symbolTable().inlineGet(propertyName.ustring().rep());
    129131        if (entry.isNull())
     
    137139    inline bool JSVariableObject::symbolTablePutWithAttributes(const Identifier& propertyName, JSValue* value, unsigned attributes)
    138140    {
     141        ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this));
     142
    139143        SymbolTable::iterator iter = symbolTable().find(propertyName.ustring().rep());
    140144        if (iter == symbolTable().end())
Note: See TracChangeset for help on using the changeset viewer.