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

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

Issue 398053002: Introduce FLAG_vector_ics. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE. 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/full-codegen-x64.cc ('k') | src/x64/lithium-codegen-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 982 matching lines...) Expand 10 before | Expand all | Expand 10 after
993 ExternalReference(IC_Utility(kKeyedLoadIC_Miss), masm->isolate()); 993 ExternalReference(IC_Utility(kKeyedLoadIC_Miss), masm->isolate());
994 __ TailCallExternalReference(ref, 2, 1); 994 __ TailCallExternalReference(ref, 2, 1);
995 } 995 }
996 996
997 997
998 // IC register specifications 998 // IC register specifications
999 const Register LoadIC::ReceiverRegister() { return rdx; } 999 const Register LoadIC::ReceiverRegister() { return rdx; }
1000 const Register LoadIC::NameRegister() { return rcx; } 1000 const Register LoadIC::NameRegister() { return rcx; }
1001 1001
1002 1002
1003 const Register LoadIC::SlotRegister() {
1004 ASSERT(FLAG_vector_ics);
1005 return rax;
1006 }
1007
1008
1009 const Register LoadIC::VectorRegister() {
1010 ASSERT(FLAG_vector_ics);
1011 return rbx;
1012 }
1013
1014
1003 const Register StoreIC::ReceiverRegister() { return rdx; } 1015 const Register StoreIC::ReceiverRegister() { return rdx; }
1004 const Register StoreIC::NameRegister() { return rcx; } 1016 const Register StoreIC::NameRegister() { return rcx; }
1005 const Register StoreIC::ValueRegister() { return rax; } 1017 const Register StoreIC::ValueRegister() { return rax; }
1006 1018
1007 1019
1008 const Register KeyedStoreIC::ReceiverRegister() { 1020 const Register KeyedStoreIC::ReceiverRegister() {
1009 return StoreIC::ReceiverRegister(); 1021 return StoreIC::ReceiverRegister();
1010 } 1022 }
1011 1023
1012 1024
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
1232 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) 1244 Condition cc = (check == ENABLE_INLINED_SMI_CHECK)
1233 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) 1245 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero)
1234 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); 1246 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry);
1235 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1247 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1236 } 1248 }
1237 1249
1238 1250
1239 } } // namespace v8::internal 1251 } } // namespace v8::internal
1240 1252
1241 #endif // V8_TARGET_ARCH_X64 1253 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698