Changeset 13960 in webkit for trunk/JavaScriptCore/kjs
- Timestamp:
- Apr 18, 2006, 3:17:41 PM (19 years ago)
- Location:
- trunk/JavaScriptCore/kjs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function_object.cpp
r13465 r13960 205 205 206 206 ScopeChain scopeChain; 207 scopeChain.push(exec-> dynamicInterpreter()->globalObject());207 scopeChain.push(exec->lexicalInterpreter()->globalObject()); 208 208 FunctionBodyNode *bodyNode = progNode.get(); 209 209 -
trunk/JavaScriptCore/kjs/scope_chain.cpp
r12949 r13960 22 22 #include "config.h" 23 23 #include "scope_chain.h" 24 #include "reference_list.h" 24 25 25 26 namespace KJS { … … 35 36 } 36 37 38 #ifndef NDEBUG 39 40 void ScopeChain::print(ExecState* exec) 41 { 42 ScopeChainIterator scopeEnd = end(); 43 for (ScopeChainIterator scopeIter = begin(); scopeIter != scopeEnd; ++scopeIter) { 44 JSObject* o = *scopeIter; 45 ReferenceList propList = o->propList(exec, false); 46 ReferenceListIterator propEnd = propList.end(); 47 48 fprintf(stderr, "----- [scope %p] -----\n", o); 49 for (ReferenceListIterator propIter = propList.begin(); propIter != propEnd; propIter++) { 50 Identifier name = propIter->getPropertyName(exec); 51 fprintf(stderr, "%s, ", name.ascii()); 52 } 53 fprintf(stderr, "\n"); 54 } 55 } 56 57 #endif 58 37 59 } // namespace KJS -
trunk/JavaScriptCore/kjs/scope_chain.h
r12317 r13960 28 28 29 29 class JSObject; 30 class ExecState; 30 31 31 32 class ScopeChainNode { … … 80 81 81 82 void mark(); 83 84 #ifndef NDEBUG 85 void print(ExecState*); 86 #endif 82 87 83 88 private:
Note:
See TracChangeset
for help on using the changeset viewer.