| 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 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 if (cond != al) { | 737 if (cond != al) { |
| 738 cond = ne; | 738 cond = ne; |
| 739 __ CmpP(scratch, Operand::Zero()); | 739 __ CmpP(scratch, Operand::Zero()); |
| 740 } | 740 } |
| 741 } | 741 } |
| 742 | 742 |
| 743 if (info()->ShouldTrapOnDeopt()) { | 743 if (info()->ShouldTrapOnDeopt()) { |
| 744 __ stop("trap_on_deopt", cond, kDefaultStopCode, cr); | 744 __ stop("trap_on_deopt", cond, kDefaultStopCode, cr); |
| 745 } | 745 } |
| 746 | 746 |
| 747 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason); | 747 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason, id); |
| 748 | 748 |
| 749 DCHECK(info()->IsStub() || frame_is_built_); | 749 DCHECK(info()->IsStub() || frame_is_built_); |
| 750 // Go through jump table if we need to handle condition, build frame, or | 750 // Go through jump table if we need to handle condition, build frame, or |
| 751 // restore caller doubles. | 751 // restore caller doubles. |
| 752 if (cond == al && frame_is_built_ && !info()->saves_caller_doubles()) { | 752 if (cond == al && frame_is_built_ && !info()->saves_caller_doubles()) { |
| 753 __ Call(entry, RelocInfo::RUNTIME_ENTRY); | 753 __ Call(entry, RelocInfo::RUNTIME_ENTRY); |
| 754 } else { | 754 } else { |
| 755 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, | 755 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, |
| 756 !frame_is_built_); | 756 !frame_is_built_); |
| 757 // We often have several deopts to the same entry, reuse the last | 757 // We often have several deopts to the same entry, reuse the last |
| (...skipping 4905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5663 __ LoadP(result, | 5663 __ LoadP(result, |
| 5664 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); | 5664 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); |
| 5665 __ bind(deferred->exit()); | 5665 __ bind(deferred->exit()); |
| 5666 __ bind(&done); | 5666 __ bind(&done); |
| 5667 } | 5667 } |
| 5668 | 5668 |
| 5669 #undef __ | 5669 #undef __ |
| 5670 | 5670 |
| 5671 } // namespace internal | 5671 } // namespace internal |
| 5672 } // namespace v8 | 5672 } // namespace v8 |
| OLD | NEW |