| Index: src/arm/stub-cache-arm.cc
|
| diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc
|
| index 9603410b3684863c72494a859bd4a54461172212..6671df6dc911a646071308d78bcb91845314fdc5 100644
|
| --- a/src/arm/stub-cache-arm.cc
|
| +++ b/src/arm/stub-cache-arm.cc
|
| @@ -3094,7 +3094,7 @@ Handle<Code> KeyedStoreStubCompiler::CompileStoreElement(
|
| Handle<Code> stub =
|
| KeyedStoreElementStub(is_js_array,
|
| elements_kind,
|
| - grow_mode_).GetCode(isolate());
|
| + store_mode_).GetCode(isolate());
|
|
|
| __ DispatchMap(r2, r3, receiver_map, stub, DO_SMI_CHECK);
|
|
|
| @@ -3757,7 +3757,7 @@ void KeyedStoreStubCompiler::GenerateStoreFastElement(
|
| MacroAssembler* masm,
|
| bool is_js_array,
|
| ElementsKind elements_kind,
|
| - KeyedAccessGrowMode grow_mode) {
|
| + KeyedAccessStoreMode store_mode) {
|
| // ----------- S t a t e -------------
|
| // -- r0 : value
|
| // -- r1 : key
|
| @@ -3797,7 +3797,7 @@ void KeyedStoreStubCompiler::GenerateStoreFastElement(
|
| }
|
| // Compare smis.
|
| __ cmp(key_reg, scratch);
|
| - if (is_js_array && grow_mode == ALLOW_JSARRAY_GROWTH) {
|
| + if (is_js_array && IsGrowStoreMode(store_mode)) {
|
| __ b(hs, &grow);
|
| } else {
|
| __ b(hs, &miss_force_generic);
|
| @@ -3850,7 +3850,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);
|
|
|
| @@ -3922,7 +3922,7 @@ void KeyedStoreStubCompiler::GenerateStoreFastElement(
|
| void KeyedStoreStubCompiler::GenerateStoreFastDoubleElement(
|
| MacroAssembler* masm,
|
| bool is_js_array,
|
| - KeyedAccessGrowMode grow_mode) {
|
| + KeyedAccessStoreMode store_mode) {
|
| // ----------- S t a t e -------------
|
| // -- r0 : value
|
| // -- r1 : key
|
| @@ -3968,7 +3968,7 @@ void KeyedStoreStubCompiler::GenerateStoreFastDoubleElement(
|
| // Compare smis, unsigned compare catches both negative and out-of-bound
|
| // indexes.
|
| __ cmp(key_reg, scratch1);
|
| - if (grow_mode == ALLOW_JSARRAY_GROWTH) {
|
| + if (IsGrowStoreMode(store_mode)) {
|
| __ b(hs, &grow);
|
| } else {
|
| __ b(hs, &miss_force_generic);
|
| @@ -3996,7 +3996,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);
|
|
|
|
|