| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" | 5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" |
| 6 | 6 |
| 7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
| 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 4999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5010 __ Move(result, ToRegister(instr->object())); | 5010 __ Move(result, ToRegister(instr->object())); |
| 5011 | 5011 |
| 5012 LOperand* key = instr->key(); | 5012 LOperand* key = instr->key(); |
| 5013 if (key->IsConstantOperand()) { | 5013 if (key->IsConstantOperand()) { |
| 5014 __ Mov(x3, Operand(ToSmi(LConstantOperand::cast(key)))); | 5014 __ Mov(x3, Operand(ToSmi(LConstantOperand::cast(key)))); |
| 5015 } else { | 5015 } else { |
| 5016 __ Mov(x3, ToRegister(key)); | 5016 __ Mov(x3, ToRegister(key)); |
| 5017 __ SmiTag(x3); | 5017 __ SmiTag(x3); |
| 5018 } | 5018 } |
| 5019 | 5019 |
| 5020 GrowArrayElementsStub stub(isolate(), instr->hydrogen()->is_js_array(), | 5020 GrowArrayElementsStub stub(isolate(), instr->hydrogen()->kind()); |
| 5021 instr->hydrogen()->kind()); | |
| 5022 __ CallStub(&stub); | 5021 __ CallStub(&stub); |
| 5023 RecordSafepointWithLazyDeopt( | 5022 RecordSafepointWithLazyDeopt( |
| 5024 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); | 5023 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); |
| 5025 __ StoreToSafepointRegisterSlot(result, result); | 5024 __ StoreToSafepointRegisterSlot(result, result); |
| 5026 } | 5025 } |
| 5027 | 5026 |
| 5028 // Deopt on smi, which means the elements array changed to dictionary mode. | 5027 // Deopt on smi, which means the elements array changed to dictionary mode. |
| 5029 DeoptimizeIfSmi(result, instr, DeoptimizeReason::kSmi); | 5028 DeoptimizeIfSmi(result, instr, DeoptimizeReason::kSmi); |
| 5030 } | 5029 } |
| 5031 | 5030 |
| (...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5697 // Index is equal to negated out of object property index plus 1. | 5696 // Index is equal to negated out of object property index plus 1. |
| 5698 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | 5697 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |
| 5699 __ Ldr(result, FieldMemOperand(result, | 5698 __ Ldr(result, FieldMemOperand(result, |
| 5700 FixedArray::kHeaderSize - kPointerSize)); | 5699 FixedArray::kHeaderSize - kPointerSize)); |
| 5701 __ Bind(deferred->exit()); | 5700 __ Bind(deferred->exit()); |
| 5702 __ Bind(&done); | 5701 __ Bind(&done); |
| 5703 } | 5702 } |
| 5704 | 5703 |
| 5705 } // namespace internal | 5704 } // namespace internal |
| 5706 } // namespace v8 | 5705 } // namespace v8 |
| OLD | NEW |