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

Side by Side Diff: src/x64/ic-x64.cc

Issue 390013002: Use the same registers for StoreIC and KeyedStoreIC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/code-stubs-x64.cc ('k') | src/x64/stub-cache-x64.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/ic-inl.h" 10 #include "src/ic-inl.h"
(...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after
1060 const Register KeyedStoreIC::NameRegister() { 1060 const Register KeyedStoreIC::NameRegister() {
1061 return StoreIC::NameRegister(); 1061 return StoreIC::NameRegister();
1062 } 1062 }
1063 1063
1064 1064
1065 const Register KeyedStoreIC::ValueRegister() { 1065 const Register KeyedStoreIC::ValueRegister() {
1066 return StoreIC::ValueRegister(); 1066 return StoreIC::ValueRegister();
1067 } 1067 }
1068 1068
1069 1069
1070 const Register KeyedStoreIC::MapRegister() {
1071 return rbx;
1072 }
1073
1074
1070 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { 1075 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) {
1071 // The return address is on the stack. 1076 // The return address is on the stack.
1072 1077
1073 __ PopReturnAddressTo(KeyedLoadIC_TempRegister()); 1078 __ PopReturnAddressTo(KeyedLoadIC_TempRegister());
1074 __ Push(ReceiverRegister()); // receiver 1079 __ Push(ReceiverRegister()); // receiver
1075 __ Push(NameRegister()); // name 1080 __ Push(NameRegister()); // name
1076 __ PushReturnAddressFrom(KeyedLoadIC_TempRegister()); 1081 __ PushReturnAddressFrom(KeyedLoadIC_TempRegister());
1077 1082
1078 // Perform tail call to the entry. 1083 // Perform tail call to the entry.
1079 __ TailCallRuntime(Runtime::kKeyedGetProperty, 2, 1); 1084 __ TailCallRuntime(Runtime::kKeyedGetProperty, 2, 1);
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) 1279 Condition cc = (check == ENABLE_INLINED_SMI_CHECK)
1275 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) 1280 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero)
1276 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); 1281 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry);
1277 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1282 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1278 } 1283 }
1279 1284
1280 1285
1281 } } // namespace v8::internal 1286 } } // namespace v8::internal
1282 1287
1283 #endif // V8_TARGET_ARCH_X64 1288 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698