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

Side by Side Diff: src/assembler.cc

Issue 9572008: Implement date library functions in C++. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 8 years, 9 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/assembler.h ('k') | src/date.h » ('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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 FUNCTION_ADDR(HandleScope::DeleteExtensions))); 806 FUNCTION_ADDR(HandleScope::DeleteExtensions)));
807 } 807 }
808 808
809 809
810 ExternalReference ExternalReference::random_uint32_function( 810 ExternalReference ExternalReference::random_uint32_function(
811 Isolate* isolate) { 811 Isolate* isolate) {
812 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(V8::Random))); 812 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(V8::Random)));
813 } 813 }
814 814
815 815
816 ExternalReference ExternalReference::get_date_field_function(
817 Isolate* isolate) {
818 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(JSDate::GetField)));
819 }
820
821
822 ExternalReference ExternalReference::date_cache_stamp(Isolate* isolate) {
823 return ExternalReference(isolate->date_cache()->stamp_address());
824 }
825
826
816 ExternalReference ExternalReference::transcendental_cache_array_address( 827 ExternalReference ExternalReference::transcendental_cache_array_address(
817 Isolate* isolate) { 828 Isolate* isolate) {
818 return ExternalReference( 829 return ExternalReference(
819 isolate->transcendental_cache()->cache_array_address()); 830 isolate->transcendental_cache()->cache_array_address());
820 } 831 }
821 832
822 833
823 ExternalReference ExternalReference::new_deoptimizer_function( 834 ExternalReference ExternalReference::new_deoptimizer_function(
824 Isolate* isolate) { 835 Isolate* isolate) {
825 return ExternalReference( 836 return ExternalReference(
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1276 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1266 state_.written_position = state_.current_position; 1277 state_.written_position = state_.current_position;
1267 written = true; 1278 written = true;
1268 } 1279 }
1269 1280
1270 // Return whether something was written. 1281 // Return whether something was written.
1271 return written; 1282 return written;
1272 } 1283 }
1273 1284
1274 } } // namespace v8::internal 1285 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/date.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698