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

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

Issue 115744: This patch much improves our tracking of whether function is... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 7 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
OLDNEW
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 922 matching lines...) Expand 10 before | Expand all | Expand 10 after
933 return RawCallCodeObject(ic, RelocInfo::CODE_TARGET); 933 return RawCallCodeObject(ic, RelocInfo::CODE_TARGET);
934 } 934 }
935 935
936 936
937 Result VirtualFrame::CallCallIC(RelocInfo::Mode mode, 937 Result VirtualFrame::CallCallIC(RelocInfo::Mode mode,
938 int arg_count, 938 int arg_count,
939 int loop_nesting) { 939 int loop_nesting) {
940 // Arguments, receiver, and function name are on top of the frame. 940 // Arguments, receiver, and function name are on top of the frame.
941 // The IC expects them on the stack. It does not drop the function 941 // The IC expects them on the stack. It does not drop the function
942 // name slot (but it does drop the rest). 942 // name slot (but it does drop the rest).
943 Handle<Code> ic = (loop_nesting > 0) 943 InlineCacheInLoop in_loop = loop_nesting > 0 ? IN_LOOP : NOT_IN_LOOP;
944 ? cgen()->ComputeCallInitializeInLoop(arg_count) 944 Handle<Code> ic = cgen()->ComputeCallInitialize(arg_count, in_loop);
945 : cgen()->ComputeCallInitialize(arg_count);
946 // Spill args, receiver, and function. The call will drop args and 945 // Spill args, receiver, and function. The call will drop args and
947 // receiver. 946 // receiver.
948 PrepareForCall(arg_count + 2, arg_count + 1); 947 PrepareForCall(arg_count + 2, arg_count + 1);
949 return RawCallCodeObject(ic, mode); 948 return RawCallCodeObject(ic, mode);
950 } 949 }
951 950
952 951
953 Result VirtualFrame::CallConstructor(int arg_count) { 952 Result VirtualFrame::CallConstructor(int arg_count) {
954 // Arguments, receiver, and function are on top of the frame. The 953 // Arguments, receiver, and function are on top of the frame. The
955 // IC expects arg count in eax, function in edi, and the arguments 954 // IC expects arg count in eax, function in edi, and the arguments
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
1087 ASSERT(stack_pointer_ == elements_.length() - 1); 1086 ASSERT(stack_pointer_ == elements_.length() - 1);
1088 elements_.Add(FrameElement::MemoryElement()); 1087 elements_.Add(FrameElement::MemoryElement());
1089 stack_pointer_++; 1088 stack_pointer_++;
1090 __ push(immediate); 1089 __ push(immediate);
1091 } 1090 }
1092 1091
1093 1092
1094 #undef __ 1093 #undef __
1095 1094
1096 } } // namespace v8::internal 1095 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698