| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 __ j(not_zero, &align_loop, Label::kNear); | 181 __ j(not_zero, &align_loop, Label::kNear); |
| 182 __ mov(Operand(ebx, 0), Immediate(kAlignmentZapValue)); | 182 __ mov(Operand(ebx, 0), Immediate(kAlignmentZapValue)); |
| 183 __ bind(&do_not_pad); | 183 __ bind(&do_not_pad); |
| 184 } | 184 } |
| 185 } | 185 } |
| 186 | 186 |
| 187 info()->set_prologue_offset(masm_->pc_offset()); | 187 info()->set_prologue_offset(masm_->pc_offset()); |
| 188 if (NeedsEagerFrame()) { | 188 if (NeedsEagerFrame()) { |
| 189 ASSERT(!frame_is_built_); | 189 ASSERT(!frame_is_built_); |
| 190 frame_is_built_ = true; | 190 frame_is_built_ = true; |
| 191 __ push(ebp); // Caller's frame pointer. | 191 __ Prologue(info()->IsStub()); |
| 192 __ mov(ebp, esp); | |
| 193 info()->AddNoFrameRange(0, masm_->pc_offset()); | 192 info()->AddNoFrameRange(0, masm_->pc_offset()); |
| 194 __ push(esi); // Callee's context. | |
| 195 if (info()->IsStub()) { | |
| 196 __ push(Immediate(Smi::FromInt(StackFrame::STUB))); | |
| 197 } else { | |
| 198 __ push(edi); // Callee's JS function. | |
| 199 } | |
| 200 } | 193 } |
| 201 | 194 |
| 202 if (info()->IsOptimizing() && | 195 if (info()->IsOptimizing() && |
| 203 dynamic_frame_alignment_ && | 196 dynamic_frame_alignment_ && |
| 204 FLAG_debug_code) { | 197 FLAG_debug_code) { |
| 205 __ test(esp, Immediate(kPointerSize)); | 198 __ test(esp, Immediate(kPointerSize)); |
| 206 __ Assert(zero, kFrameIsExpectedToBeAligned); | 199 __ Assert(zero, kFrameIsExpectedToBeAligned); |
| 207 } | 200 } |
| 208 | 201 |
| 209 // Reserve space for the stack slots needed by the code. | 202 // Reserve space for the stack slots needed by the code. |
| (...skipping 6184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6394 FixedArray::kHeaderSize - kPointerSize)); | 6387 FixedArray::kHeaderSize - kPointerSize)); |
| 6395 __ bind(&done); | 6388 __ bind(&done); |
| 6396 } | 6389 } |
| 6397 | 6390 |
| 6398 | 6391 |
| 6399 #undef __ | 6392 #undef __ |
| 6400 | 6393 |
| 6401 } } // namespace v8::internal | 6394 } } // namespace v8::internal |
| 6402 | 6395 |
| 6403 #endif // V8_TARGET_ARCH_IA32 | 6396 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |