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

Unified Diff: src/virtual-frame.cc

Issue 42638: In the IA32 code genrator, handle call ICs and constructor calls the... (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/codegen-ia32.cc ('k') | src/virtual-frame-arm.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/virtual-frame.cc
===================================================================
--- src/virtual-frame.cc (revision 1615)
+++ src/virtual-frame.cc (working copy)
@@ -418,61 +418,30 @@
}
-Result VirtualFrame::CallStub(CodeStub* stub, int frame_arg_count) {
- PrepareForCall(frame_arg_count, frame_arg_count);
- return RawCallStub(stub, frame_arg_count);
+Result VirtualFrame::CallStub(CodeStub* stub, int arg_count) {
+ PrepareForCall(arg_count, arg_count);
+ return RawCallStub(stub);
}
-Result VirtualFrame::CallStub(CodeStub* stub,
- Result* arg,
- int frame_arg_count) {
- PrepareForCall(frame_arg_count, frame_arg_count);
+Result VirtualFrame::CallStub(CodeStub* stub, Result* arg, int arg_count) {
+ PrepareForCall(arg_count, arg_count);
arg->Unuse();
- return RawCallStub(stub, frame_arg_count);
+ return RawCallStub(stub);
}
Result VirtualFrame::CallStub(CodeStub* stub,
Result* arg0,
Result* arg1,
- int frame_arg_count) {
- PrepareForCall(frame_arg_count, frame_arg_count);
+ int arg_count) {
+ PrepareForCall(arg_count, arg_count);
arg0->Unuse();
arg1->Unuse();
- return RawCallStub(stub, frame_arg_count);
+ return RawCallStub(stub);
}
-Result VirtualFrame::CallCodeObject(Handle<Code> code,
- RelocInfo::Mode rmode,
- int dropped_args) {
- int spilled_args = 0;
- switch (code->kind()) {
- case Code::CALL_IC:
- spilled_args = dropped_args + 1;
- break;
- case Code::FUNCTION:
- spilled_args = dropped_args + 1;
- break;
-#ifdef ARM
- case Code::KEYED_LOAD_IC:
- ASSERT(dropped_args == 0);
- spilled_args = 2;
- break;
-#endif
- default:
- // The other types of code objects are called with values
- // in specific registers, and are handled in functions with
- // a different signature.
- UNREACHABLE();
- break;
- }
- PrepareForCall(spilled_args, dropped_args);
- return RawCallCodeObject(code, rmode);
-}
-
-
void VirtualFrame::Push(Register reg) {
if (is_used(reg)) {
elements_.Add(CopyElementAt(register_index(reg)));
« no previous file with comments | « src/codegen-ia32.cc ('k') | src/virtual-frame-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698