Changeset 2783 in webkit for trunk/JavaScriptCore/kjs/internal.h


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/internal.h

    r2778 r2783  
    119119
    120120  class NumberImp : public ValueImp {
    121   public:
    122     NumberImp(double v) : val(v) { }
     121    friend class Number;
     122    friend class InterpreterImp;
     123  public:
     124    static ValueImp *create(int);
     125    static ValueImp *create(double);
     126    static ValueImp *zero() { return SimpleNumber::make(0); }
     127    static ValueImp *one() { return SimpleNumber::make(1); }
     128    static ValueImp *two() { return SimpleNumber::make(2); }
     129   
    123130    double value() const { return val; }
    124131
     
    131138    Object toObject(ExecState *exec) const;
    132139
    133   private:
     140    static NumberImp *staticNaN;
     141
     142  private:
     143    NumberImp(double v) : val(v) { }
     144
    134145    virtual bool toUInt32(unsigned&) const;
    135146
Note: See TracChangeset for help on using the changeset viewer.