Changeset 34854 in webkit for trunk/JavaScriptCore/kjs/NumberObject.h
- Timestamp:
- Jun 28, 2008, 2:22:01 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/NumberObject.h
r34821 r34854 1 1 // -*- c-basic-offset: 2 -*- 2 2 /* 3 * This file is part of the KDE libraries4 3 * Copyright (C) 1999-2000 Harri Porten ([email protected]) 4 * Copyright (C) 2008 Apple Inc. All rights reserved. 5 5 * 6 6 * This library is free software; you can redistribute it and/or … … 23 23 #define NumberObject_h 24 24 25 #include "FunctionPrototype.h"26 25 #include "JSWrapperObject.h" 27 26 … … 43 42 NumberObject* constructNumberFromImmediateNumber(ExecState*, JSValue*); 44 43 45 /**46 * @internal47 *48 * The initial value of Number.prototype (and thus all objects created49 * with the Number constructor50 */51 class NumberPrototype : public NumberObject {52 public:53 NumberPrototype(ExecState*, ObjectPrototype*, FunctionPrototype*);54 };55 56 /**57 * @internal58 *59 * The initial value of the the global variable's "Number" property60 */61 class NumberConstructor : public InternalFunction {62 public:63 NumberConstructor(ExecState*, FunctionPrototype*, NumberPrototype*);64 65 bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);66 JSValue* getValueProperty(ExecState*, int token) const;67 68 static const ClassInfo info;69 70 enum { NaNValue, NegInfinity, PosInfinity, MaxValue, MinValue };71 72 private:73 virtual ConstructType getConstructData(ConstructData&);74 virtual CallType getCallData(CallData&);75 virtual const ClassInfo* classInfo() const { return &info; }76 };77 78 44 } // namespace KJS 79 45
Note:
See TracChangeset
for help on using the changeset viewer.