Changeset 3306 in webkit for trunk/JavaScriptCore/kjs/nodes.cpp


Ignore:
Timestamp:
Jan 12, 2003, 10:43:08 AM (22 years ago)
Author:
darin
Message:

Reviewed by John.

  • changes inspired by things I noticed reviewing diffs vs. KDE when preparing the tarball
  • kjs/function.cpp: (GlobalFuncImp::call): Use strtol when strtoll is not available. Do #ifndef NDEBUG, not #if !NDEBUG.
  • kjs/function.h: Do #ifndef NDEBUG, not #if !NDEBUG.
  • kjs/internal.cpp: (InterpreterImp::initGlobalObject): Do #ifndef NDEBUG, not #if !NDEBUG. (KJS::printInfo): Remove case for ListType and remove default case that just ends up suppressing the "missing case" warning and does no good.
  • kjs/interpreter.cpp: (Interpreter::evaluate): Do #ifndef NDEBUG, not #if !NDEBUG.
  • kjs/nodes.cpp: (Node::finalCheck): Fix accidentally-deleted code in an ifdef we never compile. (FunctionCallNode::evaluate): Remove bogus XXX comment. Maciej put this comment in, and together we determined it's not needed. (TypeOfNode::evaluate): Ditto.
  • kjs/object.cpp: Remove assert that refers to ListType.
  • kjs/value.h: Remove ListType.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/nodes.cpp

    r3215 r3306  
    116116{
    117117  fprintf( stderr, "Node::finalCheck(): list count       : %d\n", (int)s_nodes.size() );
     118  std::list<Node *>::iterator it = s_nodes->begin();
     119  for ( uint i = 0; it != s_nodes->end() ; ++it, ++i )
    118120    fprintf( stderr, "[%d] Still having node %p (%s) (refcount %d)\n", i, (void*)*it, typeid( **it ).name(), (*it)->refcount );
    119121  delete s_nodes;
     
    728730
    729731  Value thisVal;
    730   // XXX - should check for constant reference
    731732  if (ref.isMutable())
    732733    thisVal = ref.getBase(exec);
     
    862863  Reference ref = expr->evaluateReference(exec);
    863864  KJS_CHECKEXCEPTIONVALUE
    864   // XXX - Really should check if this is a constant reference
    865865  if (ref.isMutable()) {
    866866    Value b = ref.getBase(exec);
Note: See TracChangeset for help on using the changeset viewer.