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 4469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4480 __ CallStub(&stub); | 4480 __ CallStub(&stub); |
4481 RecordSafepointWithRegisters(instr->pointer_map(), 0, | 4481 RecordSafepointWithRegisters(instr->pointer_map(), 0, |
4482 Safepoint::kLazyDeopt); | 4482 Safepoint::kLazyDeopt); |
4483 } | 4483 } |
4484 __ bind(¬_applicable); | 4484 __ bind(¬_applicable); |
4485 } | 4485 } |
4486 | 4486 |
4487 | 4487 |
4488 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { | 4488 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { |
4489 Register object = ToRegister(instr->object()); | 4489 Register object = ToRegister(instr->object()); |
4490 Register temp = ToRegister(instr->temp()); | 4490 Register temp1 = ToRegister(instr->temp1()); |
| 4491 Register temp2 = ToRegister(instr->temp2()); |
4491 Label no_memento_found; | 4492 Label no_memento_found; |
4492 __ TestJSArrayForAllocationMemento(object, temp, &no_memento_found); | 4493 __ TestJSArrayForAllocationMemento(object, temp1, temp2, &no_memento_found); |
4493 DeoptimizeIf(eq, instr, Deoptimizer::kMementoFound); | 4494 DeoptimizeIf(eq, instr, Deoptimizer::kMementoFound); |
4494 __ bind(&no_memento_found); | 4495 __ bind(&no_memento_found); |
4495 } | 4496 } |
4496 | 4497 |
4497 | 4498 |
4498 void LCodeGen::DoStringAdd(LStringAdd* instr) { | 4499 void LCodeGen::DoStringAdd(LStringAdd* instr) { |
4499 DCHECK(ToRegister(instr->context()).is(cp)); | 4500 DCHECK(ToRegister(instr->context()).is(cp)); |
4500 DCHECK(ToRegister(instr->left()).is(r4)); | 4501 DCHECK(ToRegister(instr->left()).is(r4)); |
4501 DCHECK(ToRegister(instr->right()).is(r3)); | 4502 DCHECK(ToRegister(instr->right()).is(r3)); |
4502 StringAddStub stub(isolate(), instr->hydrogen()->flags(), | 4503 StringAddStub stub(isolate(), instr->hydrogen()->flags(), |
(...skipping 1247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5750 __ LoadP(result, | 5751 __ LoadP(result, |
5751 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); | 5752 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); |
5752 __ bind(deferred->exit()); | 5753 __ bind(deferred->exit()); |
5753 __ bind(&done); | 5754 __ bind(&done); |
5754 } | 5755 } |
5755 | 5756 |
5756 #undef __ | 5757 #undef __ |
5757 | 5758 |
5758 } // namespace internal | 5759 } // namespace internal |
5759 } // namespace v8 | 5760 } // namespace v8 |
OLD | NEW |