| Index: src/mips/stub-cache-mips.cc
|
| diff --git a/src/mips/stub-cache-mips.cc b/src/mips/stub-cache-mips.cc
|
| index 192c7bfb3fde6b6f652aa948539c1bcdd7d65fa8..7ad7cead9dbb80566a758b22e98e71f6db592ec6 100644
|
| --- a/src/mips/stub-cache-mips.cc
|
| +++ b/src/mips/stub-cache-mips.cc
|
| @@ -3062,7 +3062,7 @@ Handle<Code> KeyedStoreStubCompiler::CompileStoreElement(
|
| Handle<Code> stub =
|
| KeyedStoreElementStub(is_js_array,
|
| elements_kind,
|
| - grow_mode_).GetCode(isolate());
|
| + store_mode_).GetCode(isolate());
|
|
|
| __ DispatchMap(a2, a3, receiver_map, stub, DO_SMI_CHECK);
|
|
|
| @@ -3827,7 +3827,7 @@ void KeyedStoreStubCompiler::GenerateStoreFastElement(
|
| __ lw(scratch, FieldMemOperand(elements_reg, FixedArray::kLengthOffset));
|
| }
|
| // Compare smis.
|
| - if (is_js_array && grow_mode == ALLOW_JSARRAY_GROWTH) {
|
| + if (is_js_array && IsGrowStoreMode(store_mode)) {
|
| __ Branch(&grow, hs, key_reg, Operand(scratch));
|
| } else {
|
| __ Branch(&miss_force_generic, hs, key_reg, Operand(scratch));
|
| @@ -3879,7 +3879,7 @@ void KeyedStoreStubCompiler::GenerateStoreFastElement(
|
| Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss();
|
| __ Jump(ic_miss, RelocInfo::CODE_TARGET);
|
|
|
| - if (is_js_array && grow_mode == ALLOW_JSARRAY_GROWTH) {
|
| + if (is_js_array && IsGrowStoreMode(store_mode)) {
|
| // Grow the array by a single element if possible.
|
| __ bind(&grow);
|
|
|
| @@ -3995,7 +3995,7 @@ void KeyedStoreStubCompiler::GenerateStoreFastDoubleElement(
|
| }
|
| // Compare smis, unsigned compare catches both negative and out-of-bound
|
| // indexes.
|
| - if (grow_mode == ALLOW_JSARRAY_GROWTH) {
|
| + if (IsGrowStoreMode(store_mode)) {
|
| __ Branch(&grow, hs, key_reg, Operand(scratch1));
|
| } else {
|
| __ Branch(&miss_force_generic, hs, key_reg, Operand(scratch1));
|
| @@ -4026,7 +4026,7 @@ void KeyedStoreStubCompiler::GenerateStoreFastDoubleElement(
|
| Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss();
|
| __ Jump(ic_miss, RelocInfo::CODE_TARGET);
|
|
|
| - if (is_js_array && grow_mode == ALLOW_JSARRAY_GROWTH) {
|
| + if (is_js_array && IsGrowStoreMode(store_mode)) {
|
| // Grow the array by a single element if possible.
|
| __ bind(&grow);
|
|
|
|
|