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

Side by Side Diff: src/assembler.cc

Issue 1317553002: [heap] Prevent direct access to StoreBuffer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 5 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
« no previous file with comments | « no previous file | src/heap/heap.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 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after
1134 return ExternalReference(isolate->regexp_stack()->limit_address()); 1134 return ExternalReference(isolate->regexp_stack()->limit_address());
1135 } 1135 }
1136 1136
1137 1137
1138 ExternalReference ExternalReference::new_space_start(Isolate* isolate) { 1138 ExternalReference ExternalReference::new_space_start(Isolate* isolate) {
1139 return ExternalReference(isolate->heap()->NewSpaceStart()); 1139 return ExternalReference(isolate->heap()->NewSpaceStart());
1140 } 1140 }
1141 1141
1142 1142
1143 ExternalReference ExternalReference::store_buffer_top(Isolate* isolate) { 1143 ExternalReference ExternalReference::store_buffer_top(Isolate* isolate) {
1144 return ExternalReference(isolate->heap()->store_buffer()->TopAddress()); 1144 return ExternalReference(isolate->heap()->store_buffer_top_address());
1145 } 1145 }
1146 1146
1147 1147
1148 ExternalReference ExternalReference::new_space_mask(Isolate* isolate) { 1148 ExternalReference ExternalReference::new_space_mask(Isolate* isolate) {
1149 return ExternalReference(reinterpret_cast<Address>( 1149 return ExternalReference(reinterpret_cast<Address>(
1150 isolate->heap()->NewSpaceMask())); 1150 isolate->heap()->NewSpaceMask()));
1151 } 1151 }
1152 1152
1153 1153
1154 ExternalReference ExternalReference::new_space_allocation_top_address( 1154 ExternalReference ExternalReference::new_space_allocation_top_address(
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
1821 1821
1822 1822
1823 void Assembler::DataAlign(int m) { 1823 void Assembler::DataAlign(int m) {
1824 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 1824 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
1825 while ((pc_offset() & (m - 1)) != 0) { 1825 while ((pc_offset() & (m - 1)) != 0) {
1826 db(0); 1826 db(0);
1827 } 1827 }
1828 } 1828 }
1829 } // namespace internal 1829 } // namespace internal
1830 } // namespace v8 1830 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698