OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/arm/lithium-codegen-arm.h" | 5 #include "src/crankshaft/arm/lithium-codegen-arm.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/arm/lithium-gap-resolver-arm.h" | 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" |
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
814 if (condition != al) { | 814 if (condition != al) { |
815 condition = ne; | 815 condition = ne; |
816 __ cmp(scratch, Operand::Zero()); | 816 __ cmp(scratch, Operand::Zero()); |
817 } | 817 } |
818 } | 818 } |
819 | 819 |
820 if (info()->ShouldTrapOnDeopt()) { | 820 if (info()->ShouldTrapOnDeopt()) { |
821 __ stop("trap_on_deopt", condition); | 821 __ stop("trap_on_deopt", condition); |
822 } | 822 } |
823 | 823 |
824 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason); | 824 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason, id); |
825 | 825 |
826 DCHECK(info()->IsStub() || frame_is_built_); | 826 DCHECK(info()->IsStub() || frame_is_built_); |
827 // Go through jump table if we need to handle condition, build frame, or | 827 // Go through jump table if we need to handle condition, build frame, or |
828 // restore caller doubles. | 828 // restore caller doubles. |
829 if (condition == al && frame_is_built_ && | 829 if (condition == al && frame_is_built_ && |
830 !info()->saves_caller_doubles()) { | 830 !info()->saves_caller_doubles()) { |
831 DeoptComment(deopt_info); | 831 DeoptComment(deopt_info); |
832 __ Call(entry, RelocInfo::RUNTIME_ENTRY); | 832 __ Call(entry, RelocInfo::RUNTIME_ENTRY); |
833 } else { | 833 } else { |
834 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, | 834 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, |
(...skipping 4744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5579 __ ldr(result, FieldMemOperand(scratch, | 5579 __ ldr(result, FieldMemOperand(scratch, |
5580 FixedArray::kHeaderSize - kPointerSize)); | 5580 FixedArray::kHeaderSize - kPointerSize)); |
5581 __ bind(deferred->exit()); | 5581 __ bind(deferred->exit()); |
5582 __ bind(&done); | 5582 __ bind(&done); |
5583 } | 5583 } |
5584 | 5584 |
5585 #undef __ | 5585 #undef __ |
5586 | 5586 |
5587 } // namespace internal | 5587 } // namespace internal |
5588 } // namespace v8 | 5588 } // namespace v8 |
OLD | NEW |