OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/cpu-profiler.h" | 10 #include "src/cpu-profiler.h" |
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 __ Call(entry, RelocInfo::RUNTIME_ENTRY); | 806 __ Call(entry, RelocInfo::RUNTIME_ENTRY); |
807 __ bind(&no_deopt); | 807 __ bind(&no_deopt); |
808 __ stw(r4, MemOperand(scratch)); | 808 __ stw(r4, MemOperand(scratch)); |
809 __ Pop(r4, scratch); | 809 __ Pop(r4, scratch); |
810 } | 810 } |
811 | 811 |
812 if (info()->ShouldTrapOnDeopt()) { | 812 if (info()->ShouldTrapOnDeopt()) { |
813 __ stop("trap_on_deopt", cond, kDefaultStopCode, cr); | 813 __ stop("trap_on_deopt", cond, kDefaultStopCode, cr); |
814 } | 814 } |
815 | 815 |
816 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position().raw(), | 816 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position(), |
817 instr->Mnemonic(), deopt_reason); | 817 instr->Mnemonic(), deopt_reason); |
818 DCHECK(info()->IsStub() || frame_is_built_); | 818 DCHECK(info()->IsStub() || frame_is_built_); |
819 // Go through jump table if we need to handle condition, build frame, or | 819 // Go through jump table if we need to handle condition, build frame, or |
820 // restore caller doubles. | 820 // restore caller doubles. |
821 if (cond == al && frame_is_built_ && !info()->saves_caller_doubles()) { | 821 if (cond == al && frame_is_built_ && !info()->saves_caller_doubles()) { |
822 DeoptComment(deopt_info); | 822 DeoptComment(deopt_info); |
823 __ Call(entry, RelocInfo::RUNTIME_ENTRY); | 823 __ Call(entry, RelocInfo::RUNTIME_ENTRY); |
824 } else { | 824 } else { |
825 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, | 825 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, |
826 !frame_is_built_); | 826 !frame_is_built_); |
(...skipping 5416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6243 __ Push(scope_info); | 6243 __ Push(scope_info); |
6244 __ push(ToRegister(instr->function())); | 6244 __ push(ToRegister(instr->function())); |
6245 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6245 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6246 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6246 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6247 } | 6247 } |
6248 | 6248 |
6249 | 6249 |
6250 #undef __ | 6250 #undef __ |
6251 } | 6251 } |
6252 } // namespace v8::internal | 6252 } // namespace v8::internal |
OLD | NEW |