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

Side by Side Diff: src/virtual-frame-ia32.cc

Issue 42598: The code generator doesn't need to put the argument count in eax for... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 9 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/virtual-frame.cc ('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 2008 the V8 project authors. All rights reserved. 1 // Copyright 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 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 return result; 777 return result;
778 } 778 }
779 779
780 780
781 Result VirtualFrame::CallCodeObject(Handle<Code> code, 781 Result VirtualFrame::CallCodeObject(Handle<Code> code,
782 RelocInfo::Mode rmode, 782 RelocInfo::Mode rmode,
783 Result* arg, 783 Result* arg,
784 int dropped_args) { 784 int dropped_args) {
785 int spilled_args = 0; 785 int spilled_args = 0;
786 switch (code->kind()) { 786 switch (code->kind()) {
787 case Code::CALL_IC:
788 ASSERT(arg->reg().is(eax));
789 spilled_args = dropped_args + 1;
790 break;
791 case Code::LOAD_IC: 787 case Code::LOAD_IC:
792 ASSERT(arg->reg().is(ecx)); 788 ASSERT(arg->reg().is(ecx));
793 ASSERT(dropped_args == 0); 789 ASSERT(dropped_args == 0);
794 spilled_args = 1; 790 spilled_args = 1;
795 break; 791 break;
796 case Code::KEYED_STORE_IC: 792 case Code::KEYED_STORE_IC:
797 ASSERT(arg->reg().is(eax)); 793 ASSERT(arg->reg().is(eax));
798 ASSERT(dropped_args == 0); 794 ASSERT(dropped_args == 0);
799 spilled_args = 2; 795 spilled_args = 2;
800 break; 796 break;
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 ASSERT(stack_pointer_ == elements_.length() - 1); 947 ASSERT(stack_pointer_ == elements_.length() - 1);
952 elements_.Add(FrameElement::MemoryElement()); 948 elements_.Add(FrameElement::MemoryElement());
953 stack_pointer_++; 949 stack_pointer_++;
954 __ push(immediate); 950 __ push(immediate);
955 } 951 }
956 952
957 953
958 #undef __ 954 #undef __
959 955
960 } } // namespace v8::internal 956 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/virtual-frame.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698