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 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
871 if (condition != al) { | 871 if (condition != al) { |
872 condition = ne; | 872 condition = ne; |
873 __ cmp(scratch, Operand::Zero()); | 873 __ cmp(scratch, Operand::Zero()); |
874 } | 874 } |
875 } | 875 } |
876 | 876 |
877 if (info()->ShouldTrapOnDeopt()) { | 877 if (info()->ShouldTrapOnDeopt()) { |
878 __ stop("trap_on_deopt", condition); | 878 __ stop("trap_on_deopt", condition); |
879 } | 879 } |
880 | 880 |
881 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position(), | 881 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason); |
882 instr->Mnemonic(), deopt_reason); | 882 |
883 DCHECK(info()->IsStub() || frame_is_built_); | 883 DCHECK(info()->IsStub() || frame_is_built_); |
884 // Go through jump table if we need to handle condition, build frame, or | 884 // Go through jump table if we need to handle condition, build frame, or |
885 // restore caller doubles. | 885 // restore caller doubles. |
886 if (condition == al && frame_is_built_ && | 886 if (condition == al && frame_is_built_ && |
887 !info()->saves_caller_doubles()) { | 887 !info()->saves_caller_doubles()) { |
888 DeoptComment(deopt_info); | 888 DeoptComment(deopt_info); |
889 __ Call(entry, RelocInfo::RUNTIME_ENTRY); | 889 __ Call(entry, RelocInfo::RUNTIME_ENTRY); |
890 } else { | 890 } else { |
891 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, | 891 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, |
892 !frame_is_built_); | 892 !frame_is_built_); |
(...skipping 5077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5970 __ Push(scope_info); | 5970 __ Push(scope_info); |
5971 __ push(ToRegister(instr->function())); | 5971 __ push(ToRegister(instr->function())); |
5972 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5972 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
5973 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5973 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5974 } | 5974 } |
5975 | 5975 |
5976 | 5976 |
5977 #undef __ | 5977 #undef __ |
5978 | 5978 |
5979 } } // namespace v8::internal | 5979 } } // namespace v8::internal |
OLD | NEW |