Changeset 58286 in webkit for trunk/JavaScriptCore/runtime/Lookup.h
- Timestamp:
- Apr 26, 2010, 9:22:46 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Lookup.h
r55564 r58286 38 38 39 39 namespace JSC { 40 41 40 // Hash table generated by the create_hash_table script. 42 41 struct HashTableValue { … … 45 44 intptr_t value1; 46 45 intptr_t value2; 46 #if ENABLE(JIT) 47 ThunkGenerator generator; 48 #endif 47 49 }; 48 50 … … 54 56 class HashEntry : public FastAllocBase { 55 57 public: 56 void initialize(UString::Rep* key, unsigned char attributes, intptr_t v1, intptr_t v2) 58 void initialize(UString::Rep* key, unsigned char attributes, intptr_t v1, intptr_t v2 59 #if ENABLE(JIT) 60 , ThunkGenerator generator = 0 61 #endif 62 ) 57 63 { 58 64 m_key = key; … … 60 66 m_u.store.value1 = v1; 61 67 m_u.store.value2 = v2; 68 #if ENABLE(JIT) 69 m_u.function.generator = generator; 70 #endif 62 71 m_next = 0; 63 72 } … … 68 77 unsigned char attributes() const { return m_attributes; } 69 78 79 #if ENABLE(JIT) 80 ThunkGenerator generator() const { ASSERT(m_attributes & Function); return m_u.function.generator; } 81 #endif 70 82 NativeFunction function() const { ASSERT(m_attributes & Function); return m_u.function.functionValue; } 71 83 unsigned char functionLength() const { ASSERT(m_attributes & Function); return static_cast<unsigned char>(m_u.function.length); } … … 91 103 NativeFunction functionValue; 92 104 intptr_t length; // number of arguments for function 105 #if ENABLE(JIT) 106 ThunkGenerator generator; 107 #endif 93 108 } function; 94 109 struct {
Note:
See TracChangeset
for help on using the changeset viewer.