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 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 ASSERT(info()->IsOptimizing() || info()->IsStub()); | 699 ASSERT(info()->IsOptimizing() || info()->IsStub()); |
700 Address entry = | 700 Address entry = |
701 Deoptimizer::GetDeoptimizationEntry(isolate(), id, bailout_type); | 701 Deoptimizer::GetDeoptimizationEntry(isolate(), id, bailout_type); |
702 if (entry == NULL) { | 702 if (entry == NULL) { |
703 Abort("bailout was not prepared"); | 703 Abort("bailout was not prepared"); |
704 return; | 704 return; |
705 } | 705 } |
706 | 706 |
707 ASSERT(FLAG_deopt_every_n_times == 0); // Not yet implemented on x64. | 707 ASSERT(FLAG_deopt_every_n_times == 0); // Not yet implemented on x64. |
708 | 708 |
709 if (FLAG_trap_on_deopt) { | 709 if (FLAG_trap_on_deopt && info()->IsOptimizing()) { |
710 Label done; | 710 Label done; |
711 if (cc != no_condition) { | 711 if (cc != no_condition) { |
712 __ j(NegateCondition(cc), &done, Label::kNear); | 712 __ j(NegateCondition(cc), &done, Label::kNear); |
713 } | 713 } |
714 __ int3(); | 714 __ int3(); |
715 __ bind(&done); | 715 __ bind(&done); |
716 } | 716 } |
717 | 717 |
718 ASSERT(info()->IsStub() || frame_is_built_); | 718 ASSERT(info()->IsStub() || frame_is_built_); |
719 bool needs_lazy_deopt = info()->IsStub(); | 719 bool needs_lazy_deopt = info()->IsStub(); |
(...skipping 4884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5604 FixedArray::kHeaderSize - kPointerSize)); | 5604 FixedArray::kHeaderSize - kPointerSize)); |
5605 __ bind(&done); | 5605 __ bind(&done); |
5606 } | 5606 } |
5607 | 5607 |
5608 | 5608 |
5609 #undef __ | 5609 #undef __ |
5610 | 5610 |
5611 } } // namespace v8::internal | 5611 } } // namespace v8::internal |
5612 | 5612 |
5613 #endif // V8_TARGET_ARCH_X64 | 5613 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |