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

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

Issue 385073007: Revert "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/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 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 const Register KeyedStoreIC::NameRegister() { 1032 const Register KeyedStoreIC::NameRegister() {
1033 return StoreIC::NameRegister(); 1033 return StoreIC::NameRegister();
1034 } 1034 }
1035 1035
1036 1036
1037 const Register KeyedStoreIC::ValueRegister() { 1037 const Register KeyedStoreIC::ValueRegister() {
1038 return StoreIC::ValueRegister(); 1038 return StoreIC::ValueRegister();
1039 } 1039 }
1040 1040
1041 1041
1042 const Register KeyedStoreIC::MapRegister() {
1043 return ebx;
1044 }
1045
1046
1047 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { 1042 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) {
1048 // Return address is on the stack. 1043 // Return address is on the stack.
1049 LoadIC_PushArgs(masm); 1044 LoadIC_PushArgs(masm);
1050 1045
1051 // Perform tail call to the entry. 1046 // Perform tail call to the entry.
1052 __ TailCallRuntime(Runtime::kKeyedGetProperty, 2, 1); 1047 __ TailCallRuntime(Runtime::kKeyedGetProperty, 2, 1);
1053 } 1048 }
1054 1049
1055 1050
1056 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) { 1051 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) {
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
1251 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) 1246 Condition cc = (check == ENABLE_INLINED_SMI_CHECK)
1252 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) 1247 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero)
1253 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); 1248 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry);
1254 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1249 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1255 } 1250 }
1256 1251
1257 1252
1258 } } // namespace v8::internal 1253 } } // namespace v8::internal
1259 1254
1260 #endif // V8_TARGET_ARCH_IA32 1255 #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