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

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

Issue 339663008: Revert "Create a RegisterSpec class inside of the IC that provides:" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | « no previous file | src/arm/ic-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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 void CreateAllocationSiteStub::InitializeInterfaceDescriptor( 82 void CreateAllocationSiteStub::InitializeInterfaceDescriptor(
83 CodeStubInterfaceDescriptor* descriptor) { 83 CodeStubInterfaceDescriptor* descriptor) {
84 static Register registers[] = { r2, r3 }; 84 static Register registers[] = { r2, r3 };
85 descriptor->register_param_count_ = 2; 85 descriptor->register_param_count_ = 2;
86 descriptor->register_params_ = registers; 86 descriptor->register_params_ = registers;
87 descriptor->deoptimization_handler_ = NULL; 87 descriptor->deoptimization_handler_ = NULL;
88 } 88 }
89 89
90 90
91 void KeyedLoadFastElementStub::InitializeInterfaceDescriptor(
92 CodeStubInterfaceDescriptor* descriptor) {
93 static Register registers[] = { r1, r0 };
94 descriptor->register_param_count_ = 2;
95 descriptor->register_params_ = registers;
96 descriptor->deoptimization_handler_ =
97 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure);
98 }
99
100
101 void KeyedLoadDictionaryElementStub::InitializeInterfaceDescriptor(
102 CodeStubInterfaceDescriptor* descriptor) {
103 static Register registers[] = { r1, r0 };
104 descriptor->register_param_count_ = 2;
105 descriptor->register_params_ = registers;
106 descriptor->deoptimization_handler_ =
107 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure);
108 }
109
110
91 void RegExpConstructResultStub::InitializeInterfaceDescriptor( 111 void RegExpConstructResultStub::InitializeInterfaceDescriptor(
92 CodeStubInterfaceDescriptor* descriptor) { 112 CodeStubInterfaceDescriptor* descriptor) {
93 static Register registers[] = { r2, r1, r0 }; 113 static Register registers[] = { r2, r1, r0 };
94 descriptor->register_param_count_ = 3; 114 descriptor->register_param_count_ = 3;
95 descriptor->register_params_ = registers; 115 descriptor->register_params_ = registers;
96 descriptor->deoptimization_handler_ = 116 descriptor->deoptimization_handler_ =
97 Runtime::FunctionForId(Runtime::kHiddenRegExpConstructResult)->entry; 117 Runtime::FunctionForId(Runtime::kHiddenRegExpConstructResult)->entry;
98 } 118 }
99 119
100 120
121 void KeyedLoadGenericElementStub::InitializeInterfaceDescriptor(
122 CodeStubInterfaceDescriptor* descriptor) {
123 static Register registers[] = { r1, r0 };
124 descriptor->register_param_count_ = 2;
125 descriptor->register_params_ = registers;
126 descriptor->deoptimization_handler_ =
127 Runtime::FunctionForId(Runtime::kKeyedGetProperty)->entry;
128 }
129
130
101 void LoadFieldStub::InitializeInterfaceDescriptor( 131 void LoadFieldStub::InitializeInterfaceDescriptor(
102 CodeStubInterfaceDescriptor* descriptor) { 132 CodeStubInterfaceDescriptor* descriptor) {
103 static Register registers[] = { r0 }; 133 static Register registers[] = { r0 };
104 descriptor->register_param_count_ = 1; 134 descriptor->register_param_count_ = 1;
105 descriptor->register_params_ = registers; 135 descriptor->register_params_ = registers;
106 descriptor->deoptimization_handler_ = NULL; 136 descriptor->deoptimization_handler_ = NULL;
107 } 137 }
108 138
109 139
110 void KeyedLoadFieldStub::InitializeInterfaceDescriptor( 140 void KeyedLoadFieldStub::InitializeInterfaceDescriptor(
(...skipping 5038 matching lines...) Expand 10 before | Expand all | Expand 10 after
5149 MemOperand(fp, 6 * kPointerSize), 5179 MemOperand(fp, 6 * kPointerSize),
5150 NULL); 5180 NULL);
5151 } 5181 }
5152 5182
5153 5183
5154 #undef __ 5184 #undef __
5155 5185
5156 } } // namespace v8::internal 5186 } } // namespace v8::internal
5157 5187
5158 #endif // V8_TARGET_ARCH_ARM 5188 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/ic-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698