Changeset 47292 in webkit for trunk/JavaScriptCore/runtime/Arguments.h
- Timestamp:
- Aug 14, 2009, 1:18:09 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Arguments.h
r47022 r47292 29 29 #include "JSGlobalObject.h" 30 30 #include "Interpreter.h" 31 #include "ObjectConstructor.h" 31 32 32 33 namespace JSC { … … 99 100 100 101 void init(CallFrame*); 102 void initializeStandardProperties(CallFrame*); 101 103 102 104 OwnPtr<ArgumentsData> d; … … 132 134 , d(new ArgumentsData) 133 135 { 136 initializeStandardProperties(callFrame); 134 137 JSFunction* callee; 135 138 ptrdiff_t firstParameterIndex; … … 170 173 { 171 174 ASSERT(!callFrame->callee()->body()->parameterCount()); 172 175 176 initializeStandardProperties(callFrame); 173 177 unsigned numArguments = callFrame->argumentCount() - 1; 174 178 … … 238 242 } 239 243 244 245 inline void Arguments::initializeStandardProperties(CallFrame* callFrame) 246 { 247 putDirectFunction(callFrame->propertyNames().constructor, callFrame->lexicalGlobalObject()->objectConstructor(), DontEnum); 248 putDirectFunction(callFrame->propertyNames().toString, callFrame->lexicalGlobalObject()->objectToStringFunction(), DontEnum); 249 putDirectFunction(callFrame->propertyNames().toLocaleString, callFrame->lexicalGlobalObject()->objectToLocaleStringFunction(), DontEnum); 250 } 240 251 241 252 } // namespace JSC
Note:
See TracChangeset
for help on using the changeset viewer.