| 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 3279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3290 DeoptimizeIfRoot(result, Heap::kTheHoleValueRootIndex, instr, | 3290 DeoptimizeIfRoot(result, Heap::kTheHoleValueRootIndex, instr, |
| 3291 Deoptimizer::kHole); | 3291 Deoptimizer::kHole); |
| 3292 } | 3292 } |
| 3293 } else if (instr->hydrogen()->hole_mode() == CONVERT_HOLE_TO_UNDEFINED) { | 3293 } else if (instr->hydrogen()->hole_mode() == CONVERT_HOLE_TO_UNDEFINED) { |
| 3294 DCHECK(instr->hydrogen()->elements_kind() == FAST_HOLEY_ELEMENTS); | 3294 DCHECK(instr->hydrogen()->elements_kind() == FAST_HOLEY_ELEMENTS); |
| 3295 Label done; | 3295 Label done; |
| 3296 __ CompareRoot(result, Heap::kTheHoleValueRootIndex); | 3296 __ CompareRoot(result, Heap::kTheHoleValueRootIndex); |
| 3297 __ B(ne, &done); | 3297 __ B(ne, &done); |
| 3298 if (info()->IsStub()) { | 3298 if (info()->IsStub()) { |
| 3299 // A stub can safely convert the hole to undefined only if the array | 3299 // A stub can safely convert the hole to undefined only if the array |
| 3300 // protector cell contains (Smi) Isolate::kArrayProtectorValid. Otherwise | 3300 // protector cell contains (Smi) Isolate::kArrayProtectorValid. |
| 3301 // it needs to bail out. | 3301 // Otherwise it needs to bail out. |
| 3302 __ LoadRoot(result, Heap::kArrayProtectorRootIndex); | 3302 __ LoadRoot(result, Heap::kArrayProtectorRootIndex); |
| 3303 __ Ldr(result, FieldMemOperand(result, Cell::kValueOffset)); | 3303 __ Ldr(result, FieldMemOperand(result, Cell::kValueOffset)); |
| 3304 __ Cmp(result, Operand(Smi::FromInt(Isolate::kArrayProtectorValid))); | 3304 __ Cmp(result, Operand(Smi::FromInt(Isolate::kArrayProtectorValid))); |
| 3305 DeoptimizeIf(ne, instr, Deoptimizer::kHole); | 3305 DeoptimizeIf(ne, instr, Deoptimizer::kHole); |
| 3306 } | 3306 } |
| 3307 __ LoadRoot(result, Heap::kUndefinedValueRootIndex); | 3307 __ LoadRoot(result, Heap::kUndefinedValueRootIndex); |
| 3308 __ Bind(&done); | 3308 __ Bind(&done); |
| 3309 } | 3309 } |
| 3310 } | 3310 } |
| 3311 | 3311 |
| (...skipping 2420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5732 | 5732 |
| 5733 | 5733 |
| 5734 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { | 5734 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { |
| 5735 Register context = ToRegister(instr->context()); | 5735 Register context = ToRegister(instr->context()); |
| 5736 __ Str(context, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 5736 __ Str(context, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
| 5737 } | 5737 } |
| 5738 | 5738 |
| 5739 | 5739 |
| 5740 } // namespace internal | 5740 } // namespace internal |
| 5741 } // namespace v8 | 5741 } // namespace v8 |
| OLD | NEW |