Ignore:
Timestamp:
Jun 29, 2008, 12:53:42 PM (17 years ago)
Author:
[email protected]
Message:

2008-06-29 Sam Weinig <[email protected]>

Rubber-stamped by Oliver Hunt.

Splits DateConstructor and DatePrototype out of date_object.h/cpp
Moves shared Date code into DateMath.

  • DerivedSources.make:
  • GNUmakefile.am:
  • JavaScriptCore.pri:
  • JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
  • JavaScriptCore.xcodeproj/project.pbxproj:
  • JavaScriptCoreSources.bkl:
  • kjs/AllInOneFile.cpp:
  • kjs/DateConstructor.cpp: Copied from kjs/date_object.cpp.
  • kjs/DateConstructor.h: Copied from kjs/date_object.h.
  • kjs/DateMath.cpp: (KJS::ymdhmsToSeconds): (KJS::): (KJS::skipSpacesAndComments): (KJS::findMonth): (KJS::parseDate): (KJS::timeClip): (KJS::formatDate): (KJS::formatDateUTCVariant): (KJS::formatTime):
  • kjs/DateMath.h: (KJS::gmtoffset):
  • kjs/DatePrototype.cpp: Copied from kjs/date_object.cpp.
  • kjs/DatePrototype.h: Copied from kjs/date_object.h.
  • kjs/JSGlobalObject.cpp:
  • kjs/JSObject.cpp:
  • kjs/date_object.cpp:
  • kjs/date_object.h:
  • kjs/internal.cpp:
File:
1 edited

Legend:

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

    r34754 r34872  
    11/*
    2  *  This file is part of the KDE libraries
    32 *  Copyright (C) 1999-2000 Harri Porten ([email protected])
     3 *  Copyright (C) 2008 Apple Inc. All rights reserved.
    44 *
    55 *  This library is free software; you can redistribute it and/or
     
    2222#define DATE_OBJECT_H
    2323
    24 #include "JSFunction.h"
    2524#include "JSWrapperObject.h"
    26 #include "lookup.h"
    2725
    2826namespace KJS {
     
    5755    };
    5856
    59     /**
    60      * @internal
    61      *
    62      * The initial value of Date.prototype (and thus all objects created
    63      * with the Date constructor
    64      */
    65     class DatePrototype : public DateInstance {
    66     public:
    67         DatePrototype(ExecState *, ObjectPrototype *);
    68         virtual bool getOwnPropertySlot(ExecState *, const Identifier &, PropertySlot&);
    69         virtual const ClassInfo *classInfo() const { return &info; }
    70         static const ClassInfo info;
    71     };
    72 
    73     /**
    74      * @internal
    75      *
    76      * The initial value of the the global variable's "Date" property
    77      */
    78     class DateConstructor : public InternalFunction {
    79     public:
    80         DateConstructor(ExecState*, FunctionPrototype*, DatePrototype*);
    81     private:
    82         virtual ConstructType getConstructData(ConstructData&);
    83         virtual CallType getCallData(CallData&);
    84     };
    85 
    86 } // namespace
     57} // namespace KJS
    8758
    8859#endif
Note: See TracChangeset for help on using the changeset viewer.