OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/arm64/lithium-codegen-arm64.h" | 5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" |
6 | 6 |
7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
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 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
883 __ Pop(x2, x1, x0); | 883 __ Pop(x2, x1, x0); |
884 } | 884 } |
885 | 885 |
886 if (info()->ShouldTrapOnDeopt()) { | 886 if (info()->ShouldTrapOnDeopt()) { |
887 Label dont_trap; | 887 Label dont_trap; |
888 __ B(&dont_trap, InvertBranchType(branch_type), reg, bit); | 888 __ B(&dont_trap, InvertBranchType(branch_type), reg, bit); |
889 __ Debug("trap_on_deopt", __LINE__, BREAK); | 889 __ Debug("trap_on_deopt", __LINE__, BREAK); |
890 __ Bind(&dont_trap); | 890 __ Bind(&dont_trap); |
891 } | 891 } |
892 | 892 |
893 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason); | 893 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason, id); |
894 | 894 |
895 DCHECK(info()->IsStub() || frame_is_built_); | 895 DCHECK(info()->IsStub() || frame_is_built_); |
896 // Go through jump table if we need to build frame, or restore caller doubles. | 896 // Go through jump table if we need to build frame, or restore caller doubles. |
897 if (branch_type == always && | 897 if (branch_type == always && |
898 frame_is_built_ && !info()->saves_caller_doubles()) { | 898 frame_is_built_ && !info()->saves_caller_doubles()) { |
899 DeoptComment(deopt_info); | 899 DeoptComment(deopt_info); |
900 __ Call(entry, RelocInfo::RUNTIME_ENTRY); | 900 __ Call(entry, RelocInfo::RUNTIME_ENTRY); |
901 } else { | 901 } else { |
902 Deoptimizer::JumpTableEntry* table_entry = | 902 Deoptimizer::JumpTableEntry* table_entry = |
903 new (zone()) Deoptimizer::JumpTableEntry( | 903 new (zone()) Deoptimizer::JumpTableEntry( |
(...skipping 4866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5770 // Index is equal to negated out of object property index plus 1. | 5770 // Index is equal to negated out of object property index plus 1. |
5771 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | 5771 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |
5772 __ Ldr(result, FieldMemOperand(result, | 5772 __ Ldr(result, FieldMemOperand(result, |
5773 FixedArray::kHeaderSize - kPointerSize)); | 5773 FixedArray::kHeaderSize - kPointerSize)); |
5774 __ Bind(deferred->exit()); | 5774 __ Bind(deferred->exit()); |
5775 __ Bind(&done); | 5775 __ Bind(&done); |
5776 } | 5776 } |
5777 | 5777 |
5778 } // namespace internal | 5778 } // namespace internal |
5779 } // namespace v8 | 5779 } // namespace v8 |
OLD | NEW |