diff options
Diffstat (limited to 'JavaScriptCore/runtime/ScopeChain.h')
-rw-r--r-- | JavaScriptCore/runtime/ScopeChain.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/JavaScriptCore/runtime/ScopeChain.h b/JavaScriptCore/runtime/ScopeChain.h index 6f1560a..c5e16c9 100644 --- a/JavaScriptCore/runtime/ScopeChain.h +++ b/JavaScriptCore/runtime/ScopeChain.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003, 2008 Apple Inc. All rights reserved. + * Copyright (C) 2003, 2008, 2009 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -21,16 +21,17 @@ #ifndef ScopeChain_h #define ScopeChain_h -#include <wtf/Assertions.h> +#include "FastAllocBase.h" namespace JSC { class JSGlobalData; class JSGlobalObject; class JSObject; + class MarkStack; class ScopeChainIterator; - class ScopeChainNode { + class ScopeChainNode : public FastAllocBase { public: ScopeChainNode(ScopeChainNode* next, JSObject* object, JSGlobalData* globalData, JSObject* globalThis) : next(next) @@ -204,7 +205,7 @@ namespace JSC { JSGlobalObject* globalObject() const { return m_node->globalObject(); } - void mark() const; + void markAggregate(MarkStack&) const; // Caution: this should only be used if the codeblock this is being used // with needs a full scope chain, otherwise this returns the depth of |