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

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

Issue 385553004: Use the same registers for StoreIC and KeyedStoreIC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Patch One. 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/ia32/code-stubs-ia32.cc ('k') | src/ia32/stub-cache-ia32.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_IA32 7 #if V8_TARGET_ARCH_IA32
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 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after
1034 const Register KeyedStoreIC::NameRegister() { 1034 const Register KeyedStoreIC::NameRegister() {
1035 return StoreIC::NameRegister(); 1035 return StoreIC::NameRegister();
1036 } 1036 }
1037 1037
1038 1038
1039 const Register KeyedStoreIC::ValueRegister() { 1039 const Register KeyedStoreIC::ValueRegister() {
1040 return StoreIC::ValueRegister(); 1040 return StoreIC::ValueRegister();
1041 } 1041 }
1042 1042
1043 1043
1044 const Register KeyedStoreIC::MapRegister() {
1045 return ebx;
1046 }
1047
1048
1044 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { 1049 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) {
1045 // Return address is on the stack. 1050 // Return address is on the stack.
1046 LoadIC_PushArgs(masm); 1051 LoadIC_PushArgs(masm);
1047 1052
1048 // Perform tail call to the entry. 1053 // Perform tail call to the entry.
1049 __ TailCallRuntime(Runtime::kKeyedGetProperty, 2, 1); 1054 __ TailCallRuntime(Runtime::kKeyedGetProperty, 2, 1);
1050 } 1055 }
1051 1056
1052 1057
1053 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) { 1058 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) {
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) 1253 Condition cc = (check == ENABLE_INLINED_SMI_CHECK)
1249 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) 1254 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero)
1250 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); 1255 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry);
1251 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1256 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1252 } 1257 }
1253 1258
1254 1259
1255 } } // namespace v8::internal 1260 } } // namespace v8::internal
1256 1261
1257 #endif // V8_TARGET_ARCH_IA32 1262 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698