Ignore:
Timestamp:
Nov 14, 2011, 4:04:53 PM (14 years ago)
Author:
[email protected]
Message:

DateMath.cpp should not depend on JavaScriptCore
https://bugs.webkit.org/show_bug.cgi?id=71747

Reviewed by Darin Adler.

This patch moves the JSC-specific parts of DateMath into JSDateMath in
JavaScriptCore. There shouldn't be any behavior change.

  • CMakeLists.txt:
  • GNUmakefile.list.am:
  • JavaScriptCore.gypi:
  • JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
  • JavaScriptCore.xcodeproj/project.pbxproj:
  • Target.pri:
  • runtime/DateConstructor.cpp:
  • runtime/DateConversion.cpp:
  • runtime/DateInstance.cpp:
  • runtime/DateInstanceCache.h:
  • runtime/DatePrototype.cpp:
  • runtime/InitializeThreading.cpp:
  • runtime/JSDateMath.cpp: Copied from Source/JavaScriptCore/wtf/DateMath.cpp.

(JSC::timeToMS):
(JSC::msToSeconds):

  • runtime/JSDateMath.h: Copied from Source/JavaScriptCore/wtf/DateMath.h.
  • wtf/DateMath.cpp:

(WTF::isLeapYear):
(WTF::msToDays):
(WTF::msToMinutes):
(WTF::msToHours):
(WTF::parseDateFromNullTerminatedCharacters):
(WTF::makeRFC2822DateString):

  • wtf/DateMath.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/JavaScriptCore.gypi

    r98909 r100205  
    8484            'runtime/JSByteArray.h',
    8585            'runtime/JSCell.h',
     86            'runtime/JSDateMath.h',
    8687            'runtime/JSFunction.h',
    8788            'runtime/JSBoundFunction.h',
     
    478479            'runtime/JSByteArray.cpp',
    479480            'runtime/JSCell.cpp',
     481            'runtime/JSDateMath.cpp',
    480482            'runtime/JSFunction.cpp',
    481483            'runtime/JSBoundFunction.cpp',
Note: See TracChangeset for help on using the changeset viewer.