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

Side by Side Diff: src/ia32/code-stubs-ia32.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, 6 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/code-stubs.cc ('k') | src/ia32/debug-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/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 void RegExpConstructResultStub::InitializeInterfaceDescriptor( 87 void RegExpConstructResultStub::InitializeInterfaceDescriptor(
88 CodeStubInterfaceDescriptor* descriptor) { 88 CodeStubInterfaceDescriptor* descriptor) {
89 Register registers[] = { ecx, ebx, eax }; 89 Register registers[] = { ecx, ebx, eax };
90 descriptor->Initialize( 90 descriptor->Initialize(
91 ARRAY_SIZE(registers), registers, 91 ARRAY_SIZE(registers), registers,
92 Runtime::FunctionForId(Runtime::kHiddenRegExpConstructResult)->entry); 92 Runtime::FunctionForId(Runtime::kHiddenRegExpConstructResult)->entry);
93 } 93 }
94 94
95 95
96 void LoadFieldStub::InitializeInterfaceDescriptor(
97 CodeStubInterfaceDescriptor* descriptor) {
98 Register registers[] = { edx };
99 descriptor->Initialize(ARRAY_SIZE(registers), registers);
100 }
101
102
103 void KeyedLoadFieldStub::InitializeInterfaceDescriptor(
104 CodeStubInterfaceDescriptor* descriptor) {
105 Register registers[] = { edx };
106 descriptor->Initialize(ARRAY_SIZE(registers), registers);
107 }
108
109
110 void StringLengthStub::InitializeInterfaceDescriptor(
111 CodeStubInterfaceDescriptor* descriptor) {
112 Register registers[] = { edx, ecx };
113 descriptor->Initialize(ARRAY_SIZE(registers), registers);
114 }
115
116
117 void KeyedStringLengthStub::InitializeInterfaceDescriptor(
118 CodeStubInterfaceDescriptor* descriptor) {
119 Register registers[] = { edx, ecx };
120 descriptor->Initialize(ARRAY_SIZE(registers), registers);
121 }
122
123
124 void KeyedStoreFastElementStub::InitializeInterfaceDescriptor( 96 void KeyedStoreFastElementStub::InitializeInterfaceDescriptor(
125 CodeStubInterfaceDescriptor* descriptor) { 97 CodeStubInterfaceDescriptor* descriptor) {
126 Register registers[] = { edx, ecx, eax }; 98 Register registers[] = { edx, ecx, eax };
127 descriptor->Initialize( 99 descriptor->Initialize(
128 ARRAY_SIZE(registers), registers, 100 ARRAY_SIZE(registers), registers,
129 FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure)); 101 FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure));
130 } 102 }
131 103
132 104
133 void TransitionElementsKindStub::InitializeInterfaceDescriptor( 105 void TransitionElementsKindStub::InitializeInterfaceDescriptor(
(...skipping 4883 matching lines...) Expand 10 before | Expand all | Expand 10 after
5017 Operand(ebp, 7 * kPointerSize), 4989 Operand(ebp, 7 * kPointerSize),
5018 NULL); 4990 NULL);
5019 } 4991 }
5020 4992
5021 4993
5022 #undef __ 4994 #undef __
5023 4995
5024 } } // namespace v8::internal 4996 } } // namespace v8::internal
5025 4997
5026 #endif // V8_TARGET_ARCH_IA32 4998 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/ia32/debug-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698