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

Unified Diff: src/ic/ic.h

Issue 898983002: Add strong mode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Code review + fixes Created 5 years, 10 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/hydrogen-instructions.h ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic/ic.h
diff --git a/src/ic/ic.h b/src/ic/ic.h
index 5f66e88bf022481e71760e435b88a50f1689a361..6ef601b7b348c062cde84c55871ea3da0832e240 100644
--- a/src/ic/ic.h
+++ b/src/ic/ic.h
@@ -520,8 +520,8 @@ class KeyedLoadIC : public LoadIC {
class StoreIC : public IC {
public:
- STATIC_ASSERT(i::LANGUAGE_END == 2);
- class LanguageModeState : public BitField<LanguageMode, 1, 1> {};
+ STATIC_ASSERT(i::LANGUAGE_END == 3);
+ class LanguageModeState : public BitField<LanguageMode, 1, 2> {};
static ExtraICState ComputeExtraICState(LanguageMode flag) {
return LanguageModeState::encode(flag);
}
@@ -605,10 +605,12 @@ class KeyedStoreIC : public StoreIC {
public:
// ExtraICState bits (building on IC)
// ExtraICState bits
+ // When more language modes are added, these BitFields need to move too.
+ STATIC_ASSERT(i::LANGUAGE_END == 3);
class ExtraICStateKeyedAccessStoreMode
- : public BitField<KeyedAccessStoreMode, 2, 4> {}; // NOLINT
+ : public BitField<KeyedAccessStoreMode, 3, 4> {}; // NOLINT
- class IcCheckTypeField : public BitField<IcCheckType, 6, 1> {};
+ class IcCheckTypeField : public BitField<IcCheckType, 7, 1> {};
static ExtraICState ComputeExtraICState(LanguageMode flag,
KeyedAccessStoreMode mode) {
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698