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

Side by Side Diff: src/x64/code-stubs-x64.cc

Issue 356713003: Use IC register definitions in platform files. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: nits. 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/stub-cache-ia32.cc ('k') | src/x64/debug-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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 void RegExpConstructResultStub::InitializeInterfaceDescriptor( 83 void RegExpConstructResultStub::InitializeInterfaceDescriptor(
84 CodeStubInterfaceDescriptor* descriptor) { 84 CodeStubInterfaceDescriptor* descriptor) {
85 Register registers[] = { rcx, rbx, rax }; 85 Register registers[] = { rcx, rbx, rax };
86 descriptor->Initialize( 86 descriptor->Initialize(
87 ARRAY_SIZE(registers), registers, 87 ARRAY_SIZE(registers), registers,
88 Runtime::FunctionForId(Runtime::kHiddenRegExpConstructResult)->entry); 88 Runtime::FunctionForId(Runtime::kHiddenRegExpConstructResult)->entry);
89 } 89 }
90 90
91 91
92 void LoadFieldStub::InitializeInterfaceDescriptor(
93 CodeStubInterfaceDescriptor* descriptor) {
94 Register registers[] = { rax };
95 descriptor->Initialize(ARRAY_SIZE(registers), registers);
96 }
97
98
99 void KeyedLoadFieldStub::InitializeInterfaceDescriptor(
100 CodeStubInterfaceDescriptor* descriptor) {
101 Register registers[] = { rdx };
102 descriptor->Initialize(ARRAY_SIZE(registers), registers);
103 }
104
105
106 void StringLengthStub::InitializeInterfaceDescriptor(
107 CodeStubInterfaceDescriptor* descriptor) {
108 Register registers[] = { rax, rcx };
109 descriptor->Initialize(ARRAY_SIZE(registers), registers);
110 }
111
112
113 void KeyedStringLengthStub::InitializeInterfaceDescriptor(
114 CodeStubInterfaceDescriptor* descriptor) {
115 Register registers[] = { rdx, rax };
116 descriptor->Initialize(ARRAY_SIZE(registers), registers);
117 }
118
119
120 void KeyedStoreFastElementStub::InitializeInterfaceDescriptor( 92 void KeyedStoreFastElementStub::InitializeInterfaceDescriptor(
121 CodeStubInterfaceDescriptor* descriptor) { 93 CodeStubInterfaceDescriptor* descriptor) {
122 Register registers[] = { rdx, rcx, rax }; 94 Register registers[] = { rdx, rcx, rax };
123 descriptor->Initialize( 95 descriptor->Initialize(
124 ARRAY_SIZE(registers), registers, 96 ARRAY_SIZE(registers), registers,
125 FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure)); 97 FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure));
126 } 98 }
127 99
128 100
129 void TransitionElementsKindStub::InitializeInterfaceDescriptor( 101 void TransitionElementsKindStub::InitializeInterfaceDescriptor(
(...skipping 4848 matching lines...) Expand 10 before | Expand all | Expand 10 after
4978 return_value_operand, 4950 return_value_operand,
4979 NULL); 4951 NULL);
4980 } 4952 }
4981 4953
4982 4954
4983 #undef __ 4955 #undef __
4984 4956
4985 } } // namespace v8::internal 4957 } } // namespace v8::internal
4986 4958
4987 #endif // V8_TARGET_ARCH_X64 4959 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/x64/debug-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698