Changeset 28528 in webkit for trunk/JavaScriptCore/kjs


Ignore:
Timestamp:
Dec 7, 2007, 2:14:17 PM (17 years ago)
Author:
[email protected]
Message:

Build fix: moved functions with qualified names outside of class
declaration.

  • kjs/JSVariableObject.h: (KJS::JSVariableObject::symbolTableGet): (KJS::JSVariableObject::symbolTablePut):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/JSVariableObject.h

    r28527 r28528  
    7171        }
    7272
    73         bool JSVariableObject::symbolTableGet(const Identifier& propertyName, PropertySlot& slot)
    74         {
    75             size_t index = symbolTable().get(propertyName.ustring().rep());
    76             if (index != missingSymbolMarker()) {
    77                 slot.setValueSlot(this, &d->localStorage[index].value);
    78                 return true;
    79             }
    80 
    81             return false;
    82         }
    83 
    84         bool JSVariableObject::symbolTablePut(const Identifier& propertyName, JSValue* value, int attr)
    85         {
    86             size_t index = symbolTable().get(propertyName.ustring().rep());
    87             if (index != missingSymbolMarker()) {
    88                 LocalStorageEntry& entry = d->localStorage[index];
    89                 entry.value = value;
    90                 entry.attributes = attr;
    91                 return true;
    92             }
    93 
    94             return false;
    95         }
     73        bool symbolTableGet(const Identifier&, PropertySlot&);
     74        bool symbolTablePut(const Identifier&, JSValue*, int attr);
    9675
    9776        JSVariableObjectData* d;
    9877    };
    9978
     79    inline bool JSVariableObject::symbolTableGet(const Identifier& propertyName, PropertySlot& slot)
     80    {
     81        size_t index = symbolTable().get(propertyName.ustring().rep());
     82        if (index != missingSymbolMarker()) {
     83            slot.setValueSlot(this, &d->localStorage[index].value);
     84            return true;
     85        }
     86
     87        return false;
     88    }
     89
     90    inline bool JSVariableObject::symbolTablePut(const Identifier& propertyName, JSValue* value, int attr)
     91    {
     92        size_t index = symbolTable().get(propertyName.ustring().rep());
     93        if (index != missingSymbolMarker()) {
     94            LocalStorageEntry& entry = d->localStorage[index];
     95            entry.value = value;
     96            entry.attributes = attr;
     97            return true;
     98        }
     99
     100        return false;
     101    }
     102
    100103} // namespace KJS
    101104
Note: See TracChangeset for help on using the changeset viewer.