Changeset 35657 in webkit for trunk/JavaScriptCore


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):
Location:
trunk/JavaScriptCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r35653 r35657  
     12008-08-09  Alexey Proskuryakov  <[email protected]>
     2
     3        Reviewed by Sam Weinig.
     4
     5        Added same heap debug checks to more code paths.
     6
     7        * kjs/JSActivation.cpp:
     8        (KJS::JSActivation::put):
     9        (KJS::JSActivation::putWithAttributes):
     10        * kjs/JSGlobalObject.cpp:
     11        (KJS::JSGlobalObject::putWithAttributes):
     12        * kjs/JSObject.h:
     13        (KJS::JSObject::putDirect):
     14        * kjs/JSVariableObject.h:
     15        (KJS::JSVariableObject::symbolTablePut):
     16        (KJS::JSVariableObject::symbolTablePutWithAttributes):
     17
    1182008-08-09  Cameron Zwarich  <[email protected]>
    219
  • trunk/JavaScriptCore/kjs/JSActivation.cpp

    r35242 r35657  
    8484void JSActivation::put(ExecState*, const Identifier& propertyName, JSValue* value)
    8585{
     86    ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this));
     87
    8688    if (symbolTablePut(propertyName, value))
    8789        return;
     
    9799void JSActivation::putWithAttributes(ExecState*, const Identifier& propertyName, JSValue* value, unsigned attributes)
    98100{
     101    ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this));
     102
    99103    if (symbolTablePutWithAttributes(propertyName, value, attributes))
    100104        return;
  • trunk/JavaScriptCore/kjs/JSGlobalObject.cpp

    r35478 r35657  
    140140void JSGlobalObject::putWithAttributes(ExecState* exec, const Identifier& propertyName, JSValue* value, unsigned attributes)
    141141{
     142    ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this));
     143
    142144    if (symbolTablePutWithAttributes(propertyName, value, attributes))
    143145        return;
  • trunk/JavaScriptCore/kjs/JSObject.h

    r35245 r35657  
    477477inline void JSObject::putDirect(const Identifier& propertyName, JSValue* value, unsigned attr)
    478478{
     479    ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this));
     480
    479481    m_propertyMap.put(propertyName, value, attr);
    480482}
  • 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.