OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
837 | 837 |
838 if (info()->ShouldTrapOnDeopt()) { | 838 if (info()->ShouldTrapOnDeopt()) { |
839 Label skip; | 839 Label skip; |
840 if (condition != al) { | 840 if (condition != al) { |
841 __ Branch(&skip, NegateCondition(condition), src1, src2); | 841 __ Branch(&skip, NegateCondition(condition), src1, src2); |
842 } | 842 } |
843 __ stop("trap_on_deopt"); | 843 __ stop("trap_on_deopt"); |
844 __ bind(&skip); | 844 __ bind(&skip); |
845 } | 845 } |
846 | 846 |
847 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position(), | 847 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason); |
848 instr->Mnemonic(), deopt_reason); | 848 |
849 DCHECK(info()->IsStub() || frame_is_built_); | 849 DCHECK(info()->IsStub() || frame_is_built_); |
850 // Go through jump table if we need to handle condition, build frame, or | 850 // Go through jump table if we need to handle condition, build frame, or |
851 // restore caller doubles. | 851 // restore caller doubles. |
852 if (condition == al && frame_is_built_ && | 852 if (condition == al && frame_is_built_ && |
853 !info()->saves_caller_doubles()) { | 853 !info()->saves_caller_doubles()) { |
854 DeoptComment(deopt_info); | 854 DeoptComment(deopt_info); |
855 __ Call(entry, RelocInfo::RUNTIME_ENTRY, condition, src1, src2); | 855 __ Call(entry, RelocInfo::RUNTIME_ENTRY, condition, src1, src2); |
856 } else { | 856 } else { |
857 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, | 857 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, |
858 !frame_is_built_); | 858 !frame_is_built_); |
(...skipping 5163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6022 __ li(at, scope_info); | 6022 __ li(at, scope_info); |
6023 __ Push(at, ToRegister(instr->function())); | 6023 __ Push(at, ToRegister(instr->function())); |
6024 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6024 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6025 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6025 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6026 } | 6026 } |
6027 | 6027 |
6028 | 6028 |
6029 #undef __ | 6029 #undef __ |
6030 | 6030 |
6031 } } // namespace v8::internal | 6031 } } // namespace v8::internal |
OLD | NEW |