| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 Check(equal, "stack frame types must match"); | 351 Check(equal, "stack frame types must match"); |
| 352 } | 352 } |
| 353 leave(); | 353 leave(); |
| 354 } | 354 } |
| 355 | 355 |
| 356 | 356 |
| 357 void MacroAssembler::EnterExitFrame(StackFrame::Type type) { | 357 void MacroAssembler::EnterExitFrame(StackFrame::Type type) { |
| 358 ASSERT(type == StackFrame::EXIT || type == StackFrame::EXIT_DEBUG); | 358 ASSERT(type == StackFrame::EXIT || type == StackFrame::EXIT_DEBUG); |
| 359 | 359 |
| 360 // Setup the frame structure on the stack. | 360 // Setup the frame structure on the stack. |
| 361 ASSERT(ExitFrameConstants::kPPDisplacement == +2 * kPointerSize); | 361 ASSERT(ExitFrameConstants::kCallerSPDisplacement == +2 * kPointerSize); |
| 362 ASSERT(ExitFrameConstants::kCallerPCOffset == +1 * kPointerSize); | 362 ASSERT(ExitFrameConstants::kCallerPCOffset == +1 * kPointerSize); |
| 363 ASSERT(ExitFrameConstants::kCallerFPOffset == 0 * kPointerSize); | 363 ASSERT(ExitFrameConstants::kCallerFPOffset == 0 * kPointerSize); |
| 364 push(ebp); | 364 push(ebp); |
| 365 mov(ebp, Operand(esp)); | 365 mov(ebp, Operand(esp)); |
| 366 | 366 |
| 367 // Reserve room for entry stack pointer and push the debug marker. | 367 // Reserve room for entry stack pointer and push the debug marker. |
| 368 ASSERT(ExitFrameConstants::kSPOffset == -1 * kPointerSize); | 368 ASSERT(ExitFrameConstants::kSPOffset == -1 * kPointerSize); |
| 369 push(Immediate(0)); // saved entry sp, patched before call | 369 push(Immediate(0)); // saved entry sp, patched before call |
| 370 push(Immediate(type == StackFrame::EXIT_DEBUG ? 1 : 0)); | 370 push(Immediate(type == StackFrame::EXIT_DEBUG ? 1 : 0)); |
| 371 | 371 |
| (...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1039 // Indicate that code has changed. | 1039 // Indicate that code has changed. |
| 1040 CPU::FlushICache(address_, size_); | 1040 CPU::FlushICache(address_, size_); |
| 1041 | 1041 |
| 1042 // Check that the code was patched as expected. | 1042 // Check that the code was patched as expected. |
| 1043 ASSERT(masm_.pc_ == address_ + size_); | 1043 ASSERT(masm_.pc_ == address_ + size_); |
| 1044 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); | 1044 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); |
| 1045 } | 1045 } |
| 1046 | 1046 |
| 1047 | 1047 |
| 1048 } } // namespace v8::internal | 1048 } } // namespace v8::internal |
| OLD | NEW |