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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/arm/lithium-codegen-arm.h" | 7 #include "src/arm/lithium-codegen-arm.h" |
8 #include "src/arm/lithium-gap-resolver-arm.h" | 8 #include "src/arm/lithium-gap-resolver-arm.h" |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
887 if (condition != al) { | 887 if (condition != al) { |
888 condition = ne; | 888 condition = ne; |
889 __ cmp(scratch, Operand::Zero()); | 889 __ cmp(scratch, Operand::Zero()); |
890 } | 890 } |
891 } | 891 } |
892 | 892 |
893 if (info()->ShouldTrapOnDeopt()) { | 893 if (info()->ShouldTrapOnDeopt()) { |
894 __ stop("trap_on_deopt", condition); | 894 __ stop("trap_on_deopt", condition); |
895 } | 895 } |
896 | 896 |
897 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position().raw(), | 897 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position(), |
898 instr->Mnemonic(), deopt_reason); | 898 instr->Mnemonic(), deopt_reason); |
899 DCHECK(info()->IsStub() || frame_is_built_); | 899 DCHECK(info()->IsStub() || frame_is_built_); |
900 // Go through jump table if we need to handle condition, build frame, or | 900 // Go through jump table if we need to handle condition, build frame, or |
901 // restore caller doubles. | 901 // restore caller doubles. |
902 if (condition == al && frame_is_built_ && | 902 if (condition == al && frame_is_built_ && |
903 !info()->saves_caller_doubles()) { | 903 !info()->saves_caller_doubles()) { |
904 DeoptComment(deopt_info); | 904 DeoptComment(deopt_info); |
905 __ Call(entry, RelocInfo::RUNTIME_ENTRY); | 905 __ Call(entry, RelocInfo::RUNTIME_ENTRY); |
906 } else { | 906 } else { |
907 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, | 907 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, |
(...skipping 5078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5986 __ Push(scope_info); | 5986 __ Push(scope_info); |
5987 __ push(ToRegister(instr->function())); | 5987 __ push(ToRegister(instr->function())); |
5988 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5988 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
5989 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5989 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5990 } | 5990 } |
5991 | 5991 |
5992 | 5992 |
5993 #undef __ | 5993 #undef __ |
5994 | 5994 |
5995 } } // namespace v8::internal | 5995 } } // namespace v8::internal |
OLD | NEW |