| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 } | 203 } |
| 204 | 204 |
| 205 info()->set_prologue_offset(masm_->pc_offset()); | 205 info()->set_prologue_offset(masm_->pc_offset()); |
| 206 if (NeedsEagerFrame()) { | 206 if (NeedsEagerFrame()) { |
| 207 ASSERT(!frame_is_built_); | 207 ASSERT(!frame_is_built_); |
| 208 frame_is_built_ = true; | 208 frame_is_built_ = true; |
| 209 __ push(ebp); // Caller's frame pointer. | 209 __ push(ebp); // Caller's frame pointer. |
| 210 __ mov(ebp, esp); | 210 __ mov(ebp, esp); |
| 211 info()->AddNoFrameRange(0, masm_->pc_offset()); | 211 info()->AddNoFrameRange(0, masm_->pc_offset()); |
| 212 __ push(esi); // Callee's context. | 212 __ push(esi); // Callee's context. |
| 213 __ nop(); // Pre-age code. |
| 213 if (info()->IsStub()) { | 214 if (info()->IsStub()) { |
| 214 __ push(Immediate(Smi::FromInt(StackFrame::STUB))); | 215 __ push(Immediate(Smi::FromInt(StackFrame::STUB))); |
| 215 } else { | 216 } else { |
| 216 __ push(edi); // Callee's JS function. | 217 __ push(edi); // Callee's JS function. |
| 217 } | 218 } |
| 218 } | 219 } |
| 219 | 220 |
| 220 if (info()->IsOptimizing() && | 221 if (info()->IsOptimizing() && |
| 221 dynamic_frame_alignment_ && | 222 dynamic_frame_alignment_ && |
| 222 FLAG_debug_code) { | 223 FLAG_debug_code) { |
| (...skipping 6127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6350 FixedArray::kHeaderSize - kPointerSize)); | 6351 FixedArray::kHeaderSize - kPointerSize)); |
| 6351 __ bind(&done); | 6352 __ bind(&done); |
| 6352 } | 6353 } |
| 6353 | 6354 |
| 6354 | 6355 |
| 6355 #undef __ | 6356 #undef __ |
| 6356 | 6357 |
| 6357 } } // namespace v8::internal | 6358 } } // namespace v8::internal |
| 6358 | 6359 |
| 6359 #endif // V8_TARGET_ARCH_IA32 | 6360 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |