OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
677 | 677 |
678 // ECMA 262 - 15.9.5.15 | 678 // ECMA 262 - 15.9.5.15 |
679 function DateGetUTCDate() { | 679 function DateGetUTCDate() { |
680 var t = DATE_VALUE(this); | 680 var t = DATE_VALUE(this); |
681 return NAN_OR_DATE_FROM_TIME(t); | 681 return NAN_OR_DATE_FROM_TIME(t); |
682 } | 682 } |
683 | 683 |
684 | 684 |
685 // ECMA 262 - 15.9.5.16 | 685 // ECMA 262 - 15.9.5.16 |
686 function DateGetDay() { | 686 function DateGetDay() { |
687 var t = DATE_VALUE(this); | 687 var t = %_ValueOf(this); |
688 if (NUMBER_IS_NAN(t)) return t; | 688 if (NUMBER_IS_NAN(t)) return t; |
689 return WeekDay(LocalTimeNoCheck(t)); | 689 return WeekDay(LocalTimeNoCheck(t)); |
690 } | 690 } |
691 | 691 |
692 | 692 |
693 // ECMA 262 - 15.9.5.17 | 693 // ECMA 262 - 15.9.5.17 |
694 function DateGetUTCDay() { | 694 function DateGetUTCDay() { |
695 var t = DATE_VALUE(this); | 695 var t = %_ValueOf(this); |
696 if (NUMBER_IS_NAN(t)) return t; | 696 if (NUMBER_IS_NAN(t)) return t; |
697 return WeekDay(t); | 697 return WeekDay(t); |
698 } | 698 } |
699 | 699 |
700 | 700 |
701 // ECMA 262 - 15.9.5.18 | 701 // ECMA 262 - 15.9.5.18 |
702 function DateGetHours() { | 702 function DateGetHours() { |
703 var t = DATE_VALUE(this); | 703 var t = DATE_VALUE(this); |
704 if (NUMBER_IS_NAN(t)) return t; | 704 if (NUMBER_IS_NAN(t)) return t; |
705 return HOUR_FROM_TIME(LocalTimeNoCheck(t)); | 705 return HOUR_FROM_TIME(LocalTimeNoCheck(t)); |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1094 "toGMTString", DateToGMTString, | 1094 "toGMTString", DateToGMTString, |
1095 "toUTCString", DateToUTCString, | 1095 "toUTCString", DateToUTCString, |
1096 "getYear", DateGetYear, | 1096 "getYear", DateGetYear, |
1097 "setYear", DateSetYear, | 1097 "setYear", DateSetYear, |
1098 "toISOString", DateToISOString, | 1098 "toISOString", DateToISOString, |
1099 "toJSON", DateToJSON | 1099 "toJSON", DateToJSON |
1100 )); | 1100 )); |
1101 } | 1101 } |
1102 | 1102 |
1103 SetupDate(); | 1103 SetupDate(); |
OLD | NEW |