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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 __ push(rsi); // Callee's context. |
| 170 __ nop(); // Pre-age code. |
170 if (info()->IsStub()) { | 171 if (info()->IsStub()) { |
171 __ Push(Smi::FromInt(StackFrame::STUB)); | 172 __ Push(Smi::FromInt(StackFrame::STUB)); |
172 } else { | 173 } else { |
173 __ push(rdi); // Callee's JS function. | 174 __ push(rdi); // Callee's JS function. |
174 } | 175 } |
175 info()->AddNoFrameRange(0, masm_->pc_offset()); | 176 info()->AddNoFrameRange(0, masm_->pc_offset()); |
176 } | 177 } |
177 | 178 |
178 // Reserve space for the stack slots needed by the code. | 179 // Reserve space for the stack slots needed by the code. |
179 int slots = GetStackSlotCount(); | 180 int slots = GetStackSlotCount(); |
(...skipping 5339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5519 FixedArray::kHeaderSize - kPointerSize)); | 5520 FixedArray::kHeaderSize - kPointerSize)); |
5520 __ bind(&done); | 5521 __ bind(&done); |
5521 } | 5522 } |
5522 | 5523 |
5523 | 5524 |
5524 #undef __ | 5525 #undef __ |
5525 | 5526 |
5526 } } // namespace v8::internal | 5527 } } // namespace v8::internal |
5527 | 5528 |
5528 #endif // V8_TARGET_ARCH_X64 | 5529 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |