Changeset 35807 in webkit for trunk/JavaScriptCore/kjs/JSFunction.cpp
- Timestamp:
- Aug 17, 2008, 1:23:49 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSFunction.cpp
r35022 r35807 26 26 #include "JSFunction.h" 27 27 28 #include "CommonIdentifiers.h" 28 29 #include "ExecState.h" 29 30 #include "FunctionPrototype.h" … … 40 41 namespace KJS { 41 42 42 const ClassInfo JSFunction::info = { "Function", &InternalFunction::info, 0, 0 }; 43 ASSERT_CLASS_FITS_IN_CELL(JSFunction); 44 45 const ClassInfo JSFunction::info = { "Function", 0, 0, 0 }; 43 46 44 47 JSFunction::JSFunction(ExecState* exec, const Identifier& name, FunctionBodyNode* body, ScopeChainNode* scopeChainNode) 45 : InternalFunction(exec->lexicalGlobalObject()->functionPrototype(), name)48 : Base(exec, exec->lexicalGlobalObject()->functionPrototype(), name) 46 49 , m_body(body) 47 50 , m_scopeChain(scopeChainNode) … … 51 54 void JSFunction::mark() 52 55 { 53 InternalFunction::mark();56 Base::mark(); 54 57 m_body->mark(); 55 58 m_scopeChain.mark(); … … 103 106 } 104 107 105 return InternalFunction::getOwnPropertySlot(exec, propertyName, slot);108 return Base::getOwnPropertySlot(exec, propertyName, slot); 106 109 } 107 110 … … 110 113 if (propertyName == exec->propertyNames().arguments || propertyName == exec->propertyNames().length) 111 114 return; 112 InternalFunction::put(exec, propertyName, value);115 Base::put(exec, propertyName, value); 113 116 } 114 117 … … 117 120 if (propertyName == exec->propertyNames().arguments || propertyName == exec->propertyNames().length) 118 121 return false; 119 return InternalFunction::deleteProperty(exec, propertyName);122 return Base::deleteProperty(exec, propertyName); 120 123 } 121 124
Note:
See TracChangeset
for help on using the changeset viewer.