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 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
850 | 850 |
851 if (info()->ShouldTrapOnDeopt()) { | 851 if (info()->ShouldTrapOnDeopt()) { |
852 Label skip; | 852 Label skip; |
853 if (condition != al) { | 853 if (condition != al) { |
854 __ Branch(&skip, NegateCondition(condition), src1, src2); | 854 __ Branch(&skip, NegateCondition(condition), src1, src2); |
855 } | 855 } |
856 __ stop("trap_on_deopt"); | 856 __ stop("trap_on_deopt"); |
857 __ bind(&skip); | 857 __ bind(&skip); |
858 } | 858 } |
859 | 859 |
860 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position().raw(), | 860 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position(), |
861 instr->Mnemonic(), deopt_reason); | 861 instr->Mnemonic(), deopt_reason); |
862 DCHECK(info()->IsStub() || frame_is_built_); | 862 DCHECK(info()->IsStub() || frame_is_built_); |
863 // Go through jump table if we need to handle condition, build frame, or | 863 // Go through jump table if we need to handle condition, build frame, or |
864 // restore caller doubles. | 864 // restore caller doubles. |
865 if (condition == al && frame_is_built_ && | 865 if (condition == al && frame_is_built_ && |
866 !info()->saves_caller_doubles()) { | 866 !info()->saves_caller_doubles()) { |
867 DeoptComment(deopt_info); | 867 DeoptComment(deopt_info); |
868 __ Call(entry, RelocInfo::RUNTIME_ENTRY, condition, src1, src2); | 868 __ Call(entry, RelocInfo::RUNTIME_ENTRY, condition, src1, src2); |
869 } else { | 869 } else { |
870 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, | 870 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, |
(...skipping 5164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6035 __ li(at, scope_info); | 6035 __ li(at, scope_info); |
6036 __ Push(at, ToRegister(instr->function())); | 6036 __ Push(at, ToRegister(instr->function())); |
6037 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6037 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6038 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6038 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6039 } | 6039 } |
6040 | 6040 |
6041 | 6041 |
6042 #undef __ | 6042 #undef __ |
6043 | 6043 |
6044 } } // namespace v8::internal | 6044 } } // namespace v8::internal |
OLD | NEW |