| 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 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 844 ? Deoptimizer::LAZY | 844 ? Deoptimizer::LAZY |
| 845 : Deoptimizer::EAGER; | 845 : Deoptimizer::EAGER; |
| 846 Address entry = | 846 Address entry = |
| 847 Deoptimizer::GetDeoptimizationEntry(isolate(), id, bailout_type); | 847 Deoptimizer::GetDeoptimizationEntry(isolate(), id, bailout_type); |
| 848 if (entry == NULL) { | 848 if (entry == NULL) { |
| 849 Abort("bailout was not prepared"); | 849 Abort("bailout was not prepared"); |
| 850 return; | 850 return; |
| 851 } | 851 } |
| 852 | 852 |
| 853 ASSERT(FLAG_deopt_every_n_times < 2); // Other values not supported on ARM. | 853 ASSERT(FLAG_deopt_every_n_times < 2); // Other values not supported on ARM. |
| 854 if (FLAG_deopt_every_n_times == 1 && info_->opt_count() == id) { | 854 if (FLAG_deopt_every_n_times == 1 && |
| 855 !info()->IsStub() && |
| 856 info()->opt_count() == id) { |
| 855 __ Jump(entry, RelocInfo::RUNTIME_ENTRY); | 857 __ Jump(entry, RelocInfo::RUNTIME_ENTRY); |
| 856 return; | 858 return; |
| 857 } | 859 } |
| 858 | 860 |
| 859 if (FLAG_trap_on_deopt) { | 861 if (FLAG_trap_on_deopt) { |
| 860 __ stop("trap_on_deopt", cc); | 862 __ stop("trap_on_deopt", cc); |
| 861 } | 863 } |
| 862 | 864 |
| 863 ASSERT(info()->IsStub() || frame_is_built_); | 865 ASSERT(info()->IsStub() || frame_is_built_); |
| 864 bool needs_lazy_deopt = info()->IsStub(); | 866 bool needs_lazy_deopt = info()->IsStub(); |
| (...skipping 5339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6204 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); | 6206 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); |
| 6205 __ ldr(result, FieldMemOperand(scratch, | 6207 __ ldr(result, FieldMemOperand(scratch, |
| 6206 FixedArray::kHeaderSize - kPointerSize)); | 6208 FixedArray::kHeaderSize - kPointerSize)); |
| 6207 __ bind(&done); | 6209 __ bind(&done); |
| 6208 } | 6210 } |
| 6209 | 6211 |
| 6210 | 6212 |
| 6211 #undef __ | 6213 #undef __ |
| 6212 | 6214 |
| 6213 } } // namespace v8::internal | 6215 } } // namespace v8::internal |
| OLD | NEW |