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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 if (NeedsEagerFrame()) { | 152 if (NeedsEagerFrame()) { |
153 if (info()->IsStub()) { | 153 if (info()->IsStub()) { |
154 __ Push(ra, fp, cp); | 154 __ Push(ra, fp, cp); |
155 __ Push(Smi::FromInt(StackFrame::STUB)); | 155 __ Push(Smi::FromInt(StackFrame::STUB)); |
156 // Adjust FP to point to saved FP. | 156 // Adjust FP to point to saved FP. |
157 __ Addu(fp, sp, Operand(2 * kPointerSize)); | 157 __ Addu(fp, sp, Operand(2 * kPointerSize)); |
158 } else { | 158 } else { |
159 // The following three instructions must remain together and unmodified | 159 // The following three instructions must remain together and unmodified |
160 // for code aging to work properly. | 160 // for code aging to work properly. |
161 __ Push(ra, fp, cp, a1); | 161 __ Push(ra, fp, cp, a1); |
162 // Add unused load of ip to ensure prologue sequence is identical for | 162 // Add unused nop to ensure prologue sequence is identical for |
163 // full-codegen and lithium-codegen. | 163 // full-codegen and lithium-codegen. |
164 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); | 164 __ nop(Assembler::CODE_AGE_SEQUENCE_NOP); |
165 // Adj. FP to point to saved FP. | 165 // Adj. FP to point to saved FP. |
166 __ Addu(fp, sp, Operand(2 * kPointerSize)); | 166 __ Addu(fp, sp, Operand(2 * kPointerSize)); |
167 } | 167 } |
168 frame_is_built_ = true; | 168 frame_is_built_ = true; |
169 info_->AddNoFrameRange(0, masm_->pc_offset()); | 169 info_->AddNoFrameRange(0, masm_->pc_offset()); |
170 } | 170 } |
171 | 171 |
172 // Reserve space for the stack slots needed by the code. | 172 // Reserve space for the stack slots needed by the code. |
173 int slots = GetStackSlotCount(); | 173 int slots = GetStackSlotCount(); |
174 if (slots > 0) { | 174 if (slots > 0) { |
(...skipping 5632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5807 __ Subu(scratch, result, scratch); | 5807 __ Subu(scratch, result, scratch); |
5808 __ lw(result, FieldMemOperand(scratch, | 5808 __ lw(result, FieldMemOperand(scratch, |
5809 FixedArray::kHeaderSize - kPointerSize)); | 5809 FixedArray::kHeaderSize - kPointerSize)); |
5810 __ bind(&done); | 5810 __ bind(&done); |
5811 } | 5811 } |
5812 | 5812 |
5813 | 5813 |
5814 #undef __ | 5814 #undef __ |
5815 | 5815 |
5816 } } // namespace v8::internal | 5816 } } // namespace v8::internal |
OLD | NEW |