| Index: src/ic.h
|
| diff --git a/src/ic.h b/src/ic.h
|
| index 86763bda7de15e214882027fadf762a8aee46183..3250b6eab711ab01679eb5887e9fd05c7addeded 100644
|
| --- a/src/ic.h
|
| +++ b/src/ic.h
|
| @@ -467,12 +467,11 @@ class KeyedLoadIC: public LoadIC {
|
|
|
| class StoreIC: public IC {
|
| public:
|
| - class StrictModeState: public BitField<StrictModeFlag, 1, 1> {};
|
| - static ExtraICState ComputeExtraICState(StrictModeFlag flag) {
|
| + class StrictModeState: public BitField<StrictMode, 1, 1> {};
|
| + static ExtraICState ComputeExtraICState(StrictMode flag) {
|
| return StrictModeState::encode(flag);
|
| }
|
| -
|
| - static StrictModeFlag GetStrictMode(ExtraICState state) {
|
| + static StrictMode GetStrictMode(ExtraICState state) {
|
| return StrictModeState::decode(state);
|
| }
|
|
|
| @@ -486,7 +485,7 @@ class StoreIC: public IC {
|
| ASSERT(IsStoreStub());
|
| }
|
|
|
| - StrictModeFlag strict_mode() const {
|
| + StrictMode strict_mode() const {
|
| return StrictModeState::decode(extra_ic_state());
|
| }
|
|
|
| @@ -500,10 +499,10 @@ class StoreIC: public IC {
|
| static void GenerateMegamorphic(MacroAssembler* masm);
|
| static void GenerateNormal(MacroAssembler* masm);
|
| static void GenerateRuntimeSetProperty(MacroAssembler* masm,
|
| - StrictModeFlag strict_mode);
|
| + StrictMode strict_mode);
|
|
|
| static Handle<Code> initialize_stub(Isolate* isolate,
|
| - StrictModeFlag strict_mode);
|
| + StrictMode strict_mode);
|
|
|
| MUST_USE_RESULT MaybeObject* Store(
|
| Handle<Object> object,
|
| @@ -528,7 +527,7 @@ class StoreIC: public IC {
|
| }
|
|
|
| static Handle<Code> pre_monomorphic_stub(Isolate* isolate,
|
| - StrictModeFlag strict_mode);
|
| + StrictMode strict_mode);
|
|
|
| // Update the inline cache and the global stub cache based on the
|
| // lookup result.
|
| @@ -575,7 +574,7 @@ class KeyedStoreIC: public StoreIC {
|
| class ExtraICStateKeyedAccessStoreMode:
|
| public BitField<KeyedAccessStoreMode, 2, 4> {}; // NOLINT
|
|
|
| - static ExtraICState ComputeExtraICState(StrictModeFlag flag,
|
| + static ExtraICState ComputeExtraICState(StrictMode flag,
|
| KeyedAccessStoreMode mode) {
|
| return StrictModeState::encode(flag) |
|
| ExtraICStateKeyedAccessStoreMode::encode(mode);
|
| @@ -603,8 +602,8 @@ class KeyedStoreIC: public StoreIC {
|
| static void GenerateMiss(MacroAssembler* masm);
|
| static void GenerateSlow(MacroAssembler* masm);
|
| static void GenerateRuntimeSetProperty(MacroAssembler* masm,
|
| - StrictModeFlag strict_mode);
|
| - static void GenerateGeneric(MacroAssembler* masm, StrictModeFlag strict_mode);
|
| + StrictMode strict_mode);
|
| + static void GenerateGeneric(MacroAssembler* masm, StrictMode strict_mode);
|
| static void GenerateSloppyArguments(MacroAssembler* masm);
|
|
|
| protected:
|
| @@ -616,8 +615,8 @@ class KeyedStoreIC: public StoreIC {
|
| return pre_monomorphic_stub(isolate(), strict_mode());
|
| }
|
| static Handle<Code> pre_monomorphic_stub(Isolate* isolate,
|
| - StrictModeFlag strict_mode) {
|
| - if (strict_mode == kStrictMode) {
|
| + StrictMode strict_mode) {
|
| + if (strict_mode == STRICT) {
|
| return isolate->builtins()->KeyedStoreIC_PreMonomorphic_Strict();
|
| } else {
|
| return isolate->builtins()->KeyedStoreIC_PreMonomorphic();
|
| @@ -627,7 +626,7 @@ class KeyedStoreIC: public StoreIC {
|
| return isolate()->builtins()->KeyedStoreIC_Slow();
|
| }
|
| virtual Handle<Code> megamorphic_stub() {
|
| - if (strict_mode() == kStrictMode) {
|
| + if (strict_mode() == STRICT) {
|
| return isolate()->builtins()->KeyedStoreIC_Generic_Strict();
|
| } else {
|
| return isolate()->builtins()->KeyedStoreIC_Generic();
|
| @@ -646,7 +645,7 @@ class KeyedStoreIC: public StoreIC {
|
|
|
| // Stub accessors.
|
| virtual Handle<Code> generic_stub() const {
|
| - if (strict_mode() == kStrictMode) {
|
| + if (strict_mode() == STRICT) {
|
| return isolate()->builtins()->KeyedStoreIC_Generic_Strict();
|
| } else {
|
| return isolate()->builtins()->KeyedStoreIC_Generic();
|
|
|