OLD | NEW |
1 // Copyright (c) 2011 Sun Microsystems Inc. | 1 // Copyright (c) 2011 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 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 | 729 |
730 | 730 |
731 ExternalReference::ExternalReference(Isolate::AddressId id, Isolate* isolate) | 731 ExternalReference::ExternalReference(Isolate::AddressId id, Isolate* isolate) |
732 : address_(isolate->get_address_from_id(id)) {} | 732 : address_(isolate->get_address_from_id(id)) {} |
733 | 733 |
734 | 734 |
735 ExternalReference::ExternalReference(const SCTableReference& table_ref) | 735 ExternalReference::ExternalReference(const SCTableReference& table_ref) |
736 : address_(table_ref.address()) {} | 736 : address_(table_ref.address()) {} |
737 | 737 |
738 | 738 |
| 739 ExternalReference ExternalReference::flush_icache_function(Isolate* isolate) { |
| 740 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(CPU::FlushICache))); |
| 741 } |
| 742 |
739 ExternalReference ExternalReference::perform_gc_function(Isolate* isolate) { | 743 ExternalReference ExternalReference::perform_gc_function(Isolate* isolate) { |
740 return ExternalReference(Redirect(isolate, | 744 return ExternalReference(Redirect(isolate, |
741 FUNCTION_ADDR(Runtime::PerformGC))); | 745 FUNCTION_ADDR(Runtime::PerformGC))); |
742 } | 746 } |
743 | 747 |
744 | 748 |
745 ExternalReference ExternalReference::fill_heap_number_with_random_function( | 749 ExternalReference ExternalReference::fill_heap_number_with_random_function( |
746 Isolate* isolate) { | 750 Isolate* isolate) { |
747 return ExternalReference(Redirect( | 751 return ExternalReference(Redirect( |
748 isolate, | 752 isolate, |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1205 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); | 1209 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); |
1206 state_.written_position = state_.current_position; | 1210 state_.written_position = state_.current_position; |
1207 written = true; | 1211 written = true; |
1208 } | 1212 } |
1209 | 1213 |
1210 // Return whether something was written. | 1214 // Return whether something was written. |
1211 return written; | 1215 return written; |
1212 } | 1216 } |
1213 | 1217 |
1214 } } // namespace v8::internal | 1218 } } // namespace v8::internal |
OLD | NEW |