OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
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 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 | 754 |
755 ASSERT(FLAG_deopt_every_n_times < 2); // Other values not supported on MIPS. | 755 ASSERT(FLAG_deopt_every_n_times < 2); // Other values not supported on MIPS. |
756 if (FLAG_deopt_every_n_times == 1 && | 756 if (FLAG_deopt_every_n_times == 1 && |
757 !info()->IsStub() && | 757 !info()->IsStub() && |
758 info()->opt_count() == id) { | 758 info()->opt_count() == id) { |
759 ASSERT(frame_is_built_); | 759 ASSERT(frame_is_built_); |
760 __ Call(entry, RelocInfo::RUNTIME_ENTRY); | 760 __ Call(entry, RelocInfo::RUNTIME_ENTRY); |
761 return; | 761 return; |
762 } | 762 } |
763 | 763 |
764 if (FLAG_trap_on_deopt && info()->IsOptimizing()) { | 764 if (info()->ShouldTrapOnDeopt()) { |
765 Label skip; | 765 Label skip; |
766 if (cc != al) { | 766 if (cc != al) { |
767 __ Branch(&skip, NegateCondition(cc), src1, src2); | 767 __ Branch(&skip, NegateCondition(cc), src1, src2); |
768 } | 768 } |
769 __ stop("trap_on_deopt"); | 769 __ stop("trap_on_deopt"); |
770 __ bind(&skip); | 770 __ bind(&skip); |
771 } | 771 } |
772 | 772 |
773 ASSERT(info()->IsStub() || frame_is_built_); | 773 ASSERT(info()->IsStub() || frame_is_built_); |
774 if (cc == al && frame_is_built_) { | 774 if (cc == al && frame_is_built_) { |
(...skipping 5071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5846 __ Subu(scratch, result, scratch); | 5846 __ Subu(scratch, result, scratch); |
5847 __ lw(result, FieldMemOperand(scratch, | 5847 __ lw(result, FieldMemOperand(scratch, |
5848 FixedArray::kHeaderSize - kPointerSize)); | 5848 FixedArray::kHeaderSize - kPointerSize)); |
5849 __ bind(&done); | 5849 __ bind(&done); |
5850 } | 5850 } |
5851 | 5851 |
5852 | 5852 |
5853 #undef __ | 5853 #undef __ |
5854 | 5854 |
5855 } } // namespace v8::internal | 5855 } } // namespace v8::internal |
OLD | NEW |