Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: src/date.js

Issue 6913024: Revert 7763, missing implementation on x64 and arm for call and apply with null or undefined. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/array.js ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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();
OLDNEW
« no previous file with comments | « src/array.js ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698