Ignore:
Timestamp:
Jan 6, 2006, 3:51:00 PM (19 years ago)
Author:
mjs
Message:

Reviewed by Darin.

Changes mostly thanks to Maks Orlovich, tweaked a little by me.

  • kjs/create_hash_table: Use the same hash as the one used buy Identifier.
  • kjs/function.cpp: (KJS::FunctionImp::processParameters): Use the new List::copyFrom (KJS::ActivationImp::ActivationImp): track variable while iterating
  • kjs/internal.cpp: (KJS::StringImp::toObject): create StringInstance directly
  • kjs/list.cpp: (KJS::List::copy): implement in terms of copyFrom (KJS::List::copyFrom): more efficient way to copy in another list
  • kjs/list.h:
  • kjs/lookup.cpp: (keysMatch): updated to work with identifier hash (findEntry): ditto (Lookup::findEntry): ditto (Lookup::find): ditto
  • kjs/lookup.h:
File:
1 edited

Legend:

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

    r11919 r11920  
    183183JSObject *StringImp::toObject(ExecState *exec) const
    184184{
    185   List args;
    186   args.append(const_cast<StringImp*>(this));
    187   return static_cast<JSObject *>(exec->lexicalInterpreter()->builtinString()->construct(exec, args));
     185    return new StringInstance(exec->lexicalInterpreter()->builtinStringPrototype(), val);
    188186}
    189187
Note: See TracChangeset for help on using the changeset viewer.