Changeset 36851 in webkit for trunk/JavaScriptCore/kjs/JSGlobalObject.cpp
- Timestamp:
- Sep 24, 2008, 10:02:14 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSGlobalObject.cpp
r36843 r36851 196 196 void JSGlobalObject::reset(JSValue* prototype) 197 197 { 198 // Clear before inititalizing, to avoid calling mark() on stale pointers --199 // which would be wasteful -- or uninitialized pointers -- which would be200 // dangerous. (The allocations below may cause a GC.)201 202 ASSERT(!hasCustomProperties());203 symbolTable().clear();204 setRegisters(0, 0, 0);205 206 198 ExecState* exec = d()->globalExec.get(); 207 199
Note:
See TracChangeset
for help on using the changeset viewer.