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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 ASSERT(info()->IsStub()); | 441 ASSERT(info()->IsStub()); |
442 frame_is_built_ = true; | 442 frame_is_built_ = true; |
443 // Build the frame in such a way that esi isn't trashed. | 443 // Build the frame in such a way that esi isn't trashed. |
444 __ push(ebp); // Caller's frame pointer. | 444 __ push(ebp); // Caller's frame pointer. |
445 __ push(Operand(ebp, StandardFrameConstants::kContextOffset)); | 445 __ push(Operand(ebp, StandardFrameConstants::kContextOffset)); |
446 __ push(Immediate(Smi::FromInt(StackFrame::STUB))); | 446 __ push(Immediate(Smi::FromInt(StackFrame::STUB))); |
447 __ lea(ebp, Operand(esp, 2 * kPointerSize)); | 447 __ lea(ebp, Operand(esp, 2 * kPointerSize)); |
448 Comment(";;; Deferred code"); | 448 Comment(";;; Deferred code"); |
449 } | 449 } |
450 code->Generate(); | 450 code->Generate(); |
451 __ bind(code->done()); | |
452 if (NeedsDeferredFrame()) { | 451 if (NeedsDeferredFrame()) { |
| 452 __ bind(code->done()); |
453 Comment(";;; Destroy frame"); | 453 Comment(";;; Destroy frame"); |
454 ASSERT(frame_is_built_); | 454 ASSERT(frame_is_built_); |
455 frame_is_built_ = false; | 455 frame_is_built_ = false; |
456 __ mov(esp, ebp); | 456 __ mov(esp, ebp); |
457 __ pop(ebp); | 457 __ pop(ebp); |
458 } | 458 } |
459 __ jmp(code->exit()); | 459 __ jmp(code->exit()); |
460 } | 460 } |
461 } | 461 } |
462 | 462 |
(...skipping 5842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6305 FixedArray::kHeaderSize - kPointerSize)); | 6305 FixedArray::kHeaderSize - kPointerSize)); |
6306 __ bind(&done); | 6306 __ bind(&done); |
6307 } | 6307 } |
6308 | 6308 |
6309 | 6309 |
6310 #undef __ | 6310 #undef __ |
6311 | 6311 |
6312 } } // namespace v8::internal | 6312 } } // namespace v8::internal |
6313 | 6313 |
6314 #endif // V8_TARGET_ARCH_IA32 | 6314 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |