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

Side by Side Diff: src/assembler.cc

Issue 7945009: Merge experimental/gc branch to the bleeding_edge. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 3 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/builtins.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 (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 20 matching lines...) Expand all
31 // The original source code covered by the above license above has been 31 // The original source code covered by the above license above has been
32 // modified significantly by Google Inc. 32 // modified significantly by Google Inc.
33 // Copyright 2011 the V8 project authors. All rights reserved. 33 // Copyright 2011 the V8 project authors. All rights reserved.
34 34
35 #include "v8.h" 35 #include "v8.h"
36 36
37 #include "arguments.h" 37 #include "arguments.h"
38 #include "deoptimizer.h" 38 #include "deoptimizer.h"
39 #include "execution.h" 39 #include "execution.h"
40 #include "ic-inl.h" 40 #include "ic-inl.h"
41 #include "incremental-marking.h"
41 #include "factory.h" 42 #include "factory.h"
42 #include "runtime.h" 43 #include "runtime.h"
43 #include "runtime-profiler.h" 44 #include "runtime-profiler.h"
44 #include "serialize.h" 45 #include "serialize.h"
45 #include "stub-cache.h" 46 #include "stub-cache.h"
46 #include "regexp-stack.h" 47 #include "regexp-stack.h"
47 #include "ast.h" 48 #include "ast.h"
48 #include "regexp-macro-assembler.h" 49 #include "regexp-macro-assembler.h"
49 #include "platform.h" 50 #include "platform.h"
51 #include "store-buffer.h"
50 // Include native regexp-macro-assembler. 52 // Include native regexp-macro-assembler.
51 #ifndef V8_INTERPRETED_REGEXP 53 #ifndef V8_INTERPRETED_REGEXP
52 #if V8_TARGET_ARCH_IA32 54 #if V8_TARGET_ARCH_IA32
53 #include "ia32/regexp-macro-assembler-ia32.h" 55 #include "ia32/regexp-macro-assembler-ia32.h"
54 #elif V8_TARGET_ARCH_X64 56 #elif V8_TARGET_ARCH_X64
55 #include "x64/regexp-macro-assembler-x64.h" 57 #include "x64/regexp-macro-assembler-x64.h"
56 #elif V8_TARGET_ARCH_ARM 58 #elif V8_TARGET_ARCH_ARM
57 #include "arm/regexp-macro-assembler-arm.h" 59 #include "arm/regexp-macro-assembler-arm.h"
58 #elif V8_TARGET_ARCH_MIPS 60 #elif V8_TARGET_ARCH_MIPS
59 #include "mips/regexp-macro-assembler-mips.h" 61 #include "mips/regexp-macro-assembler-mips.h"
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 int rmode = extra_tag + RelocInfo::LAST_COMPACT_ENUM; 511 int rmode = extra_tag + RelocInfo::LAST_COMPACT_ENUM;
510 if (SetMode(static_cast<RelocInfo::Mode>(rmode))) return; 512 if (SetMode(static_cast<RelocInfo::Mode>(rmode))) return;
511 } 513 }
512 } 514 }
513 } 515 }
514 done_ = true; 516 done_ = true;
515 } 517 }
516 518
517 519
518 RelocIterator::RelocIterator(Code* code, int mode_mask) { 520 RelocIterator::RelocIterator(Code* code, int mode_mask) {
521 rinfo_.host_ = code;
519 rinfo_.pc_ = code->instruction_start(); 522 rinfo_.pc_ = code->instruction_start();
520 rinfo_.data_ = 0; 523 rinfo_.data_ = 0;
521 // Relocation info is read backwards. 524 // Relocation info is read backwards.
522 pos_ = code->relocation_start() + code->relocation_size(); 525 pos_ = code->relocation_start() + code->relocation_size();
523 end_ = code->relocation_start(); 526 end_ = code->relocation_start();
524 done_ = false; 527 done_ = false;
525 mode_mask_ = mode_mask; 528 mode_mask_ = mode_mask;
526 last_id_ = 0; 529 last_id_ = 0;
527 last_position_ = 0; 530 last_position_ = 0;
528 if (mode_mask_ == 0) pos_ = end_; 531 if (mode_mask_ == 0) pos_ = end_;
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 732
730 733
731 ExternalReference::ExternalReference(Isolate::AddressId id, Isolate* isolate) 734 ExternalReference::ExternalReference(Isolate::AddressId id, Isolate* isolate)
732 : address_(isolate->get_address_from_id(id)) {} 735 : address_(isolate->get_address_from_id(id)) {}
733 736
734 737
735 ExternalReference::ExternalReference(const SCTableReference& table_ref) 738 ExternalReference::ExternalReference(const SCTableReference& table_ref)
736 : address_(table_ref.address()) {} 739 : address_(table_ref.address()) {}
737 740
738 741
742 ExternalReference ExternalReference::
743 incremental_marking_record_write_function(Isolate* isolate) {
744 return ExternalReference(Redirect(
745 isolate,
746 FUNCTION_ADDR(IncrementalMarking::RecordWriteFromCode)));
747 }
748
749
750 ExternalReference ExternalReference::
751 incremental_evacuation_record_write_function(Isolate* isolate) {
752 return ExternalReference(Redirect(
753 isolate,
754 FUNCTION_ADDR(IncrementalMarking::RecordWriteForEvacuationFromCode)));
755 }
756
757
758 ExternalReference ExternalReference::
759 store_buffer_overflow_function(Isolate* isolate) {
760 return ExternalReference(Redirect(
761 isolate,
762 FUNCTION_ADDR(StoreBuffer::StoreBufferOverflow)));
763 }
764
765
739 ExternalReference ExternalReference::flush_icache_function(Isolate* isolate) { 766 ExternalReference ExternalReference::flush_icache_function(Isolate* isolate) {
740 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(CPU::FlushICache))); 767 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(CPU::FlushICache)));
741 } 768 }
742 769
770
743 ExternalReference ExternalReference::perform_gc_function(Isolate* isolate) { 771 ExternalReference ExternalReference::perform_gc_function(Isolate* isolate) {
744 return ExternalReference(Redirect(isolate, 772 return
745 FUNCTION_ADDR(Runtime::PerformGC))); 773 ExternalReference(Redirect(isolate, FUNCTION_ADDR(Runtime::PerformGC)));
746 } 774 }
747 775
748 776
749 ExternalReference ExternalReference::fill_heap_number_with_random_function( 777 ExternalReference ExternalReference::fill_heap_number_with_random_function(
750 Isolate* isolate) { 778 Isolate* isolate) {
751 return ExternalReference(Redirect( 779 return ExternalReference(Redirect(
752 isolate, 780 isolate,
753 FUNCTION_ADDR(V8::FillHeapNumberWithRandom))); 781 FUNCTION_ADDR(V8::FillHeapNumberWithRandom)));
754 } 782 }
755 783
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 Isolate* isolate) { 865 Isolate* isolate) {
838 return ExternalReference(isolate->regexp_stack()->limit_address()); 866 return ExternalReference(isolate->regexp_stack()->limit_address());
839 } 867 }
840 868
841 869
842 ExternalReference ExternalReference::new_space_start(Isolate* isolate) { 870 ExternalReference ExternalReference::new_space_start(Isolate* isolate) {
843 return ExternalReference(isolate->heap()->NewSpaceStart()); 871 return ExternalReference(isolate->heap()->NewSpaceStart());
844 } 872 }
845 873
846 874
875 ExternalReference ExternalReference::store_buffer_top(Isolate* isolate) {
876 return ExternalReference(isolate->heap()->store_buffer()->TopAddress());
877 }
878
879
847 ExternalReference ExternalReference::new_space_mask(Isolate* isolate) { 880 ExternalReference ExternalReference::new_space_mask(Isolate* isolate) {
848 Address mask = reinterpret_cast<Address>(isolate->heap()->NewSpaceMask()); 881 return ExternalReference(reinterpret_cast<Address>(
849 return ExternalReference(mask); 882 isolate->heap()->NewSpaceMask()));
850 } 883 }
851 884
852 885
853 ExternalReference ExternalReference::new_space_allocation_top_address( 886 ExternalReference ExternalReference::new_space_allocation_top_address(
854 Isolate* isolate) { 887 Isolate* isolate) {
855 return ExternalReference(isolate->heap()->NewSpaceAllocationTopAddress()); 888 return ExternalReference(isolate->heap()->NewSpaceAllocationTopAddress());
856 } 889 }
857 890
858 891
859 ExternalReference ExternalReference::heap_always_allocate_scope_depth( 892 ExternalReference ExternalReference::heap_always_allocate_scope_depth(
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
1209 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1242 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1210 state_.written_position = state_.current_position; 1243 state_.written_position = state_.current_position;
1211 written = true; 1244 written = true;
1212 } 1245 }
1213 1246
1214 // Return whether something was written. 1247 // Return whether something was written.
1215 return written; 1248 return written;
1216 } 1249 }
1217 1250
1218 } } // namespace v8::internal 1251 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698