|
Lines 66-73
struct HashTableValue {
Source/JavaScriptCore/runtime/Lookup.h_sec1
|
| 66 |
NativeFunction accessorGetter() const { ASSERT(m_attributes & Accessor); return reinterpret_cast<NativeFunction>(m_value1); } |
66 |
NativeFunction accessorGetter() const { ASSERT(m_attributes & Accessor); return reinterpret_cast<NativeFunction>(m_value1); } |
| 67 |
NativeFunction accessorSetter() const { ASSERT(m_attributes & Accessor); return reinterpret_cast<NativeFunction>(m_value2); } |
67 |
NativeFunction accessorSetter() const { ASSERT(m_attributes & Accessor); return reinterpret_cast<NativeFunction>(m_value2); } |
| 68 |
|
68 |
|
| 69 |
intptr_t constantInteger() const { ASSERT(m_attributes & ConstantInteger); return m_value1; } |
|
|
| 70 |
|
| 71 |
intptr_t lexerValue() const { ASSERT(!m_attributes); return m_value1; } |
69 |
intptr_t lexerValue() const { ASSERT(!m_attributes); return m_value1; } |
| 72 |
}; |
70 |
}; |
| 73 |
|
71 |
|
|
Lines 187-197
inline bool getStaticPropertySlot(ExecSt
Source/JavaScriptCore/runtime/Lookup.h_sec2
|
| 187 |
if (entry->attributes() & BuiltinOrFunctionOrAccessor) |
185 |
if (entry->attributes() & BuiltinOrFunctionOrAccessor) |
| 188 |
return setUpStaticFunctionSlot(exec, entry, thisObj, propertyName, slot); |
186 |
return setUpStaticFunctionSlot(exec, entry, thisObj, propertyName, slot); |
| 189 |
|
187 |
|
| 190 |
if (entry->attributes() & ConstantInteger) { |
|
|
| 191 |
slot.setValue(thisObj, entry->attributes(), jsNumber(entry->constantInteger())); |
| 192 |
return true; |
| 193 |
} |
| 194 |
|
| 195 |
slot.setCacheableCustom(thisObj, entry->attributes(), entry->propertyGetter()); |
188 |
slot.setCacheableCustom(thisObj, entry->attributes(), entry->propertyGetter()); |
| 196 |
return true; |
189 |
return true; |
| 197 |
} |
190 |
} |
|
Lines 228-238
inline bool getStaticValueSlot(ExecState
Source/JavaScriptCore/runtime/Lookup.h_sec3
|
| 228 |
|
221 |
|
| 229 |
ASSERT(!(entry->attributes() & BuiltinOrFunctionOrAccessor)); |
222 |
ASSERT(!(entry->attributes() & BuiltinOrFunctionOrAccessor)); |
| 230 |
|
223 |
|
| 231 |
if (entry->attributes() & ConstantInteger) { |
|
|
| 232 |
slot.setValue(thisObj, entry->attributes(), jsNumber(entry->constantInteger())); |
| 233 |
return true; |
| 234 |
} |
| 235 |
|
| 236 |
slot.setCacheableCustom(thisObj, entry->attributes(), entry->propertyGetter()); |
224 |
slot.setCacheableCustom(thisObj, entry->attributes(), entry->propertyGetter()); |
| 237 |
return true; |
225 |
return true; |
| 238 |
} |
226 |
} |
|
Lines 289-299
inline void reifyStaticProperties(VM& vm
Source/JavaScriptCore/runtime/Lookup.h_sec4
|
| 289 |
continue; |
277 |
continue; |
| 290 |
} |
278 |
} |
| 291 |
|
279 |
|
| 292 |
if (value.attributes() & ConstantInteger) { |
|
|
| 293 |
thisObj.putDirect(vm, propertyName, jsNumber(value.constantInteger()), value.attributes()); |
| 294 |
continue; |
| 295 |
} |
| 296 |
|
| 297 |
if (value.attributes() & Accessor) { |
280 |
if (value.attributes() & Accessor) { |
| 298 |
reifyStaticAccessor(vm, value, thisObj, propertyName); |
281 |
reifyStaticAccessor(vm, value, thisObj, propertyName); |
| 299 |
continue; |
282 |
continue; |