Changeset 77151 in webkit for trunk/Source/JavaScriptCore/runtime/JSFunction.cpp
- Timestamp:
- Jan 31, 2011, 12:07:21 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSFunction.cpp
r77113 r77151 72 72 , m_scopeChain(globalObject->globalScopeChain()) 73 73 { 74 putDirect(exec->globalData() .propertyNames->name, jsString(exec, name.isNull() ? "" : name.ustring()), DontDelete | ReadOnly | DontEnum);75 putDirect(exec-> propertyNames().length, jsNumber(length), DontDelete | ReadOnly | DontEnum);74 putDirect(exec->globalData(), exec->globalData().propertyNames->name, jsString(exec, name.isNull() ? "" : name.ustring()), DontDelete | ReadOnly | DontEnum); 75 putDirect(exec->globalData(), exec->propertyNames().length, jsNumber(length), DontDelete | ReadOnly | DontEnum); 76 76 } 77 77 #endif … … 84 84 , m_scopeChain(globalObject->globalScopeChain()) 85 85 { 86 putDirect(exec->globalData() .propertyNames->name, jsString(exec, name.isNull() ? "" : name.ustring()), DontDelete | ReadOnly | DontEnum);87 #if ENABLE(JIT) 88 putDirect(exec-> propertyNames().length, jsNumber(length), DontDelete | ReadOnly | DontEnum);86 putDirect(exec->globalData(), exec->globalData().propertyNames->name, jsString(exec, name.isNull() ? "" : name.ustring()), DontDelete | ReadOnly | DontEnum); 87 #if ENABLE(JIT) 88 putDirect(exec->globalData(), exec->propertyNames().length, jsNumber(length), DontDelete | ReadOnly | DontEnum); 89 89 #else 90 90 UNUSED_PARAM(length); … … 100 100 { 101 101 const Identifier& name = static_cast<FunctionExecutable*>(m_executable.get())->name(); 102 putDirect(exec->globalData() .propertyNames->name, jsString(exec, name.isNull() ? "" : name.ustring()), DontDelete | ReadOnly | DontEnum);102 putDirect(exec->globalData(), exec->globalData().propertyNames->name, jsString(exec, name.isNull() ? "" : name.ustring()), DontDelete | ReadOnly | DontEnum); 103 103 } 104 104 … … 208 208 if (!location) { 209 209 JSObject* prototype = new (exec) JSObject(scope().globalObject()->emptyObjectStructure()); 210 prototype->putDirect(exec-> propertyNames().constructor, this, DontEnum);211 putDirect(exec-> propertyNames().prototype, prototype, DontDelete | DontEnum);210 prototype->putDirect(exec->globalData(), exec->propertyNames().constructor, this, DontEnum); 211 putDirect(exec->globalData(), exec->propertyNames().prototype, prototype, DontDelete | DontEnum); 212 212 location = getDirectLocation(propertyName); 213 213 }
Note:
See TracChangeset
for help on using the changeset viewer.