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


Ignore:
Timestamp:
May 21, 2008, 6:20:45 PM (17 years ago)
Author:
[email protected]
Message:

Merge squirrelfish branch into trunk.

File:
1 edited

Legend:

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

    r33038 r33979  
    6464  };
    6565
    66   class NumberImp : public JSCell {
    67     friend class ConstantValues;
    68     friend JSValue *jsNumberCell(double);
    69   public:
    70     double value() const { return val; }
    71 
    72     virtual JSType type() const { return NumberType; }
    73 
    74     virtual JSValue* toPrimitive(ExecState*, JSType preferred = UnspecifiedType) const;
    75     virtual bool getPrimitiveNumber(ExecState*, double& number, JSValue*& value);
    76     virtual bool toBoolean(ExecState *exec) const;
    77     virtual double toNumber(ExecState *exec) const;
    78     virtual UString toString(ExecState *exec) const;
    79     virtual JSObject *toObject(ExecState *exec) const;
    80    
    81     void* operator new(size_t size)
    82     {
    83         return Collector::allocateNumber(size);
    84     }
    85   private:
    86     NumberImp(double v) : val(v) { }
    87 
    88     virtual bool getUInt32(uint32_t&) const;
    89     virtual bool getTruncatedInt32(int32_t&) const;
    90     virtual bool getTruncatedUInt32(uint32_t&) const;
    91 
    92     double val;
    93   };
    94 
    95 
    9666  // ---------------------------------------------------------------------------
    9767  //                            Evaluation
    9868  // ---------------------------------------------------------------------------
    9969
    100   struct AttachedGlobalObject;
    101   class DebuggerImp {
    102   public:
    103 
    104     DebuggerImp() {
    105       globalObjects = 0;
    106     }
    107 
    108     AttachedGlobalObject* globalObjects;
    109   };
    110 
    11170} // namespace
    11271
Note: See TracChangeset for help on using the changeset viewer.