| 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 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 765 Deoptimizer::GetDeoptimizationEntry(isolate(), id, bailout_type); | 765 Deoptimizer::GetDeoptimizationEntry(isolate(), id, bailout_type); |
| 766 if (entry == NULL) { | 766 if (entry == NULL) { |
| 767 Abort("bailout was not prepared"); | 767 Abort("bailout was not prepared"); |
| 768 return; | 768 return; |
| 769 } | 769 } |
| 770 | 770 |
| 771 ASSERT(FLAG_deopt_every_n_times < 2); // Other values not supported on ARM. | 771 ASSERT(FLAG_deopt_every_n_times < 2); // Other values not supported on ARM. |
| 772 if (FLAG_deopt_every_n_times == 1 && | 772 if (FLAG_deopt_every_n_times == 1 && |
| 773 !info()->IsStub() && | 773 !info()->IsStub() && |
| 774 info()->opt_count() == id) { | 774 info()->opt_count() == id) { |
| 775 __ Jump(entry, RelocInfo::RUNTIME_ENTRY); | 775 ASSERT(frame_is_built_); |
| 776 __ Call(entry, RelocInfo::RUNTIME_ENTRY); |
| 776 return; | 777 return; |
| 777 } | 778 } |
| 778 | 779 |
| 779 if (FLAG_trap_on_deopt && info()->IsOptimizing()) { | 780 if (FLAG_trap_on_deopt && info()->IsOptimizing()) { |
| 780 __ stop("trap_on_deopt", cc); | 781 __ stop("trap_on_deopt", cc); |
| 781 } | 782 } |
| 782 | 783 |
| 783 ASSERT(info()->IsStub() || frame_is_built_); | 784 ASSERT(info()->IsStub() || frame_is_built_); |
| 784 if (cc == al && frame_is_built_) { | 785 if (cc == al && frame_is_built_) { |
| 785 __ Call(entry, RelocInfo::RUNTIME_ENTRY); | 786 __ Call(entry, RelocInfo::RUNTIME_ENTRY); |
| (...skipping 5083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5869 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5870 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
| 5870 __ ldr(result, FieldMemOperand(scratch, | 5871 __ ldr(result, FieldMemOperand(scratch, |
| 5871 FixedArray::kHeaderSize - kPointerSize)); | 5872 FixedArray::kHeaderSize - kPointerSize)); |
| 5872 __ bind(&done); | 5873 __ bind(&done); |
| 5873 } | 5874 } |
| 5874 | 5875 |
| 5875 | 5876 |
| 5876 #undef __ | 5877 #undef __ |
| 5877 | 5878 |
| 5878 } } // namespace v8::internal | 5879 } } // namespace v8::internal |
| OLD | NEW |