Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | // |jit-test| slow; error:InternalError |
michael@0 | 2 | |
michael@0 | 3 | // Binary: cache/js-dbg-64-a2bbe9c999b4-linux |
michael@0 | 4 | // Flags: -m -n |
michael@0 | 5 | // |
michael@0 | 6 | gczeal(2); |
michael@0 | 7 | function Day( t ) {} |
michael@0 | 8 | function YearFromTime( t ) {} |
michael@0 | 9 | function HourFromTime( t ) {} |
michael@0 | 10 | function MakeTime( hour, min, sec, ms ) {} |
michael@0 | 11 | function MakeDay( year, month, date ) {} |
michael@0 | 12 | function MakeDate( day, time ) {} |
michael@0 | 13 | function TimeClip( t ) { |
michael@0 | 14 | return ToInteger( t ); |
michael@0 | 15 | } |
michael@0 | 16 | function ToInteger( t ) { |
michael@0 | 17 | sign = 1 |
michael@0 | 18 | return sign * Math.floor( Math.abs( t ) ); |
michael@0 | 19 | } |
michael@0 | 20 | addNewTestCase( 28800000, 23, 59, 999,0, "TDATE = new Date(28800000);(TDATE).setHours(23,59,999);TDATE" ); |
michael@0 | 21 | function addNewTestCase( time, hours, min, sec, ms, DateString) { |
michael@0 | 22 | UTCDateFromTime( SetHours( time, hours, min, sec, ms )) |
michael@0 | 23 | } |
michael@0 | 24 | function MyDate() this.seconds=0;function UTCDateFromTime(t) { |
michael@0 | 25 | MyDateFromTime(t) |
michael@0 | 26 | } |
michael@0 | 27 | function MyDateFromTime( t ) { |
michael@0 | 28 | d = new MyDate |
michael@0 | 29 | d.year=YearFromTime(t) |
michael@0 | 30 | d.month= |
michael@0 | 31 | d.date= |
michael@0 | 32 | d.hours=HourFromTime(t) |
michael@0 | 33 | d.minutes= |
michael@0 | 34 | d.time=MakeTime( d.hours, d, d.seconds, d ) |
michael@0 | 35 | d=TimeClip( MakeDate( MakeDay( d.year, d.month, ( ( MyDateFromTime(t) ) , null ) ), d.time ) ) |
michael@0 | 36 | } |
michael@0 | 37 | function SetHours( t, hour, min, sec, ms ) { |
michael@0 | 38 | TIME = |
michael@0 | 39 | HOUR = |
michael@0 | 40 | MIN = min == 0 ? TIME : |
michael@0 | 41 | SEC = sec == 0 ? addNewTestCaseSecFromTime : Number |
michael@0 | 42 | var MS = ms == void 0 ? TIME : ms; |
michael@0 | 43 | var RESULT6 = ( HOUR, MS ); |
michael@0 | 44 | var UTC_TIME = MakeDate(Day(TIME), RESULT6); |
michael@0 | 45 | return TimeClip(UTC_TIME); |
michael@0 | 46 | } |