| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 __ Push(ra, fp, cp); | 155 __ Push(ra, fp, cp); |
| 156 __ Push(Smi::FromInt(StackFrame::STUB)); | 156 __ Push(Smi::FromInt(StackFrame::STUB)); |
| 157 // Adjust FP to point to saved FP. | 157 // Adjust FP to point to saved FP. |
| 158 __ Addu(fp, sp, Operand(2 * kPointerSize)); | 158 __ Addu(fp, sp, Operand(2 * kPointerSize)); |
| 159 } else { | 159 } else { |
| 160 // The following three instructions must remain together and unmodified | 160 // The following three instructions must remain together and unmodified |
| 161 // for code aging to work properly. | 161 // for code aging to work properly. |
| 162 __ Push(ra, fp, cp, a1); | 162 __ Push(ra, fp, cp, a1); |
| 163 // Add unused nop to ensure prologue sequence is identical for | 163 // Add unused nop to ensure prologue sequence is identical for |
| 164 // full-codegen and lithium-codegen. | 164 // full-codegen and lithium-codegen. |
| 165 __ nop(Assembler::CODE_AGE_SEQUENCE_NOP); | 165 __ nop(Assembler::CODE_AGE_PRE_AGED_SEQUENCE_NOP); |
| 166 // Adj. FP to point to saved FP. | 166 // Adj. FP to point to saved FP. |
| 167 __ Addu(fp, sp, Operand(2 * kPointerSize)); | 167 __ Addu(fp, sp, Operand(2 * kPointerSize)); |
| 168 } | 168 } |
| 169 frame_is_built_ = true; | 169 frame_is_built_ = true; |
| 170 info_->AddNoFrameRange(0, masm_->pc_offset()); | 170 info_->AddNoFrameRange(0, masm_->pc_offset()); |
| 171 } | 171 } |
| 172 | 172 |
| 173 // Reserve space for the stack slots needed by the code. | 173 // Reserve space for the stack slots needed by the code. |
| 174 int slots = GetStackSlotCount(); | 174 int slots = GetStackSlotCount(); |
| 175 if (slots > 0) { | 175 if (slots > 0) { |
| (...skipping 5612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5788 __ Subu(scratch, result, scratch); | 5788 __ Subu(scratch, result, scratch); |
| 5789 __ lw(result, FieldMemOperand(scratch, | 5789 __ lw(result, FieldMemOperand(scratch, |
| 5790 FixedArray::kHeaderSize - kPointerSize)); | 5790 FixedArray::kHeaderSize - kPointerSize)); |
| 5791 __ bind(&done); | 5791 __ bind(&done); |
| 5792 } | 5792 } |
| 5793 | 5793 |
| 5794 | 5794 |
| 5795 #undef __ | 5795 #undef __ |
| 5796 | 5796 |
| 5797 } } // namespace v8::internal | 5797 } } // namespace v8::internal |
| OLD | NEW |