Changeset 28110 in webkit for trunk/JavaScriptCore/kjs/object.h


Ignore:
Timestamp:
Nov 28, 2007, 5:12:03 AM (18 years ago)
Author:
[email protected]
Message:

Roll out r28106 and r28108. These introduced a frequent assertion failure on page load and broke all non-Mac builds.

File:
1 edited

Legend:

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

    r28106 r28110  
    2828#include "JSType.h"
    2929#include "CommonIdentifiers.h"
    30 #include "MarkStack.h"
    3130#include "interpreter.h"
    3231#include "property_map.h"
     
    8685    virtual JSObject *toObject(ExecState *exec) const;
    8786     
    88     virtual void markChildren(MarkStack&);
     87    virtual void mark();
    8988     
    9089    JSObject *getGetter() { return getter; }
     
    113112    JSObject();
    114113
    115     virtual void markChildren(MarkStack&);
     114    virtual void mark();
    116115    virtual JSType type() const;
    117116
     
    588587// FIXME: Put this function in a separate file named something like scope_chain_mark.h -- can't put it in scope_chain.h since it depends on JSObject.
    589588
    590 inline void ScopeChain::markChildren(MarkStack& stack)
    591 {
    592     for (ScopeChainNode* n = _node; n; n = n->next) {
    593         JSObject* o = n->object;
    594         stack.push(o);
     589inline void ScopeChain::mark()
     590{
     591    for (ScopeChainNode *n = _node; n; n = n->next) {
     592        JSObject *o = n->object;
     593        if (!o->marked())
     594            o->mark();
    595595    }
    596596}
Note: See TracChangeset for help on using the changeset viewer.