OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 | 713 |
714 | 714 |
715 void LCodeGen::DeoptimizeIf(Condition cc, LEnvironment* environment) { | 715 void LCodeGen::DeoptimizeIf(Condition cc, LEnvironment* environment) { |
716 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); | 716 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); |
717 ASSERT(environment->HasBeenRegistered()); | 717 ASSERT(environment->HasBeenRegistered()); |
718 int id = environment->deoptimization_index(); | 718 int id = environment->deoptimization_index(); |
719 ASSERT(info()->IsOptimizing() || info()->IsStub()); | 719 ASSERT(info()->IsOptimizing() || info()->IsStub()); |
720 Deoptimizer::BailoutType bailout_type = info()->IsStub() | 720 Deoptimizer::BailoutType bailout_type = info()->IsStub() |
721 ? Deoptimizer::LAZY | 721 ? Deoptimizer::LAZY |
722 : Deoptimizer::EAGER; | 722 : Deoptimizer::EAGER; |
723 Address entry = Deoptimizer::GetDeoptimizationEntry(id, bailout_type); | 723 Address entry = |
| 724 Deoptimizer::GetDeoptimizationEntry(isolate(), id, bailout_type); |
724 if (entry == NULL) { | 725 if (entry == NULL) { |
725 Abort("bailout was not prepared"); | 726 Abort("bailout was not prepared"); |
726 return; | 727 return; |
727 } | 728 } |
728 | 729 |
729 ASSERT(FLAG_deopt_every_n_times == 0); // Not yet implemented on x64. | 730 ASSERT(FLAG_deopt_every_n_times == 0); // Not yet implemented on x64. |
730 | 731 |
731 if (FLAG_trap_on_deopt) { | 732 if (FLAG_trap_on_deopt) { |
732 Label done; | 733 Label done; |
733 if (cc != no_condition) { | 734 if (cc != no_condition) { |
(...skipping 5051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5785 FixedArray::kHeaderSize - kPointerSize)); | 5786 FixedArray::kHeaderSize - kPointerSize)); |
5786 __ bind(&done); | 5787 __ bind(&done); |
5787 } | 5788 } |
5788 | 5789 |
5789 | 5790 |
5790 #undef __ | 5791 #undef __ |
5791 | 5792 |
5792 } } // namespace v8::internal | 5793 } } // namespace v8::internal |
5793 | 5794 |
5794 #endif // V8_TARGET_ARCH_X64 | 5795 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |