OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/ppc/lithium-codegen-ppc.h" | 5 #include "src/crankshaft/ppc/lithium-codegen-ppc.h" |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/crankshaft/hydrogen-osr.h" | 10 #include "src/crankshaft/hydrogen-osr.h" |
(...skipping 4425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4436 __ LoadSmiLiteral(r6, Smi::FromInt(int_key)); | 4436 __ LoadSmiLiteral(r6, Smi::FromInt(int_key)); |
4437 } else { | 4437 } else { |
4438 // We should never get here at runtime because there is a smi check on | 4438 // We should never get here at runtime because there is a smi check on |
4439 // the key before this point. | 4439 // the key before this point. |
4440 __ stop("expected smi"); | 4440 __ stop("expected smi"); |
4441 } | 4441 } |
4442 } else { | 4442 } else { |
4443 __ SmiTag(r6, ToRegister(key)); | 4443 __ SmiTag(r6, ToRegister(key)); |
4444 } | 4444 } |
4445 | 4445 |
4446 GrowArrayElementsStub stub(isolate(), instr->hydrogen()->is_js_array(), | 4446 GrowArrayElementsStub stub(isolate(), instr->hydrogen()->kind()); |
4447 instr->hydrogen()->kind()); | |
4448 __ CallStub(&stub); | 4447 __ CallStub(&stub); |
4449 RecordSafepointWithLazyDeopt( | 4448 RecordSafepointWithLazyDeopt( |
4450 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); | 4449 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); |
4451 __ StoreToSafepointRegisterSlot(result, result); | 4450 __ StoreToSafepointRegisterSlot(result, result); |
4452 } | 4451 } |
4453 | 4452 |
4454 // Deopt on smi, which means the elements array changed to dictionary mode. | 4453 // Deopt on smi, which means the elements array changed to dictionary mode. |
4455 __ TestIfSmi(result, r0); | 4454 __ TestIfSmi(result, r0); |
4456 DeoptimizeIf(eq, instr, DeoptimizeReason::kSmi, cr0); | 4455 DeoptimizeIf(eq, instr, DeoptimizeReason::kSmi, cr0); |
4457 } | 4456 } |
(...skipping 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5780 __ LoadP(result, | 5779 __ LoadP(result, |
5781 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); | 5780 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); |
5782 __ bind(deferred->exit()); | 5781 __ bind(deferred->exit()); |
5783 __ bind(&done); | 5782 __ bind(&done); |
5784 } | 5783 } |
5785 | 5784 |
5786 #undef __ | 5785 #undef __ |
5787 | 5786 |
5788 } // namespace internal | 5787 } // namespace internal |
5789 } // namespace v8 | 5788 } // namespace v8 |
OLD | NEW |