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

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

Issue 3008017: Port inline in-object property stores from ia32 to x64. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 5 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/ic-x64.cc ('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 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 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 key->Unuse(); 1143 key->Unuse();
1144 } else if (!cgen()->allocator()->is_used(rdx) || 1144 } else if (!cgen()->allocator()->is_used(rdx) ||
1145 (receiver->is_register() && receiver->reg().is(rdx))) { 1145 (receiver->is_register() && receiver->reg().is(rdx))) {
1146 if (!cgen()->allocator()->is_used(rdx)) { 1146 if (!cgen()->allocator()->is_used(rdx)) {
1147 receiver->ToRegister(rdx); 1147 receiver->ToRegister(rdx);
1148 } 1148 }
1149 MoveResultsToRegisters(key, value, rcx, rax); 1149 MoveResultsToRegisters(key, value, rcx, rax);
1150 receiver->Unuse(); 1150 receiver->Unuse();
1151 } else { 1151 } else {
1152 // Otherwise, no register is free, and no value is in the correct place. 1152 // Otherwise, no register is free, and no value is in the correct place.
1153 // We have one of the two circular permutations of eax, ecx, edx. 1153 // We have one of the two circular permutations of rax, rcx, rdx.
1154 ASSERT(value->is_register()); 1154 ASSERT(value->is_register());
1155 if (value->reg().is(rcx)) { 1155 if (value->reg().is(rcx)) {
1156 __ xchg(rax, rdx); 1156 __ xchg(rax, rdx);
1157 __ xchg(rax, rcx); 1157 __ xchg(rax, rcx);
1158 } else { 1158 } else {
1159 __ xchg(rax, rcx); 1159 __ xchg(rax, rcx);
1160 __ xchg(rax, rdx); 1160 __ xchg(rax, rdx);
1161 } 1161 }
1162 value->Unuse(); 1162 value->Unuse();
1163 key->Unuse(); 1163 key->Unuse();
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
1256 Adjust(kHandlerSize - 1); 1256 Adjust(kHandlerSize - 1);
1257 __ PushTryHandler(IN_JAVASCRIPT, type); 1257 __ PushTryHandler(IN_JAVASCRIPT, type);
1258 } 1258 }
1259 1259
1260 1260
1261 #undef __ 1261 #undef __
1262 1262
1263 } } // namespace v8::internal 1263 } } // namespace v8::internal
1264 1264
1265 #endif // V8_TARGET_ARCH_X64 1265 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/ic-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698