Changeset 35657 in webkit for trunk/JavaScriptCore
- Timestamp:
- Aug 10, 2008, 3:06:13 AM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r35653 r35657 1 2008-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 1 18 2008-08-09 Cameron Zwarich <[email protected]> 2 19 -
trunk/JavaScriptCore/kjs/JSActivation.cpp
r35242 r35657 84 84 void JSActivation::put(ExecState*, const Identifier& propertyName, JSValue* value) 85 85 { 86 ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this)); 87 86 88 if (symbolTablePut(propertyName, value)) 87 89 return; … … 97 99 void JSActivation::putWithAttributes(ExecState*, const Identifier& propertyName, JSValue* value, unsigned attributes) 98 100 { 101 ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this)); 102 99 103 if (symbolTablePutWithAttributes(propertyName, value, attributes)) 100 104 return; -
trunk/JavaScriptCore/kjs/JSGlobalObject.cpp
r35478 r35657 140 140 void JSGlobalObject::putWithAttributes(ExecState* exec, const Identifier& propertyName, JSValue* value, unsigned attributes) 141 141 { 142 ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this)); 143 142 144 if (symbolTablePutWithAttributes(propertyName, value, attributes)) 143 145 return; -
trunk/JavaScriptCore/kjs/JSObject.h
r35245 r35657 477 477 inline void JSObject::putDirect(const Identifier& propertyName, JSValue* value, unsigned attr) 478 478 { 479 ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this)); 480 479 481 m_propertyMap.put(propertyName, value, attr); 480 482 } -
trunk/JavaScriptCore/kjs/JSVariableObject.h
r35203 r35657 126 126 inline bool JSVariableObject::symbolTablePut(const Identifier& propertyName, JSValue* value) 127 127 { 128 ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this)); 129 128 130 SymbolTableEntry entry = symbolTable().inlineGet(propertyName.ustring().rep()); 129 131 if (entry.isNull()) … … 137 139 inline bool JSVariableObject::symbolTablePutWithAttributes(const Identifier& propertyName, JSValue* value, unsigned attributes) 138 140 { 141 ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this)); 142 139 143 SymbolTable::iterator iter = symbolTable().find(propertyName.ustring().rep()); 140 144 if (iter == symbolTable().end())
Note:
See TracChangeset
for help on using the changeset viewer.