Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 118500: Get rid of the notion of "parameter pointer" that no longer exists in... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/frames-x64.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/x64/frames-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698