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

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

Issue 486213003: Move register conventions out of the IC classes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE. Created 6 years, 3 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/ic/arm64/ic-conventions-arm64.cc ('k') | src/ic/ia32/handler-compiler-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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/ic/access-compiler.h" 9 #include "src/ic/access-compiler.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 13
14 #define __ ACCESS_MASM(masm) 14 #define __ ACCESS_MASM(masm)
15 15
16 void PropertyAccessCompiler::GenerateTailCall(MacroAssembler* masm, 16 void PropertyAccessCompiler::GenerateTailCall(MacroAssembler* masm,
17 Handle<Code> code) { 17 Handle<Code> code) {
18 __ jmp(code, RelocInfo::CODE_TARGET); 18 __ jmp(code, RelocInfo::CODE_TARGET);
19 } 19 }
20 20
21 21
22 Register* PropertyAccessCompiler::load_calling_convention() { 22 Register* PropertyAccessCompiler::load_calling_convention() {
23 // receiver, name, scratch1, scratch2, scratch3, scratch4. 23 // receiver, name, scratch1, scratch2, scratch3, scratch4.
24 Register receiver = LoadIC::ReceiverRegister(); 24 Register receiver = LoadConvention::ReceiverRegister();
25 Register name = LoadIC::NameRegister(); 25 Register name = LoadConvention::NameRegister();
26 static Register registers[] = {receiver, name, ebx, eax, edi, no_reg}; 26 static Register registers[] = {receiver, name, ebx, eax, edi, no_reg};
27 return registers; 27 return registers;
28 } 28 }
29 29
30 30
31 Register* PropertyAccessCompiler::store_calling_convention() { 31 Register* PropertyAccessCompiler::store_calling_convention() {
32 // receiver, name, scratch1, scratch2, scratch3. 32 // receiver, name, scratch1, scratch2, scratch3.
33 Register receiver = StoreIC::ReceiverRegister(); 33 Register receiver = StoreConvention::ReceiverRegister();
34 Register name = StoreIC::NameRegister(); 34 Register name = StoreConvention::NameRegister();
35 DCHECK(ebx.is(KeyedStoreIC::MapRegister())); 35 DCHECK(ebx.is(StoreConvention::MapRegister()));
36 static Register registers[] = {receiver, name, ebx, edi, no_reg}; 36 static Register registers[] = {receiver, name, ebx, edi, no_reg};
37 return registers; 37 return registers;
38 } 38 }
39 39
40 #undef __ 40 #undef __
41 } 41 }
42 } // namespace v8::internal 42 } // namespace v8::internal
43 43
44 #endif // V8_TARGET_ARCH_IA32 44 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ic/arm64/ic-conventions-arm64.cc ('k') | src/ic/ia32/handler-compiler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698