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

Unified Diff: src/ic/ic-state.h

Issue 1192383003: Fix overlapping KeyedLoadIC bitfield. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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 | « src/ic/ic.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic/ic-state.h
diff --git a/src/ic/ic-state.h b/src/ic/ic-state.h
index 89e455deb786e35edc7034b5d5ebb4750261b2d9..e1fed191332cbe0ccccdda02e9f5b4df1ce51794 100644
--- a/src/ic/ic-state.h
+++ b/src/ic/ic-state.h
@@ -203,11 +203,14 @@ class CompareICState {
class LoadICState final BASE_EMBEDDED {
private:
class ContextualModeBits : public BitField<ContextualMode, 0, 1> {};
- class LanguageModeBits : public BitField<LanguageMode, 1, 2> {};
+ class LanguageModeBits
+ : public BitField<LanguageMode, ContextualModeBits::kNext, 2> {};
STATIC_ASSERT(static_cast<int>(NOT_CONTEXTUAL) == 0);
const ExtraICState state_;
public:
+ static const uint32_t kNextBitFieldOffset = LanguageModeBits::kNext;
+
static const ExtraICState kStrongModeState = STRONG
<< LanguageModeBits::kShift;
« no previous file with comments | « src/ic/ic.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698