OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
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 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 LOperand* context) { | 737 LOperand* context) { |
738 LoadContextFromDeferred(context); | 738 LoadContextFromDeferred(context); |
739 __ CallRuntimeSaveDoubles(id); | 739 __ CallRuntimeSaveDoubles(id); |
740 RecordSafepointWithRegisters( | 740 RecordSafepointWithRegisters( |
741 instr->pointer_map(), argc, Safepoint::kNoLazyDeopt); | 741 instr->pointer_map(), argc, Safepoint::kNoLazyDeopt); |
742 } | 742 } |
743 | 743 |
744 | 744 |
745 void LCodeGen::RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 745 void LCodeGen::RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
746 Safepoint::DeoptMode mode) { | 746 Safepoint::DeoptMode mode) { |
| 747 environment->set_has_been_used(); |
747 if (!environment->HasBeenRegistered()) { | 748 if (!environment->HasBeenRegistered()) { |
748 // Physical stack frame layout: | 749 // Physical stack frame layout: |
749 // -x ............. -4 0 ..................................... y | 750 // -x ............. -4 0 ..................................... y |
750 // [incoming arguments] [spill slots] [pushed outgoing arguments] | 751 // [incoming arguments] [spill slots] [pushed outgoing arguments] |
751 | 752 |
752 // Layout of the environment: | 753 // Layout of the environment: |
753 // 0 ..................................................... size-1 | 754 // 0 ..................................................... size-1 |
754 // [parameters] [locals] [expression stack including arguments] | 755 // [parameters] [locals] [expression stack including arguments] |
755 | 756 |
756 // Layout of the translation: | 757 // Layout of the translation: |
(...skipping 5142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5899 __ lw(result, FieldMemOperand(scratch, | 5900 __ lw(result, FieldMemOperand(scratch, |
5900 FixedArray::kHeaderSize - kPointerSize)); | 5901 FixedArray::kHeaderSize - kPointerSize)); |
5901 __ bind(deferred->exit()); | 5902 __ bind(deferred->exit()); |
5902 __ bind(&done); | 5903 __ bind(&done); |
5903 } | 5904 } |
5904 | 5905 |
5905 | 5906 |
5906 #undef __ | 5907 #undef __ |
5907 | 5908 |
5908 } } // namespace v8::internal | 5909 } } // namespace v8::internal |
OLD | NEW |