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

Unified Diff: runtime/vm/bitfield.h

Issue 868283002: Fix LoadOptimizer's handling of load/stores with constant indices for TypedData. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 | « no previous file | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/bitfield.h
diff --git a/runtime/vm/bitfield.h b/runtime/vm/bitfield.h
index 4ef7766b5acf50a359451251ee13f51dca92a159..6108065f1e6ace1164605d66dd32837568a6a0b4 100644
--- a/runtime/vm/bitfield.h
+++ b/runtime/vm/bitfield.h
@@ -14,6 +14,8 @@ static const uword kUwordOne = 1U;
template<typename T, int position, int size>
class BitField {
public:
+ static const intptr_t kNextBit = position + size;
+
// Tells whether the provided value fits into the bit field.
static bool is_valid(T value) {
return (static_cast<uword>(value) & ~((kUwordOne << size) - 1)) == 0;
« no previous file with comments | « no previous file | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698