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 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 if (delta > 0) { | 802 if (delta > 0) { |
803 stack_pointer_ = end; | 803 stack_pointer_ = end; |
804 __ subq(rsp, Immediate(delta * kPointerSize)); | 804 __ subq(rsp, Immediate(delta * kPointerSize)); |
805 } | 805 } |
806 | 806 |
807 for (int i = start; i <= end; i++) { | 807 for (int i = start; i <= end; i++) { |
808 if (!elements_[i].is_synced()) SyncElementBelowStackPointer(i); | 808 if (!elements_[i].is_synced()) SyncElementBelowStackPointer(i); |
809 } | 809 } |
810 } | 810 } |
811 | 811 |
| 812 |
| 813 Result VirtualFrame::InvokeBuiltin(Builtins::JavaScript id, |
| 814 InvokeFlag flag, |
| 815 int arg_count) { |
| 816 PrepareForCall(arg_count, arg_count); |
| 817 ASSERT(cgen()->HasValidEntryRegisters()); |
| 818 __ InvokeBuiltin(id, flag); |
| 819 Result result = cgen()->allocator()->Allocate(rax); |
| 820 ASSERT(result.is_valid()); |
| 821 return result; |
| 822 } |
| 823 |
| 824 |
812 //------------------------------------------------------------------------------ | 825 //------------------------------------------------------------------------------ |
813 // Virtual frame stub and IC calling functions. | 826 // Virtual frame stub and IC calling functions. |
814 | 827 |
815 Result VirtualFrame::RawCallCodeObject(Handle<Code> code, | 828 Result VirtualFrame::RawCallCodeObject(Handle<Code> code, |
816 RelocInfo::Mode rmode) { | 829 RelocInfo::Mode rmode) { |
817 ASSERT(cgen()->HasValidEntryRegisters()); | 830 ASSERT(cgen()->HasValidEntryRegisters()); |
818 __ Call(code, rmode); | 831 __ Call(code, rmode); |
819 Result result = cgen()->allocator()->Allocate(rax); | 832 Result result = cgen()->allocator()->Allocate(rax); |
820 ASSERT(result.is_valid()); | 833 ASSERT(result.is_valid()); |
821 return result; | 834 return result; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
920 | 933 |
921 name.Unuse(); | 934 name.Unuse(); |
922 value.Unuse(); | 935 value.Unuse(); |
923 return RawCallCodeObject(ic, RelocInfo::CODE_TARGET); | 936 return RawCallCodeObject(ic, RelocInfo::CODE_TARGET); |
924 } | 937 } |
925 | 938 |
926 | 939 |
927 #undef __ | 940 #undef __ |
928 | 941 |
929 } } // namespace v8::internal | 942 } } // namespace v8::internal |
OLD | NEW |