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 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 LoadContextFromDeferred(context); | 680 LoadContextFromDeferred(context); |
681 | 681 |
682 __ CallRuntimeSaveDoubles(id); | 682 __ CallRuntimeSaveDoubles(id); |
683 RecordSafepointWithRegisters( | 683 RecordSafepointWithRegisters( |
684 instr->pointer_map(), argc, Safepoint::kNoLazyDeopt); | 684 instr->pointer_map(), argc, Safepoint::kNoLazyDeopt); |
685 } | 685 } |
686 | 686 |
687 | 687 |
688 void LCodeGen::RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 688 void LCodeGen::RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
689 Safepoint::DeoptMode mode) { | 689 Safepoint::DeoptMode mode) { |
| 690 environment->set_has_been_used(); |
690 if (!environment->HasBeenRegistered()) { | 691 if (!environment->HasBeenRegistered()) { |
691 // Physical stack frame layout: | 692 // Physical stack frame layout: |
692 // -x ............. -4 0 ..................................... y | 693 // -x ............. -4 0 ..................................... y |
693 // [incoming arguments] [spill slots] [pushed outgoing arguments] | 694 // [incoming arguments] [spill slots] [pushed outgoing arguments] |
694 | 695 |
695 // Layout of the environment: | 696 // Layout of the environment: |
696 // 0 ..................................................... size-1 | 697 // 0 ..................................................... size-1 |
697 // [parameters] [locals] [expression stack including arguments] | 698 // [parameters] [locals] [expression stack including arguments] |
698 | 699 |
699 // Layout of the translation: | 700 // Layout of the translation: |
(...skipping 4980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5680 __ bind(deferred->exit()); | 5681 __ bind(deferred->exit()); |
5681 __ bind(&done); | 5682 __ bind(&done); |
5682 } | 5683 } |
5683 | 5684 |
5684 | 5685 |
5685 #undef __ | 5686 #undef __ |
5686 | 5687 |
5687 } } // namespace v8::internal | 5688 } } // namespace v8::internal |
5688 | 5689 |
5689 #endif // V8_TARGET_ARCH_X64 | 5690 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |