| 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 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 | 605 |
| 606 | 606 |
| 607 void LCodeGen::DeoptimizeIf(Condition cc, | 607 void LCodeGen::DeoptimizeIf(Condition cc, |
| 608 LEnvironment* environment, | 608 LEnvironment* environment, |
| 609 Register src1, | 609 Register src1, |
| 610 const Operand& src2) { | 610 const Operand& src2) { |
| 611 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); | 611 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); |
| 612 ASSERT(environment->HasBeenRegistered()); | 612 ASSERT(environment->HasBeenRegistered()); |
| 613 int id = environment->deoptimization_index(); | 613 int id = environment->deoptimization_index(); |
| 614 Address entry = Deoptimizer::GetDeoptimizationEntry(id, Deoptimizer::EAGER); | 614 Address entry = Deoptimizer::GetDeoptimizationEntry(id, Deoptimizer::EAGER); |
| 615 ASSERT(entry != NULL); | |
| 616 if (entry == NULL) { | 615 if (entry == NULL) { |
| 617 Abort("bailout was not prepared"); | 616 Abort("bailout was not prepared"); |
| 618 return; | 617 return; |
| 619 } | 618 } |
| 620 | 619 |
| 621 ASSERT(FLAG_deopt_every_n_times < 2); // Other values not supported on MIPS. | 620 ASSERT(FLAG_deopt_every_n_times < 2); // Other values not supported on MIPS. |
| 622 | 621 |
| 623 if (FLAG_deopt_every_n_times == 1 && | 622 if (FLAG_deopt_every_n_times == 1 && |
| 624 info_->shared_info()->opt_count() == id) { | 623 info_->shared_info()->opt_count() == id) { |
| 625 __ Jump(entry, RelocInfo::RUNTIME_ENTRY); | 624 __ Jump(entry, RelocInfo::RUNTIME_ENTRY); |
| (...skipping 4426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5052 __ Subu(scratch, result, scratch); | 5051 __ Subu(scratch, result, scratch); |
| 5053 __ lw(result, FieldMemOperand(scratch, | 5052 __ lw(result, FieldMemOperand(scratch, |
| 5054 FixedArray::kHeaderSize - kPointerSize)); | 5053 FixedArray::kHeaderSize - kPointerSize)); |
| 5055 __ bind(&done); | 5054 __ bind(&done); |
| 5056 } | 5055 } |
| 5057 | 5056 |
| 5058 | 5057 |
| 5059 #undef __ | 5058 #undef __ |
| 5060 | 5059 |
| 5061 } } // namespace v8::internal | 5060 } } // namespace v8::internal |
| OLD | NEW |