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

Unified Diff: vm/memory_region.h

Issue 10967044: Fix the types used in bit fields. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « vm/compiler_stats.cc ('k') | vm/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/memory_region.h
===================================================================
--- vm/memory_region.h (revision 12729)
+++ vm/memory_region.h (working copy)
@@ -66,15 +66,6 @@
return reinterpret_cast<T*>(start() + offset);
}
- // Locate the bit with the given offset. Returns a pointer to the byte
- // containing the bit, and sets bit_mask to the bit within that byte.
- uint8_t* ComputeBitPointer(uword bit_offset, uint8_t* bit_mask) const {
- uword bit_remainder = (bit_offset & (kBitsPerByte - 1));
- *bit_mask = (1U << bit_remainder);
- uword byte_offset = (bit_offset >> kBitsPerByteLog2);
- return ComputeInternalPointer<uint8_t>(byte_offset);
- }
-
void* pointer_;
uword size_;
« no previous file with comments | « vm/compiler_stats.cc ('k') | vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698