| 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 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 780 | 780 |
| 781 if (info()->ShouldTrapOnDeopt()) { | 781 if (info()->ShouldTrapOnDeopt()) { |
| 782 Label skip; | 782 Label skip; |
| 783 if (condition != al) { | 783 if (condition != al) { |
| 784 __ Branch(&skip, NegateCondition(condition), src1, src2); | 784 __ Branch(&skip, NegateCondition(condition), src1, src2); |
| 785 } | 785 } |
| 786 __ stop("trap_on_deopt"); | 786 __ stop("trap_on_deopt"); |
| 787 __ bind(&skip); | 787 __ bind(&skip); |
| 788 } | 788 } |
| 789 | 789 |
| 790 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason); | 790 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason, id); |
| 791 | 791 |
| 792 DCHECK(info()->IsStub() || frame_is_built_); | 792 DCHECK(info()->IsStub() || frame_is_built_); |
| 793 // Go through jump table if we need to handle condition, build frame, or | 793 // Go through jump table if we need to handle condition, build frame, or |
| 794 // restore caller doubles. | 794 // restore caller doubles. |
| 795 if (condition == al && frame_is_built_ && | 795 if (condition == al && frame_is_built_ && |
| 796 !info()->saves_caller_doubles()) { | 796 !info()->saves_caller_doubles()) { |
| 797 DeoptComment(deopt_info); | 797 DeoptComment(deopt_info); |
| 798 __ Call(entry, RelocInfo::RUNTIME_ENTRY, condition, src1, src2); | 798 __ Call(entry, RelocInfo::RUNTIME_ENTRY, condition, src1, src2); |
| 799 } else { | 799 } else { |
| 800 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, | 800 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, |
| (...skipping 4776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5577 __ lw(result, FieldMemOperand(scratch, | 5577 __ lw(result, FieldMemOperand(scratch, |
| 5578 FixedArray::kHeaderSize - kPointerSize)); | 5578 FixedArray::kHeaderSize - kPointerSize)); |
| 5579 __ bind(deferred->exit()); | 5579 __ bind(deferred->exit()); |
| 5580 __ bind(&done); | 5580 __ bind(&done); |
| 5581 } | 5581 } |
| 5582 | 5582 |
| 5583 #undef __ | 5583 #undef __ |
| 5584 | 5584 |
| 5585 } // namespace internal | 5585 } // namespace internal |
| 5586 } // namespace v8 | 5586 } // namespace v8 |
| OLD | NEW |