| 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 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 LOperand* context) { | 776 LOperand* context) { |
| 777 LoadContextFromDeferred(context); | 777 LoadContextFromDeferred(context); |
| 778 __ CallRuntimeSaveDoubles(id); | 778 __ CallRuntimeSaveDoubles(id); |
| 779 RecordSafepointWithRegisters( | 779 RecordSafepointWithRegisters( |
| 780 instr->pointer_map(), argc, Safepoint::kNoLazyDeopt); | 780 instr->pointer_map(), argc, Safepoint::kNoLazyDeopt); |
| 781 } | 781 } |
| 782 | 782 |
| 783 | 783 |
| 784 void LCodeGen::RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 784 void LCodeGen::RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
| 785 Safepoint::DeoptMode mode) { | 785 Safepoint::DeoptMode mode) { |
| 786 environment->set_has_been_used(); |
| 786 if (!environment->HasBeenRegistered()) { | 787 if (!environment->HasBeenRegistered()) { |
| 787 // Physical stack frame layout: | 788 // Physical stack frame layout: |
| 788 // -x ............. -4 0 ..................................... y | 789 // -x ............. -4 0 ..................................... y |
| 789 // [incoming arguments] [spill slots] [pushed outgoing arguments] | 790 // [incoming arguments] [spill slots] [pushed outgoing arguments] |
| 790 | 791 |
| 791 // Layout of the environment: | 792 // Layout of the environment: |
| 792 // 0 ..................................................... size-1 | 793 // 0 ..................................................... size-1 |
| 793 // [parameters] [locals] [expression stack including arguments] | 794 // [parameters] [locals] [expression stack including arguments] |
| 794 | 795 |
| 795 // Layout of the translation: | 796 // Layout of the translation: |
| (...skipping 5047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5843 __ ldr(result, FieldMemOperand(scratch, | 5844 __ ldr(result, FieldMemOperand(scratch, |
| 5844 FixedArray::kHeaderSize - kPointerSize)); | 5845 FixedArray::kHeaderSize - kPointerSize)); |
| 5845 __ bind(deferred->exit()); | 5846 __ bind(deferred->exit()); |
| 5846 __ bind(&done); | 5847 __ bind(&done); |
| 5847 } | 5848 } |
| 5848 | 5849 |
| 5849 | 5850 |
| 5850 #undef __ | 5851 #undef __ |
| 5851 | 5852 |
| 5852 } } // namespace v8::internal | 5853 } } // namespace v8::internal |
| OLD | NEW |