Changeset 33979 in webkit for trunk/JavaScriptCore/kjs/internal.h
- Timestamp:
- May 21, 2008, 6:20:45 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/internal.h
r33038 r33979 64 64 }; 65 65 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 96 66 // --------------------------------------------------------------------------- 97 67 // Evaluation 98 68 // --------------------------------------------------------------------------- 99 69 100 struct AttachedGlobalObject;101 class DebuggerImp {102 public:103 104 DebuggerImp() {105 globalObjects = 0;106 }107 108 AttachedGlobalObject* globalObjects;109 };110 111 70 } // namespace 112 71
Note:
See TracChangeset
for help on using the changeset viewer.