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

Side by Side Diff: src/arm/code-stubs-arm.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 | « no previous file | src/arm/debug-arm.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_ARM 7 #if V8_TARGET_ARCH_ARM
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 void RegExpConstructResultStub::InitializeInterfaceDescriptor( 81 void RegExpConstructResultStub::InitializeInterfaceDescriptor(
82 CodeStubInterfaceDescriptor* descriptor) { 82 CodeStubInterfaceDescriptor* descriptor) {
83 Register registers[] = { r2, r1, r0 }; 83 Register registers[] = { r2, r1, r0 };
84 descriptor->Initialize( 84 descriptor->Initialize(
85 ARRAY_SIZE(registers), registers, 85 ARRAY_SIZE(registers), registers,
86 Runtime::FunctionForId(Runtime::kHiddenRegExpConstructResult)->entry); 86 Runtime::FunctionForId(Runtime::kHiddenRegExpConstructResult)->entry);
87 } 87 }
88 88
89 89
90 void LoadFieldStub::InitializeInterfaceDescriptor(
91 CodeStubInterfaceDescriptor* descriptor) {
92 Register registers[] = { r0 };
93 descriptor->Initialize(ARRAY_SIZE(registers), registers);
94 }
95
96
97 void KeyedLoadFieldStub::InitializeInterfaceDescriptor(
98 CodeStubInterfaceDescriptor* descriptor) {
99 Register registers[] = { r1 };
100 descriptor->Initialize(ARRAY_SIZE(registers), registers);
101 }
102
103
104 void StringLengthStub::InitializeInterfaceDescriptor(
105 CodeStubInterfaceDescriptor* descriptor) {
106 Register registers[] = { r0, r2 };
107 descriptor->Initialize(ARRAY_SIZE(registers), registers);
108 }
109
110
111 void KeyedStringLengthStub::InitializeInterfaceDescriptor(
112 CodeStubInterfaceDescriptor* descriptor) {
113 Register registers[] = { r1, r0 };
114 descriptor->Initialize(ARRAY_SIZE(registers), registers);
115 }
116
117
118 void KeyedStoreFastElementStub::InitializeInterfaceDescriptor( 90 void KeyedStoreFastElementStub::InitializeInterfaceDescriptor(
119 CodeStubInterfaceDescriptor* descriptor) { 91 CodeStubInterfaceDescriptor* descriptor) {
120 Register registers[] = { r2, r1, r0 }; 92 Register registers[] = { r2, r1, r0 };
121 descriptor->Initialize( 93 descriptor->Initialize(
122 ARRAY_SIZE(registers), registers, 94 ARRAY_SIZE(registers), registers,
123 FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure)); 95 FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure));
124 } 96 }
125 97
126 98
127 void TransitionElementsKindStub::InitializeInterfaceDescriptor( 99 void TransitionElementsKindStub::InitializeInterfaceDescriptor(
(...skipping 4982 matching lines...) Expand 10 before | Expand all | Expand 10 after
5110 MemOperand(fp, 6 * kPointerSize), 5082 MemOperand(fp, 6 * kPointerSize),
5111 NULL); 5083 NULL);
5112 } 5084 }
5113 5085
5114 5086
5115 #undef __ 5087 #undef __
5116 5088
5117 } } // namespace v8::internal 5089 } } // namespace v8::internal
5118 5090
5119 #endif // V8_TARGET_ARCH_ARM 5091 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/debug-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698