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

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

Issue 17615: Experimental: use register allocation in the code for keyed property (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: '' Created 11 years, 11 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
« src/codegen-ia32.cc ('K') | « src/virtual-frame-ia32.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 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 900 matching lines...) Expand 10 before | Expand all | Expand 10 after
911 911
912 void VirtualFrame::InvokeBuiltin(Builtins::JavaScript id, 912 void VirtualFrame::InvokeBuiltin(Builtins::JavaScript id,
913 InvokeFlag flag, 913 InvokeFlag flag,
914 int frame_arg_count) { 914 int frame_arg_count) {
915 ASSERT(cgen_->HasValidEntryRegisters()); 915 ASSERT(cgen_->HasValidEntryRegisters());
916 PrepareForCall(frame_arg_count); 916 PrepareForCall(frame_arg_count);
917 __ InvokeBuiltin(id, flag); 917 __ InvokeBuiltin(id, flag);
918 } 918 }
919 919
920 920
921 void VirtualFrame::CallCodeObject(Handle<Code> code, 921 Result VirtualFrame::CallCodeObject(Handle<Code> code,
922 RelocInfo::Mode rmode, 922 RelocInfo::Mode rmode,
923 int frame_arg_count) { 923 int frame_arg_count) {
924 ASSERT(cgen_->HasValidEntryRegisters()); 924 ASSERT(cgen_->HasValidEntryRegisters());
925 PrepareForCall(frame_arg_count); 925 PrepareForCall(frame_arg_count);
926 __ call(code, rmode); 926 __ call(code, rmode);
927 Result result = cgen_->allocator()->Allocate(eax);
928 ASSERT(result.is_valid());
929 return result;
927 } 930 }
928 931
929 932
930 void VirtualFrame::Drop(int count) { 933 void VirtualFrame::Drop(int count) {
931 ASSERT(height() >= count); 934 ASSERT(height() >= count);
932 int num_virtual_elements = (elements_.length() - 1) - stack_pointer_; 935 int num_virtual_elements = (elements_.length() - 1) - stack_pointer_;
933 936
934 // Emit code to lower the stack pointer if necessary. 937 // Emit code to lower the stack pointer if necessary.
935 if (num_virtual_elements < count) { 938 if (num_virtual_elements < count) {
936 int num_dropped = count - num_virtual_elements; 939 int num_dropped = count - num_virtual_elements;
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 return false; 1062 return false;
1060 } 1063 }
1061 } 1064 }
1062 return true; 1065 return true;
1063 } 1066 }
1064 #endif 1067 #endif
1065 1068
1066 #undef __ 1069 #undef __
1067 1070
1068 } } // namespace v8::internal 1071 } } // namespace v8::internal
OLDNEW
« src/codegen-ia32.cc ('K') | « src/virtual-frame-ia32.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698