| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |