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 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 LEnvironment* environment, | 802 LEnvironment* environment, |
803 Register src1, | 803 Register src1, |
804 const Operand& src2) { | 804 const Operand& src2) { |
805 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); | 805 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); |
806 ASSERT(environment->HasBeenRegistered()); | 806 ASSERT(environment->HasBeenRegistered()); |
807 int id = environment->deoptimization_index(); | 807 int id = environment->deoptimization_index(); |
808 ASSERT(info()->IsOptimizing() || info()->IsStub()); | 808 ASSERT(info()->IsOptimizing() || info()->IsStub()); |
809 Deoptimizer::BailoutType bailout_type = info()->IsStub() | 809 Deoptimizer::BailoutType bailout_type = info()->IsStub() |
810 ? Deoptimizer::LAZY | 810 ? Deoptimizer::LAZY |
811 : Deoptimizer::EAGER; | 811 : Deoptimizer::EAGER; |
812 Address entry = Deoptimizer::GetDeoptimizationEntry(id, bailout_type); | 812 Address entry = |
| 813 Deoptimizer::GetDeoptimizationEntry(isolate(), id, bailout_type); |
813 if (entry == NULL) { | 814 if (entry == NULL) { |
814 Abort("bailout was not prepared"); | 815 Abort("bailout was not prepared"); |
815 return; | 816 return; |
816 } | 817 } |
817 | 818 |
818 ASSERT(FLAG_deopt_every_n_times < 2); // Other values not supported on MIPS. | 819 ASSERT(FLAG_deopt_every_n_times < 2); // Other values not supported on MIPS. |
819 if (FLAG_deopt_every_n_times == 1 && info_->opt_count() == id) { | 820 if (FLAG_deopt_every_n_times == 1 && info_->opt_count() == id) { |
820 __ Jump(entry, RelocInfo::RUNTIME_ENTRY); | 821 __ Jump(entry, RelocInfo::RUNTIME_ENTRY); |
821 return; | 822 return; |
822 } | 823 } |
(...skipping 5214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6037 __ Subu(scratch, result, scratch); | 6038 __ Subu(scratch, result, scratch); |
6038 __ lw(result, FieldMemOperand(scratch, | 6039 __ lw(result, FieldMemOperand(scratch, |
6039 FixedArray::kHeaderSize - kPointerSize)); | 6040 FixedArray::kHeaderSize - kPointerSize)); |
6040 __ bind(&done); | 6041 __ bind(&done); |
6041 } | 6042 } |
6042 | 6043 |
6043 | 6044 |
6044 #undef __ | 6045 #undef __ |
6045 | 6046 |
6046 } } // namespace v8::internal | 6047 } } // namespace v8::internal |
OLD | NEW |