| 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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 deoptimizations_.Add(environment); | 533 deoptimizations_.Add(environment); |
| 534 } | 534 } |
| 535 } | 535 } |
| 536 | 536 |
| 537 | 537 |
| 538 void LCodeGen::DeoptimizeIf(Condition cc, LEnvironment* environment) { | 538 void LCodeGen::DeoptimizeIf(Condition cc, LEnvironment* environment) { |
| 539 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); | 539 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); |
| 540 ASSERT(environment->HasBeenRegistered()); | 540 ASSERT(environment->HasBeenRegistered()); |
| 541 int id = environment->deoptimization_index(); | 541 int id = environment->deoptimization_index(); |
| 542 Address entry = Deoptimizer::GetDeoptimizationEntry(id, Deoptimizer::EAGER); | 542 Address entry = Deoptimizer::GetDeoptimizationEntry(id, Deoptimizer::EAGER); |
| 543 ASSERT(entry != NULL); | |
| 544 if (entry == NULL) { | 543 if (entry == NULL) { |
| 545 Abort("bailout was not prepared"); | 544 Abort("bailout was not prepared"); |
| 546 return; | 545 return; |
| 547 } | 546 } |
| 548 | 547 |
| 549 if (cc == no_condition) { | 548 if (cc == no_condition) { |
| 550 __ Jump(entry, RelocInfo::RUNTIME_ENTRY); | 549 __ Jump(entry, RelocInfo::RUNTIME_ENTRY); |
| 551 } else { | 550 } else { |
| 552 // We often have several deopts to the same entry, reuse the last | 551 // We often have several deopts to the same entry, reuse the last |
| 553 // jump entry if this is the case. | 552 // jump entry if this is the case. |
| (...skipping 4189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4743 FixedArray::kHeaderSize - kPointerSize)); | 4742 FixedArray::kHeaderSize - kPointerSize)); |
| 4744 __ bind(&done); | 4743 __ bind(&done); |
| 4745 } | 4744 } |
| 4746 | 4745 |
| 4747 | 4746 |
| 4748 #undef __ | 4747 #undef __ |
| 4749 | 4748 |
| 4750 } } // namespace v8::internal | 4749 } } // namespace v8::internal |
| 4751 | 4750 |
| 4752 #endif // V8_TARGET_ARCH_X64 | 4751 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |