| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 movq(rsp, rbp); | 280 movq(rsp, rbp); |
| 281 pop(rbp); | 281 pop(rbp); |
| 282 } | 282 } |
| 283 | 283 |
| 284 | 284 |
| 285 | 285 |
| 286 void MacroAssembler::EnterExitFrame(StackFrame::Type type) { | 286 void MacroAssembler::EnterExitFrame(StackFrame::Type type) { |
| 287 ASSERT(type == StackFrame::EXIT || type == StackFrame::EXIT_DEBUG); | 287 ASSERT(type == StackFrame::EXIT || type == StackFrame::EXIT_DEBUG); |
| 288 | 288 |
| 289 // Setup the frame structure on the stack. | 289 // Setup the frame structure on the stack. |
| 290 ASSERT(ExitFrameConstants::kPPDisplacement == +2 * kPointerSize); | 290 ASSERT(ExitFrameConstants::kCallerSPDisplacement == +2 * kPointerSize); |
| 291 ASSERT(ExitFrameConstants::kCallerPCOffset == +1 * kPointerSize); | 291 ASSERT(ExitFrameConstants::kCallerPCOffset == +1 * kPointerSize); |
| 292 ASSERT(ExitFrameConstants::kCallerFPOffset == 0 * kPointerSize); | 292 ASSERT(ExitFrameConstants::kCallerFPOffset == 0 * kPointerSize); |
| 293 push(rbp); | 293 push(rbp); |
| 294 movq(rbp, rsp); | 294 movq(rbp, rsp); |
| 295 | 295 |
| 296 // Reserve room for entry stack pointer and push the debug marker. | 296 // Reserve room for entry stack pointer and push the debug marker. |
| 297 ASSERT(ExitFrameConstants::kSPOffset == -1 * kPointerSize); | 297 ASSERT(ExitFrameConstants::kSPOffset == -1 * kPointerSize); |
| 298 push(Immediate(0)); // saved entry sp, patched before call | 298 push(Immediate(0)); // saved entry sp, patched before call |
| 299 push(Immediate(type == StackFrame::EXIT_DEBUG ? 1 : 0)); | 299 push(Immediate(type == StackFrame::EXIT_DEBUG ? 1 : 0)); |
| 300 | 300 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 push(rcx); | 376 push(rcx); |
| 377 | 377 |
| 378 // Clear the top frame. | 378 // Clear the top frame. |
| 379 ExternalReference c_entry_fp_address(Top::k_c_entry_fp_address); | 379 ExternalReference c_entry_fp_address(Top::k_c_entry_fp_address); |
| 380 movq(kScratchRegister, c_entry_fp_address); | 380 movq(kScratchRegister, c_entry_fp_address); |
| 381 movq(Operand(kScratchRegister, 0), Immediate(0)); | 381 movq(Operand(kScratchRegister, 0), Immediate(0)); |
| 382 } | 382 } |
| 383 | 383 |
| 384 | 384 |
| 385 } } // namespace v8::internal | 385 } } // namespace v8::internal |
| OLD | NEW |