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

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

Issue 2330003: Change the interface of LoadIC on the x64 platform to take its arguments in r... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 6 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
« no previous file with comments | « src/x64/stub-cache-x64.cc ('k') | test/mjsunit/delete.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after
1065 } else { 1065 } else {
1066 b->ToRegister(b_reg); 1066 b->ToRegister(b_reg);
1067 a->ToRegister(a_reg); 1067 a->ToRegister(a_reg);
1068 } 1068 }
1069 a->Unuse(); 1069 a->Unuse();
1070 b->Unuse(); 1070 b->Unuse();
1071 } 1071 }
1072 1072
1073 1073
1074 Result VirtualFrame::CallLoadIC(RelocInfo::Mode mode) { 1074 Result VirtualFrame::CallLoadIC(RelocInfo::Mode mode) {
1075 // Name and receiver are on the top of the frame. The IC expects 1075 // Name and receiver are on the top of the frame. Both are dropped.
1076 // name in rcx and receiver on the stack. It does not drop the 1076 // The IC expects name in rcx and receiver in rax.
1077 // receiver.
1078 Handle<Code> ic(Builtins::builtin(Builtins::LoadIC_Initialize)); 1077 Handle<Code> ic(Builtins::builtin(Builtins::LoadIC_Initialize));
1079 Result name = Pop(); 1078 Result name = Pop();
1080 PrepareForCall(1, 0); // One stack arg, not callee-dropped. 1079 Result receiver = Pop();
1081 name.ToRegister(rcx); 1080 PrepareForCall(0, 0); // One stack arg, not callee-dropped.
1082 name.Unuse(); 1081 MoveResultsToRegisters(&name, &receiver, rcx, rax);
1082
1083 return RawCallCodeObject(ic, mode); 1083 return RawCallCodeObject(ic, mode);
1084 } 1084 }
1085 1085
1086 1086
1087 Result VirtualFrame::CallKeyedLoadIC(RelocInfo::Mode mode) { 1087 Result VirtualFrame::CallKeyedLoadIC(RelocInfo::Mode mode) {
1088 // Key and receiver are on top of the frame. The IC expects them on 1088 // Key and receiver are on top of the frame. The IC expects them on
1089 // the stack. It does not drop them. 1089 // the stack. It does not drop them.
1090 Handle<Code> ic(Builtins::builtin(Builtins::KeyedLoadIC_Initialize)); 1090 Handle<Code> ic(Builtins::builtin(Builtins::KeyedLoadIC_Initialize));
1091 PrepareForCall(2, 0); // Two stack args, neither callee-dropped. 1091 PrepareForCall(2, 0); // Two stack args, neither callee-dropped.
1092 return RawCallCodeObject(ic, mode); 1092 return RawCallCodeObject(ic, mode);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
1192 Adjust(kHandlerSize - 1); 1192 Adjust(kHandlerSize - 1);
1193 __ PushTryHandler(IN_JAVASCRIPT, type); 1193 __ PushTryHandler(IN_JAVASCRIPT, type);
1194 } 1194 }
1195 1195
1196 1196
1197 #undef __ 1197 #undef __
1198 1198
1199 } } // namespace v8::internal 1199 } } // namespace v8::internal
1200 1200
1201 #endif // V8_TARGET_ARCH_X64 1201 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/stub-cache-x64.cc ('k') | test/mjsunit/delete.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698