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/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/cpu-profiler.h" | 9 #include "src/cpu-profiler.h" |
10 #include "src/hydrogen-osr.h" | 10 #include "src/hydrogen-osr.h" |
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 | 800 |
801 if (info()->ShouldTrapOnDeopt()) { | 801 if (info()->ShouldTrapOnDeopt()) { |
802 Label skip; | 802 Label skip; |
803 if (condition != al) { | 803 if (condition != al) { |
804 __ Branch(&skip, NegateCondition(condition), src1, src2); | 804 __ Branch(&skip, NegateCondition(condition), src1, src2); |
805 } | 805 } |
806 __ stop("trap_on_deopt"); | 806 __ stop("trap_on_deopt"); |
807 __ bind(&skip); | 807 __ bind(&skip); |
808 } | 808 } |
809 | 809 |
810 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position().raw(), | 810 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position(), |
811 instr->Mnemonic(), deopt_reason); | 811 instr->Mnemonic(), deopt_reason); |
812 DCHECK(info()->IsStub() || frame_is_built_); | 812 DCHECK(info()->IsStub() || frame_is_built_); |
813 // Go through jump table if we need to handle condition, build frame, or | 813 // Go through jump table if we need to handle condition, build frame, or |
814 // restore caller doubles. | 814 // restore caller doubles. |
815 if (condition == al && frame_is_built_ && | 815 if (condition == al && frame_is_built_ && |
816 !info()->saves_caller_doubles()) { | 816 !info()->saves_caller_doubles()) { |
817 DeoptComment(deopt_info); | 817 DeoptComment(deopt_info); |
818 __ Call(entry, RelocInfo::RUNTIME_ENTRY, condition, src1, src2); | 818 __ Call(entry, RelocInfo::RUNTIME_ENTRY, condition, src1, src2); |
819 } else { | 819 } else { |
820 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, | 820 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, |
(...skipping 5233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6054 __ li(at, scope_info); | 6054 __ li(at, scope_info); |
6055 __ Push(at, ToRegister(instr->function())); | 6055 __ Push(at, ToRegister(instr->function())); |
6056 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6056 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6057 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6057 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6058 } | 6058 } |
6059 | 6059 |
6060 | 6060 |
6061 #undef __ | 6061 #undef __ |
6062 | 6062 |
6063 } } // namespace v8::internal | 6063 } } // namespace v8::internal |
OLD | NEW |