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 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
789 } | 789 } |
790 | 790 |
791 ASSERT(FLAG_deopt_every_n_times < 2); // Other values not supported on MIPS. | 791 ASSERT(FLAG_deopt_every_n_times < 2); // Other values not supported on MIPS. |
792 if (FLAG_deopt_every_n_times == 1 && | 792 if (FLAG_deopt_every_n_times == 1 && |
793 !info()->IsStub() && | 793 !info()->IsStub() && |
794 info()->opt_count() == id) { | 794 info()->opt_count() == id) { |
795 __ Jump(entry, RelocInfo::RUNTIME_ENTRY); | 795 __ Jump(entry, RelocInfo::RUNTIME_ENTRY); |
796 return; | 796 return; |
797 } | 797 } |
798 | 798 |
799 if (FLAG_trap_on_deopt) { | 799 if (FLAG_trap_on_deopt && info()->IsOptimizing()) { |
800 Label skip; | 800 Label skip; |
801 if (cc != al) { | 801 if (cc != al) { |
802 __ Branch(&skip, NegateCondition(cc), src1, src2); | 802 __ Branch(&skip, NegateCondition(cc), src1, src2); |
803 } | 803 } |
804 __ stop("trap_on_deopt"); | 804 __ stop("trap_on_deopt"); |
805 __ bind(&skip); | 805 __ bind(&skip); |
806 } | 806 } |
807 | 807 |
808 ASSERT(info()->IsStub() || frame_is_built_); | 808 ASSERT(info()->IsStub() || frame_is_built_); |
809 bool needs_lazy_deopt = info()->IsStub(); | 809 bool needs_lazy_deopt = info()->IsStub(); |
(...skipping 5038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5848 __ Subu(scratch, result, scratch); | 5848 __ Subu(scratch, result, scratch); |
5849 __ lw(result, FieldMemOperand(scratch, | 5849 __ lw(result, FieldMemOperand(scratch, |
5850 FixedArray::kHeaderSize - kPointerSize)); | 5850 FixedArray::kHeaderSize - kPointerSize)); |
5851 __ bind(&done); | 5851 __ bind(&done); |
5852 } | 5852 } |
5853 | 5853 |
5854 | 5854 |
5855 #undef __ | 5855 #undef __ |
5856 | 5856 |
5857 } } // namespace v8::internal | 5857 } } // namespace v8::internal |
OLD | NEW |