| 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 2980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2991 Label done; | 2991 Label done; |
| 2992 __ LoadRoot(scratch, Heap::kTheHoleValueRootIndex); | 2992 __ LoadRoot(scratch, Heap::kTheHoleValueRootIndex); |
| 2993 __ CmpP(result, scratch); | 2993 __ CmpP(result, scratch); |
| 2994 __ bne(&done); | 2994 __ bne(&done); |
| 2995 if (info()->IsStub()) { | 2995 if (info()->IsStub()) { |
| 2996 // A stub can safely convert the hole to undefined only if the array | 2996 // A stub can safely convert the hole to undefined only if the array |
| 2997 // protector cell contains (Smi) Isolate::kArrayProtectorValid. Otherwise | 2997 // protector cell contains (Smi) Isolate::kArrayProtectorValid. Otherwise |
| 2998 // it needs to bail out. | 2998 // it needs to bail out. |
| 2999 __ LoadRoot(result, Heap::kArrayProtectorRootIndex); | 2999 __ LoadRoot(result, Heap::kArrayProtectorRootIndex); |
| 3000 __ LoadP(result, FieldMemOperand(result, Cell::kValueOffset)); | 3000 __ LoadP(result, FieldMemOperand(result, Cell::kValueOffset)); |
| 3001 __ CmpSmiLiteral(result, Smi::FromInt(Isolate::kArrayProtectorValid), r0); | 3001 __ CmpSmiLiteral(result, Smi::FromInt(Isolate::kProtectorValid), r0); |
| 3002 DeoptimizeIf(ne, instr, DeoptimizeReason::kHole); | 3002 DeoptimizeIf(ne, instr, DeoptimizeReason::kHole); |
| 3003 } | 3003 } |
| 3004 __ LoadRoot(result, Heap::kUndefinedValueRootIndex); | 3004 __ LoadRoot(result, Heap::kUndefinedValueRootIndex); |
| 3005 __ bind(&done); | 3005 __ bind(&done); |
| 3006 } | 3006 } |
| 3007 } | 3007 } |
| 3008 | 3008 |
| 3009 void LCodeGen::DoLoadKeyed(LLoadKeyed* instr) { | 3009 void LCodeGen::DoLoadKeyed(LLoadKeyed* instr) { |
| 3010 if (instr->is_fixed_typed_array()) { | 3010 if (instr->is_fixed_typed_array()) { |
| 3011 DoLoadKeyedExternalArray(instr); | 3011 DoLoadKeyedExternalArray(instr); |
| (...skipping 2533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5545 __ LoadP(result, | 5545 __ LoadP(result, |
| 5546 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); | 5546 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); |
| 5547 __ bind(deferred->exit()); | 5547 __ bind(deferred->exit()); |
| 5548 __ bind(&done); | 5548 __ bind(&done); |
| 5549 } | 5549 } |
| 5550 | 5550 |
| 5551 #undef __ | 5551 #undef __ |
| 5552 | 5552 |
| 5553 } // namespace internal | 5553 } // namespace internal |
| 5554 } // namespace v8 | 5554 } // namespace v8 |
| OLD | NEW |