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

Side by Side Diff: src/assembler.cc

Issue 5826004: Add a write buffer, aligned so that a single bit tells us whether it has... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years 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
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 29 matching lines...) Expand all
40 #include "ic-inl.h" 40 #include "ic-inl.h"
41 #include "factory.h" 41 #include "factory.h"
42 #include "runtime.h" 42 #include "runtime.h"
43 #include "runtime-profiler.h" 43 #include "runtime-profiler.h"
44 #include "serialize.h" 44 #include "serialize.h"
45 #include "stub-cache.h" 45 #include "stub-cache.h"
46 #include "regexp-stack.h" 46 #include "regexp-stack.h"
47 #include "ast.h" 47 #include "ast.h"
48 #include "regexp-macro-assembler.h" 48 #include "regexp-macro-assembler.h"
49 #include "platform.h" 49 #include "platform.h"
50 #include "write-buffer.h"
50 // Include native regexp-macro-assembler. 51 // Include native regexp-macro-assembler.
51 #ifndef V8_INTERPRETED_REGEXP 52 #ifndef V8_INTERPRETED_REGEXP
52 #if V8_TARGET_ARCH_IA32 53 #if V8_TARGET_ARCH_IA32
53 #include "ia32/regexp-macro-assembler-ia32.h" 54 #include "ia32/regexp-macro-assembler-ia32.h"
54 #elif V8_TARGET_ARCH_X64 55 #elif V8_TARGET_ARCH_X64
55 #include "x64/regexp-macro-assembler-x64.h" 56 #include "x64/regexp-macro-assembler-x64.h"
56 #elif V8_TARGET_ARCH_ARM 57 #elif V8_TARGET_ARCH_ARM
57 #include "arm/regexp-macro-assembler-arm.h" 58 #include "arm/regexp-macro-assembler-arm.h"
58 #else // Unknown architecture. 59 #else // Unknown architecture.
59 #error "Unknown architecture." 60 #error "Unknown architecture."
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 ExternalReference ExternalReference::address_of_regexp_stack_limit() { 665 ExternalReference ExternalReference::address_of_regexp_stack_limit() {
665 return ExternalReference(RegExpStack::limit_address()); 666 return ExternalReference(RegExpStack::limit_address());
666 } 667 }
667 668
668 669
669 ExternalReference ExternalReference::new_space_start() { 670 ExternalReference ExternalReference::new_space_start() {
670 return ExternalReference(Heap::NewSpaceStart()); 671 return ExternalReference(Heap::NewSpaceStart());
671 } 672 }
672 673
673 674
675 ExternalReference ExternalReference::write_buffer_top() {
676 return ExternalReference(WriteBuffer::Top());
677 }
678
679
674 ExternalReference ExternalReference::new_space_mask() { 680 ExternalReference ExternalReference::new_space_mask() {
675 return ExternalReference(reinterpret_cast<Address>(Heap::NewSpaceMask())); 681 return ExternalReference(reinterpret_cast<Address>(Heap::NewSpaceMask()));
676 } 682 }
677 683
678 684
679 ExternalReference ExternalReference::new_space_allocation_top_address() { 685 ExternalReference ExternalReference::new_space_allocation_top_address() {
680 return ExternalReference(Heap::NewSpaceAllocationTopAddress()); 686 return ExternalReference(Heap::NewSpaceAllocationTopAddress());
681 } 687 }
682 688
683 689
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
935 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 941 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
936 state_.written_position = state_.current_position; 942 state_.written_position = state_.current_position;
937 written = true; 943 written = true;
938 } 944 }
939 945
940 // Return whether something was written. 946 // Return whether something was written.
941 return written; 947 return written;
942 } 948 }
943 949
944 } } // namespace v8::internal 950 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698