Ignore:
Timestamp:
Jun 16, 2008, 7:49:07 PM (17 years ago)
Author:
[email protected]
Message:

2008-06-16 Geoffrey Garen <[email protected]>

Reviewed by Oliver Hunt.


Slight cleanup to the SymbolTableEntry class.


Renamed isEmpty to isNull, since we usually use "empty" to mean "holds
the valid, empty value", and "null" to mean "holds no value".


Changed an "== 0" to a "!", to match our style guidelines.


Added some ASSERTs to verify the (possibly questionable) assumption that
all register indexes will have their high two bits set. Also clarified a
comment to make that assumption clear.

File:
1 edited

Legend:

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

    r34581 r34610  
    101101    {
    102102        SymbolTableEntry entry = symbolTable().inlineGet(propertyName.ustring().rep());
    103         if (!entry.isEmpty()) {
     103        if (!entry.isNull()) {
    104104            slot.setValueSlot(&valueAt(entry.getIndex()));
    105105            return true;
     
    111111    {
    112112        SymbolTableEntry entry = symbolTable().inlineGet(propertyName.ustring().rep());
    113         if (!entry.isEmpty()) {
     113        if (!entry.isNull()) {
    114114            slot.setValueSlot(&valueAt(entry.getIndex()));
    115115            slotIsWriteable = !entry.isReadOnly();
     
    122122    {
    123123        SymbolTableEntry entry = symbolTable().inlineGet(propertyName.ustring().rep());
    124         if (entry.isEmpty())
     124        if (entry.isNull())
    125125            return false;
    126126        if (entry.isReadOnly())
     
    136136            return false;
    137137        SymbolTableEntry& entry = iter->second;
    138         ASSERT(!entry.isEmpty());
     138        ASSERT(!entry.isNull());
    139139        entry.setAttributes(attributes);
    140140        valueAt(entry.getIndex()) = value;
Note: See TracChangeset for help on using the changeset viewer.