| 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 __ stm(db_w, sp, cp.bit() | fp.bit() | lr.bit()); | 155 __ stm(db_w, sp, cp.bit() | fp.bit() | lr.bit()); |
| 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 __ add(fp, sp, Operand(2 * kPointerSize)); | 158 __ add(fp, sp, Operand(2 * kPointerSize)); |
| 159 } else { | 159 } else { |
| 160 PredictableCodeSizeScope predictible_code_size_scope( | 160 PredictableCodeSizeScope predictible_code_size_scope( |
| 161 masm_, kNoCodeAgeSequenceLength * Assembler::kInstrSize); | 161 masm_, kNoCodeAgeSequenceLength * Assembler::kInstrSize); |
| 162 // The following three instructions must remain together and unmodified | 162 // The following three instructions must remain together and unmodified |
| 163 // for code aging to work properly. | 163 // for code aging to work properly. |
| 164 __ stm(db_w, sp, r1.bit() | cp.bit() | fp.bit() | lr.bit()); | 164 __ stm(db_w, sp, r1.bit() | cp.bit() | fp.bit() | lr.bit()); |
| 165 __ nop(ip.code()); | 165 // Pre-age code objects on low memory devices. |
| 166 __ nop(kPreAgeCodeNopType); |
| 166 // Adjust FP to point to saved FP. | 167 // Adjust FP to point to saved FP. |
| 167 __ add(fp, sp, Operand(2 * kPointerSize)); | 168 __ add(fp, sp, Operand(2 * kPointerSize)); |
| 168 } | 169 } |
| 169 frame_is_built_ = true; | 170 frame_is_built_ = true; |
| 170 info_->AddNoFrameRange(0, masm_->pc_offset()); | 171 info_->AddNoFrameRange(0, masm_->pc_offset()); |
| 171 } | 172 } |
| 172 | 173 |
| 173 // Reserve space for the stack slots needed by the code. | 174 // Reserve space for the stack slots needed by the code. |
| 174 int slots = GetStackSlotCount(); | 175 int slots = GetStackSlotCount(); |
| 175 if (slots > 0) { | 176 if (slots > 0) { |
| (...skipping 5617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5793 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5794 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
| 5794 __ ldr(result, FieldMemOperand(scratch, | 5795 __ ldr(result, FieldMemOperand(scratch, |
| 5795 FixedArray::kHeaderSize - kPointerSize)); | 5796 FixedArray::kHeaderSize - kPointerSize)); |
| 5796 __ bind(&done); | 5797 __ bind(&done); |
| 5797 } | 5798 } |
| 5798 | 5799 |
| 5799 | 5800 |
| 5800 #undef __ | 5801 #undef __ |
| 5801 | 5802 |
| 5802 } } // namespace v8::internal | 5803 } } // namespace v8::internal |
| OLD | NEW |