| 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 3205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3216 DCHECK(instr->hydrogen()->elements_kind() == FAST_HOLEY_ELEMENTS); | 3216 DCHECK(instr->hydrogen()->elements_kind() == FAST_HOLEY_ELEMENTS); |
| 3217 Label done; | 3217 Label done; |
| 3218 __ CompareRoot(result, Heap::kTheHoleValueRootIndex); | 3218 __ CompareRoot(result, Heap::kTheHoleValueRootIndex); |
| 3219 __ B(ne, &done); | 3219 __ B(ne, &done); |
| 3220 if (info()->IsStub()) { | 3220 if (info()->IsStub()) { |
| 3221 // A stub can safely convert the hole to undefined only if the array | 3221 // A stub can safely convert the hole to undefined only if the array |
| 3222 // protector cell contains (Smi) Isolate::kArrayProtectorValid. Otherwise | 3222 // protector cell contains (Smi) Isolate::kArrayProtectorValid. Otherwise |
| 3223 // it needs to bail out. | 3223 // it needs to bail out. |
| 3224 __ LoadRoot(result, Heap::kArrayProtectorRootIndex); | 3224 __ LoadRoot(result, Heap::kArrayProtectorRootIndex); |
| 3225 __ Ldr(result, FieldMemOperand(result, Cell::kValueOffset)); | 3225 __ Ldr(result, FieldMemOperand(result, Cell::kValueOffset)); |
| 3226 __ Cmp(result, Operand(Smi::FromInt(Isolate::kArrayProtectorValid))); | 3226 __ Cmp(result, Operand(Smi::FromInt(Isolate::kProtectorValid))); |
| 3227 DeoptimizeIf(ne, instr, DeoptimizeReason::kHole); | 3227 DeoptimizeIf(ne, instr, DeoptimizeReason::kHole); |
| 3228 } | 3228 } |
| 3229 __ LoadRoot(result, Heap::kUndefinedValueRootIndex); | 3229 __ LoadRoot(result, Heap::kUndefinedValueRootIndex); |
| 3230 __ Bind(&done); | 3230 __ Bind(&done); |
| 3231 } | 3231 } |
| 3232 } | 3232 } |
| 3233 | 3233 |
| 3234 | 3234 |
| 3235 void LCodeGen::DoLoadNamedField(LLoadNamedField* instr) { | 3235 void LCodeGen::DoLoadNamedField(LLoadNamedField* instr) { |
| 3236 HObjectAccess access = instr->hydrogen()->access(); | 3236 HObjectAccess access = instr->hydrogen()->access(); |
| (...skipping 2329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5566 // Index is equal to negated out of object property index plus 1. | 5566 // Index is equal to negated out of object property index plus 1. |
| 5567 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | 5567 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |
| 5568 __ Ldr(result, FieldMemOperand(result, | 5568 __ Ldr(result, FieldMemOperand(result, |
| 5569 FixedArray::kHeaderSize - kPointerSize)); | 5569 FixedArray::kHeaderSize - kPointerSize)); |
| 5570 __ Bind(deferred->exit()); | 5570 __ Bind(deferred->exit()); |
| 5571 __ Bind(&done); | 5571 __ Bind(&done); |
| 5572 } | 5572 } |
| 5573 | 5573 |
| 5574 } // namespace internal | 5574 } // namespace internal |
| 5575 } // namespace v8 | 5575 } // namespace v8 |
| OLD | NEW |