| Index: src/x64/stub-cache-x64.cc
|
| diff --git a/src/x64/stub-cache-x64.cc b/src/x64/stub-cache-x64.cc
|
| index 0d914c3c41f17145debf880e30eb92db6b321846..4aa9398f746790220e6777c2dee6772323410f4b 100644
|
| --- a/src/x64/stub-cache-x64.cc
|
| +++ b/src/x64/stub-cache-x64.cc
|
| @@ -2705,7 +2705,7 @@ Handle<Code> KeyedStoreStubCompiler::CompileStoreElement(
|
| Handle<Code> stub =
|
| KeyedStoreElementStub(is_js_array,
|
| elements_kind,
|
| - grow_mode_).GetCode(isolate());
|
| + store_mode_).GetCode(isolate());
|
|
|
| __ DispatchMap(rdx, receiver_map, stub, DO_SMI_CHECK);
|
|
|
| @@ -3335,7 +3335,7 @@ void KeyedStoreStubCompiler::GenerateStoreFastElement(
|
| MacroAssembler* masm,
|
| bool is_js_array,
|
| ElementsKind elements_kind,
|
| - KeyedAccessGrowMode grow_mode) {
|
| + KeyedAccessStoreMode store_mode) {
|
| // ----------- S t a t e -------------
|
| // -- rax : value
|
| // -- rcx : key
|
| @@ -3360,7 +3360,7 @@ void KeyedStoreStubCompiler::GenerateStoreFastElement(
|
| // Check that the key is within bounds.
|
| if (is_js_array) {
|
| __ SmiCompare(rcx, FieldOperand(rdx, JSArray::kLengthOffset));
|
| - if (grow_mode == ALLOW_JSARRAY_GROWTH) {
|
| + if (IsGrowStoreMode(store_mode)) {
|
| __ j(above_equal, &grow);
|
| } else {
|
| __ j(above_equal, &miss_force_generic);
|
| @@ -3404,7 +3404,7 @@ void KeyedStoreStubCompiler::GenerateStoreFastElement(
|
| Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss();
|
| __ jmp(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);
|
|
|
| @@ -3477,7 +3477,7 @@ void KeyedStoreStubCompiler::GenerateStoreFastElement(
|
| void KeyedStoreStubCompiler::GenerateStoreFastDoubleElement(
|
| MacroAssembler* masm,
|
| bool is_js_array,
|
| - KeyedAccessGrowMode grow_mode) {
|
| + KeyedAccessStoreMode store_mode) {
|
| // ----------- S t a t e -------------
|
| // -- rax : value
|
| // -- rcx : key
|
| @@ -3500,7 +3500,7 @@ void KeyedStoreStubCompiler::GenerateStoreFastDoubleElement(
|
| // Check that the key is within bounds.
|
| if (is_js_array) {
|
| __ SmiCompare(rcx, FieldOperand(rdx, JSArray::kLengthOffset));
|
| - if (grow_mode == ALLOW_JSARRAY_GROWTH) {
|
| + if (IsGrowStoreMode(store_mode)) {
|
| __ j(above_equal, &grow);
|
| } else {
|
| __ j(above_equal, &miss_force_generic);
|
| @@ -3530,7 +3530,7 @@ void KeyedStoreStubCompiler::GenerateStoreFastDoubleElement(
|
| Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss();
|
| __ jmp(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);
|
|
|
|
|