Ignore:
Timestamp:
Nov 20, 2002, 1:12:14 PM (23 years ago)
Author:
darin
Message:
  • decrease ref/deref -- 5% speedup in iBench
  • JavaScriptCore.pbproj/project.pbxproj: Added array_instance.h
  • kjs/array_instance.h: Added so it can be shared by function.h.
  • kjs/array_object.cpp:
  • kjs/array_object.h:
  • kjs/bool_object.cpp:
  • kjs/bool_object.h:
  • kjs/collector.cpp:
  • kjs/date_object.cpp:
  • kjs/date_object.h:
  • kjs/error_object.cpp:
  • kjs/function.cpp:
  • kjs/function.h:
  • kjs/function_object.cpp:
  • kjs/internal.cpp:
  • kjs/internal.h:
  • kjs/math_object.cpp:
  • kjs/nodes.cpp:
  • kjs/number_object.cpp:
  • kjs/object.cpp:
  • kjs/object.h:
  • kjs/object_object.cpp:
  • kjs/property_map.cpp:
  • kjs/reference.cpp:
  • kjs/reference.h:
  • kjs/regexp_object.cpp:
  • kjs/string_object.cpp:
  • kjs/string_object.h:
  • kjs/value.cpp:
  • kjs/value.h: Switched lots of interfaces so they don't require ref/deref.
File:
1 edited

Legend:

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

    r2777 r2783  
    4040const ClassInfo ArrayInstanceImp::info = {"Array", 0, 0, 0};
    4141
    42 ArrayInstanceImp::ArrayInstanceImp(const Object &proto, unsigned initialLength)
     42ArrayInstanceImp::ArrayInstanceImp(ObjectImp *proto, unsigned initialLength)
    4343  : ObjectImp(proto)
    4444  , length(initialLength)
     
    4848}
    4949
    50 ArrayInstanceImp::ArrayInstanceImp(const Object &proto, const List &list)
     50ArrayInstanceImp::ArrayInstanceImp(ObjectImp *proto, const List &list)
    5151  : ObjectImp(proto)
    5252  , length(list.size())
     
    290290ArrayPrototypeImp::ArrayPrototypeImp(ExecState *exec,
    291291                                     ObjectPrototypeImp *objProto)
    292   : ArrayInstanceImp(Object(objProto), 0)
     292  : ArrayInstanceImp(objProto, 0)
    293293{
    294294  Value protect(this);
     
    665665  // a single numeric argument denotes the array size (!)
    666666  if (args.size() == 1 && args[0].type() == NumberType)
    667     return Object(new ArrayInstanceImp(exec->interpreter()->builtinArrayPrototype(), args[0].toUInt32(exec)));
     667    return Object(new ArrayInstanceImp(exec->interpreter()->builtinArrayPrototype().imp(), args[0].toUInt32(exec)));
    668668
    669669  // otherwise the array is constructed with the arguments in it
    670   return Object(new ArrayInstanceImp(exec->interpreter()->builtinArrayPrototype(), args));
     670  return Object(new ArrayInstanceImp(exec->interpreter()->builtinArrayPrototype().imp(), args));
    671671}
    672672
     
    682682  return construct(exec,args);
    683683}
    684 
Note: See TracChangeset for help on using the changeset viewer.