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.cpp

    r34607 r34610  
    5757{
    5858    SymbolTableEntry entry = symbolTable().get(propertyName.ustring().rep());
    59     if (!entry.isEmpty()) {
     59    if (!entry.isNull()) {
    6060        attributes = entry.getAttributes() | DontDelete;
    6161        return true;
Note: See TracChangeset for help on using the changeset viewer.