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 4422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4433 TransitionElementsKindStub stub(isolate(), from_kind, to_kind, is_js_array); | 4433 TransitionElementsKindStub stub(isolate(), from_kind, to_kind, is_js_array); |
4434 __ CallStub(&stub); | 4434 __ CallStub(&stub); |
4435 RecordSafepointWithRegisters(instr->pointer_map(), 0, | 4435 RecordSafepointWithRegisters(instr->pointer_map(), 0, |
4436 Safepoint::kLazyDeopt); | 4436 Safepoint::kLazyDeopt); |
4437 } | 4437 } |
4438 __ bind(¬_applicable); | 4438 __ bind(¬_applicable); |
4439 } | 4439 } |
4440 | 4440 |
4441 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { | 4441 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { |
4442 Register object = ToRegister(instr->object()); | 4442 Register object = ToRegister(instr->object()); |
4443 Register temp = ToRegister(instr->temp()); | 4443 Register temp1 = ToRegister(instr->temp1()); |
| 4444 Register temp2 = ToRegister(instr->temp2()); |
4444 Label no_memento_found; | 4445 Label no_memento_found; |
4445 __ TestJSArrayForAllocationMemento(object, temp, &no_memento_found); | 4446 __ TestJSArrayForAllocationMemento(object, temp1, temp2, &no_memento_found); |
4446 DeoptimizeIf(eq, instr, Deoptimizer::kMementoFound); | 4447 DeoptimizeIf(eq, instr, Deoptimizer::kMementoFound); |
4447 __ bind(&no_memento_found); | 4448 __ bind(&no_memento_found); |
4448 } | 4449 } |
4449 | 4450 |
4450 void LCodeGen::DoStringAdd(LStringAdd* instr) { | 4451 void LCodeGen::DoStringAdd(LStringAdd* instr) { |
4451 DCHECK(ToRegister(instr->context()).is(cp)); | 4452 DCHECK(ToRegister(instr->context()).is(cp)); |
4452 DCHECK(ToRegister(instr->left()).is(r3)); | 4453 DCHECK(ToRegister(instr->left()).is(r3)); |
4453 DCHECK(ToRegister(instr->right()).is(r2)); | 4454 DCHECK(ToRegister(instr->right()).is(r2)); |
4454 StringAddStub stub(isolate(), instr->hydrogen()->flags(), | 4455 StringAddStub stub(isolate(), instr->hydrogen()->flags(), |
4455 instr->hydrogen()->pretenure_flag()); | 4456 instr->hydrogen()->pretenure_flag()); |
(...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5660 __ LoadP(result, | 5661 __ LoadP(result, |
5661 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); | 5662 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); |
5662 __ bind(deferred->exit()); | 5663 __ bind(deferred->exit()); |
5663 __ bind(&done); | 5664 __ bind(&done); |
5664 } | 5665 } |
5665 | 5666 |
5666 #undef __ | 5667 #undef __ |
5667 | 5668 |
5668 } // namespace internal | 5669 } // namespace internal |
5669 } // namespace v8 | 5670 } // namespace v8 |
OLD | NEW |