~ubuntu-branches/ubuntu/karmic/webkit/karmic-proposed

« back to all changes in this revision

Viewing changes to JavaScriptCore/runtime/ScopeChain.h

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2009-05-15 18:30:58 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090515183058-50q5exjo9b1kxy9s
Tags: 1.1.7-1
* New upstream release
* debian/libwebkit-1.0-2.symbols:
- updated with the new symbols in 1.1.7
* debian/libwebkit-dev.install, debian/libwebkit-dev.links,
  debian/rules:
- Build, and ship gtk-doc documentation (Closes: #526683)
* debian/copyright:
- updated.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        {
42
42
            ASSERT(globalData);
43
43
        }
 
44
#ifndef NDEBUG
 
45
        // Due to the number of subtle and timing dependent bugs that have occurred due
 
46
        // to deleted but still "valid" ScopeChainNodes we now deliberately clobber the
 
47
        // contents in debug builds.
 
48
        ~ScopeChainNode()
 
49
        {
 
50
            next = 0;
 
51
            object = 0;
 
52
            globalData = 0;
 
53
            globalThis = 0;
 
54
        }
 
55
#endif
44
56
 
45
57
        ScopeChainNode* next;
46
58
        JSObject* object;
171
183
        {
172
184
            if (m_node)
173
185
                m_node->deref();
 
186
#ifndef NDEBUG
 
187
            m_node = 0;
 
188
#endif
174
189
        }
175
190
 
176
191
        void swap(ScopeChain&);