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

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

Issue 18607002: Format stack layout comments for X64 (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 5 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/macro-assembler-x64.h ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 638
639 CEntryStub stub(1); 639 CEntryStub stub(1);
640 CallStub(&stub); 640 CallStub(&stub);
641 } 641 }
642 642
643 643
644 void MacroAssembler::TailCallExternalReference(const ExternalReference& ext, 644 void MacroAssembler::TailCallExternalReference(const ExternalReference& ext,
645 int num_arguments, 645 int num_arguments,
646 int result_size) { 646 int result_size) {
647 // ----------- S t a t e ------------- 647 // ----------- S t a t e -------------
648 // -- rsp[0] : return address 648 // -- rsp[0] : return address
649 // -- rsp[8] : argument num_arguments - 1 649 // -- rsp[8] : argument num_arguments - 1
650 // ... 650 // ...
651 // -- rsp[8 * num_arguments] : argument 0 (receiver) 651 // -- rsp[8 * num_arguments] : argument 0 (receiver)
652 // ----------------------------------- 652 // -----------------------------------
653 653
654 // TODO(1236192): Most runtime routines don't need the number of 654 // TODO(1236192): Most runtime routines don't need the number of
655 // arguments passed in because it is constant. At some point we 655 // arguments passed in because it is constant. At some point we
656 // should remove this need and make the runtime routine entry code 656 // should remove this need and make the runtime routine entry code
657 // smarter. 657 // smarter.
658 Set(rax, num_arguments); 658 Set(rax, num_arguments);
659 JumpToExternalReference(ext, result_size); 659 JumpToExternalReference(ext, result_size);
(...skipping 4067 matching lines...) Expand 10 before | Expand all | Expand 10 after
4727 j(greater, &no_info_available); 4727 j(greater, &no_info_available);
4728 CompareRoot(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), 4728 CompareRoot(MemOperand(scratch_reg, -AllocationSiteInfo::kSize),
4729 Heap::kAllocationSiteInfoMapRootIndex); 4729 Heap::kAllocationSiteInfoMapRootIndex);
4730 bind(&no_info_available); 4730 bind(&no_info_available);
4731 } 4731 }
4732 4732
4733 4733
4734 } } // namespace v8::internal 4734 } } // namespace v8::internal
4735 4735
4736 #endif // V8_TARGET_ARCH_X64 4736 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.h ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698