Changeset 33979 in webkit for trunk/JavaScriptCore/kjs/scope_chain.cpp
- Timestamp:
- May 21, 2008, 6:20:45 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/scope_chain.cpp
r29068 r33979 1 1 /* 2 2 * This file is part of the KDE libraries 3 * Copyright (C) 2003, 2006 Apple Inc.3 * Copyright (C) 2003, 2006, 2008 Apple Inc. 4 4 * 5 5 * This library is free software; you can redistribute it and/or … … 22 22 #include "config.h" 23 23 #include "scope_chain.h" 24 24 25 #include "PropertyNameArray.h" 26 #include "object.h" 25 27 #include <stdio.h> 26 #include "object.h"27 28 28 29 namespace KJS { 29 30 30 void ScopeChain::push(const ScopeChain &c)31 {32 ScopeChainNode **tail = &_node;33 for (ScopeChainNode *n = c._node; n; n = n->next) {34 ScopeChainNode *newNode = new ScopeChainNode(*tail, n->object);35 *tail = newNode;36 tail = &newNode->next;37 }38 }39 40 31 #ifndef NDEBUG 41 32 42 void ScopeChain ::print()33 void ScopeChainNode::print() const 43 34 { 44 35 ScopeChainIterator scopeEnd = end();
Note:
See TracChangeset
for help on using the changeset viewer.