OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 __ bind(&ok); | 159 __ bind(&ok); |
160 } | 160 } |
161 } | 161 } |
162 | 162 |
163 info()->set_prologue_offset(masm_->pc_offset()); | 163 info()->set_prologue_offset(masm_->pc_offset()); |
164 if (NeedsEagerFrame()) { | 164 if (NeedsEagerFrame()) { |
165 ASSERT(!frame_is_built_); | 165 ASSERT(!frame_is_built_); |
166 frame_is_built_ = true; | 166 frame_is_built_ = true; |
167 __ push(rbp); // Caller's frame pointer. | 167 __ push(rbp); // Caller's frame pointer. |
168 __ movq(rbp, rsp); | 168 __ movq(rbp, rsp); |
169 __ push(rsi); // Callee's context. | 169 if (isolate()->is_memory_constrained()) { |
| 170 // This sequence marks pre-aged code. |
| 171 __ push(rsi); // Callee's context. |
| 172 __ nop(); |
| 173 } else { |
| 174 // This sequence marks non-aged code. |
| 175 __ nop(); |
| 176 __ push(rsi); // Callee's context |
| 177 } |
170 if (info()->IsStub()) { | 178 if (info()->IsStub()) { |
171 __ Push(Smi::FromInt(StackFrame::STUB)); | 179 __ Push(Smi::FromInt(StackFrame::STUB)); |
172 } else { | 180 } else { |
173 __ push(rdi); // Callee's JS function. | 181 __ push(rdi); // Callee's JS function. |
174 } | 182 } |
175 info()->AddNoFrameRange(0, masm_->pc_offset()); | 183 info()->AddNoFrameRange(0, masm_->pc_offset()); |
176 } | 184 } |
177 | 185 |
178 // Reserve space for the stack slots needed by the code. | 186 // Reserve space for the stack slots needed by the code. |
179 int slots = GetStackSlotCount(); | 187 int slots = GetStackSlotCount(); |
(...skipping 5339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5519 FixedArray::kHeaderSize - kPointerSize)); | 5527 FixedArray::kHeaderSize - kPointerSize)); |
5520 __ bind(&done); | 5528 __ bind(&done); |
5521 } | 5529 } |
5522 | 5530 |
5523 | 5531 |
5524 #undef __ | 5532 #undef __ |
5525 | 5533 |
5526 } } // namespace v8::internal | 5534 } } // namespace v8::internal |
5527 | 5535 |
5528 #endif // V8_TARGET_ARCH_X64 | 5536 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |