Ignore:
Timestamp:
Oct 22, 2013, 5:26:25 PM (12 years ago)
Author:
[email protected]
Message:

Minor VM* -> VM& cleanups in HashTable and Keywords.
<https://webkit.org/b/123183>

Turn some VM* variables that will never be null into VM&.

Reviewed by Geoffrey Garen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/Lookup.h

    r156009 r157836  
    122122        }
    123123
    124         ALWAYS_INLINE void initializeIfNeeded(VM* vm) const
     124        ALWAYS_INLINE void initializeIfNeeded(VM& vm) const
    125125        {
    126126            if (!table)
     
    131131        {
    132132            if (!table)
    133                 createTable(&exec->vm());
     133                createTable(exec->vm());
    134134        }
    135135
     
    137137
    138138        // Find an entry in the table, and return the entry.
    139         ALWAYS_INLINE const HashEntry* entry(VM* vm, PropertyName identifier) const
     139        ALWAYS_INLINE const HashEntry* entry(VM& vm, PropertyName identifier) const
    140140        {
    141141            initializeIfNeeded(vm);
     
    197197        ConstIterator begin(VM& vm) const
    198198        {
    199             initializeIfNeeded(&vm);
     199            initializeIfNeeded(vm);
    200200            return ConstIterator(this, 0);
    201201        }
    202202        ConstIterator end(VM& vm) const
    203203        {
    204             initializeIfNeeded(&vm);
     204            initializeIfNeeded(vm);
    205205            return ConstIterator(this, compactSize);
    206206        }
     
    230230
    231231        // Convert the hash table keys to identifiers.
    232         JS_EXPORT_PRIVATE void createTable(VM*) const;
     232        JS_EXPORT_PRIVATE void createTable(VM&) const;
    233233    };
    234234
Note: See TracChangeset for help on using the changeset viewer.