Changeset 54510 in webkit for trunk/JavaScriptCore/runtime
- Timestamp:
- Feb 8, 2010, 2:26:59 PM (15 years ago)
- Location:
- trunk/JavaScriptCore/runtime
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/CommonIdentifiers.cpp
r44813 r54510 29 29 30 30 CommonIdentifiers::CommonIdentifiers(JSGlobalData* globalData) 31 : nullIdentifier(globalData, nullCString) 32 , emptyIdentifier(globalData, "") 31 : emptyIdentifier(globalData, "") 33 32 , underscoreProto(globalData, "__proto__") 34 33 , thisIdentifier(globalData, "this") -
trunk/JavaScriptCore/runtime/CommonIdentifiers.h
r53170 r54510 91 91 92 92 public: 93 const Identifier nullIdentifier;94 93 const Identifier emptyIdentifier; 95 94 const Identifier underscoreProto; -
trunk/JavaScriptCore/runtime/FunctionPrototype.cpp
r52028 r54510 39 39 40 40 FunctionPrototype::FunctionPrototype(ExecState* exec, NonNullPassRefPtr<Structure> structure) 41 : InternalFunction(&exec->globalData(), structure, exec->propertyNames(). nullIdentifier)41 : InternalFunction(&exec->globalData(), structure, exec->propertyNames().emptyIdentifier) 42 42 { 43 43 putDirectWithoutTransition(exec->propertyNames().length, jsNumber(exec, 0), DontDelete | ReadOnly | DontEnum); -
trunk/JavaScriptCore/runtime/Identifier.cpp
r54464 r54510 124 124 PassRefPtr<UString::Rep> Identifier::add(JSGlobalData* globalData, const char* c) 125 125 { 126 if (!c) { 127 UString::Rep* rep = UString::null().rep(); 128 rep->hash(); 129 return rep; 130 } 126 ASSERT(c); 127 131 128 if (!c[0]) { 132 129 UString::Rep::empty().hash(); -
trunk/JavaScriptCore/runtime/PropertyNameArray.cpp
r54464 r54510 31 31 void PropertyNameArray::add(UString::Rep* identifier) 32 32 { 33 ASSERT(identifier == UString::null().rep() || identifier ==&UString::Rep::empty() || identifier->isIdentifier());33 ASSERT(identifier == &UString::Rep::empty() || identifier->isIdentifier()); 34 34 35 35 size_t size = m_data->propertyNameVector().size();
Note:
See TracChangeset
for help on using the changeset viewer.