| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // | 2 // |
| 3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 | 5 |
| 6 #include "src/crankshaft/s390/lithium-codegen-s390.h" | 6 #include "src/crankshaft/s390/lithium-codegen-s390.h" |
| 7 | 7 |
| 8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 4365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4376 __ LoadSmiLiteral(r5, Smi::FromInt(int_key)); | 4376 __ LoadSmiLiteral(r5, Smi::FromInt(int_key)); |
| 4377 } else { | 4377 } else { |
| 4378 // We should never get here at runtime because there is a smi check on | 4378 // We should never get here at runtime because there is a smi check on |
| 4379 // the key before this point. | 4379 // the key before this point. |
| 4380 __ stop("expected smi"); | 4380 __ stop("expected smi"); |
| 4381 } | 4381 } |
| 4382 } else { | 4382 } else { |
| 4383 __ SmiTag(r5, ToRegister(key)); | 4383 __ SmiTag(r5, ToRegister(key)); |
| 4384 } | 4384 } |
| 4385 | 4385 |
| 4386 GrowArrayElementsStub stub(isolate(), instr->hydrogen()->is_js_array(), | 4386 GrowArrayElementsStub stub(isolate(), instr->hydrogen()->kind()); |
| 4387 instr->hydrogen()->kind()); | |
| 4388 __ CallStub(&stub); | 4387 __ CallStub(&stub); |
| 4389 RecordSafepointWithLazyDeopt( | 4388 RecordSafepointWithLazyDeopt( |
| 4390 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); | 4389 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); |
| 4391 __ StoreToSafepointRegisterSlot(result, result); | 4390 __ StoreToSafepointRegisterSlot(result, result); |
| 4392 } | 4391 } |
| 4393 | 4392 |
| 4394 // Deopt on smi, which means the elements array changed to dictionary mode. | 4393 // Deopt on smi, which means the elements array changed to dictionary mode. |
| 4395 __ TestIfSmi(result); | 4394 __ TestIfSmi(result); |
| 4396 DeoptimizeIf(eq, instr, DeoptimizeReason::kSmi, cr0); | 4395 DeoptimizeIf(eq, instr, DeoptimizeReason::kSmi, cr0); |
| 4397 } | 4396 } |
| (...skipping 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5669 __ LoadP(result, | 5668 __ LoadP(result, |
| 5670 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); | 5669 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); |
| 5671 __ bind(deferred->exit()); | 5670 __ bind(deferred->exit()); |
| 5672 __ bind(&done); | 5671 __ bind(&done); |
| 5673 } | 5672 } |
| 5674 | 5673 |
| 5675 #undef __ | 5674 #undef __ |
| 5676 | 5675 |
| 5677 } // namespace internal | 5676 } // namespace internal |
| 5678 } // namespace v8 | 5677 } // namespace v8 |
| OLD | NEW |