| 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 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 804 | 804 |
| 805 if (info()->ShouldTrapOnDeopt()) { | 805 if (info()->ShouldTrapOnDeopt()) { |
| 806 Label skip; | 806 Label skip; |
| 807 if (condition != al) { | 807 if (condition != al) { |
| 808 __ Branch(&skip, NegateCondition(condition), src1, src2); | 808 __ Branch(&skip, NegateCondition(condition), src1, src2); |
| 809 } | 809 } |
| 810 __ stop("trap_on_deopt"); | 810 __ stop("trap_on_deopt"); |
| 811 __ bind(&skip); | 811 __ bind(&skip); |
| 812 } | 812 } |
| 813 | 813 |
| 814 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position(), | 814 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason); |
| 815 instr->Mnemonic(), deopt_reason); | 815 |
| 816 DCHECK(info()->IsStub() || frame_is_built_); | 816 DCHECK(info()->IsStub() || frame_is_built_); |
| 817 // Go through jump table if we need to handle condition, build frame, or | 817 // Go through jump table if we need to handle condition, build frame, or |
| 818 // restore caller doubles. | 818 // restore caller doubles. |
| 819 if (condition == al && frame_is_built_ && | 819 if (condition == al && frame_is_built_ && |
| 820 !info()->saves_caller_doubles()) { | 820 !info()->saves_caller_doubles()) { |
| 821 DeoptComment(deopt_info); | 821 DeoptComment(deopt_info); |
| 822 __ Call(entry, RelocInfo::RUNTIME_ENTRY, condition, src1, src2); | 822 __ Call(entry, RelocInfo::RUNTIME_ENTRY, condition, src1, src2); |
| 823 } else { | 823 } else { |
| 824 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, | 824 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, |
| 825 !frame_is_built_); | 825 !frame_is_built_); |
| (...skipping 5232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6058 __ li(at, scope_info); | 6058 __ li(at, scope_info); |
| 6059 __ Push(at, ToRegister(instr->function())); | 6059 __ Push(at, ToRegister(instr->function())); |
| 6060 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6060 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 6061 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6061 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 6062 } | 6062 } |
| 6063 | 6063 |
| 6064 | 6064 |
| 6065 #undef __ | 6065 #undef __ |
| 6066 | 6066 |
| 6067 } } // namespace v8::internal | 6067 } } // namespace v8::internal |
| OLD | NEW |