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

Side by Side Diff: src/interface-descriptors.cc

Issue 2600443002: [turbofan] Lower StringCharCodeAt to a dedicated builtin. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « src/interface-descriptors.h ('k') | no next file » | 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/interface-descriptors.h" 5 #include "src/interface-descriptors.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 9
10 10
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 MachineType::IntPtr()}; 191 MachineType::IntPtr()};
192 data->InitializePlatformIndependent(arraysize(machine_types), 0, 192 data->InitializePlatformIndependent(arraysize(machine_types), 0,
193 machine_types); 193 machine_types);
194 } 194 }
195 195
196 void StringCharAtDescriptor::InitializePlatformSpecific( 196 void StringCharAtDescriptor::InitializePlatformSpecific(
197 CallInterfaceDescriptorData* data) { 197 CallInterfaceDescriptorData* data) {
198 DefaultInitializePlatformSpecific(data, kParameterCount); 198 DefaultInitializePlatformSpecific(data, kParameterCount);
199 } 199 }
200 200
201 void StringCharCodeAtDescriptor::InitializePlatformIndependent(
202 CallInterfaceDescriptorData* data) {
203 // kReceiver, kPosition
204 // TODO(turbofan): Allow builtins to return untagged values.
205 MachineType machine_types[] = {MachineType::AnyTagged(),
206 MachineType::IntPtr()};
207 data->InitializePlatformIndependent(arraysize(machine_types), 0,
208 machine_types);
209 }
210
211 void StringCharCodeAtDescriptor::InitializePlatformSpecific(
212 CallInterfaceDescriptorData* data) {
213 DefaultInitializePlatformSpecific(data, kParameterCount);
214 }
215
201 void StringCompareDescriptor::InitializePlatformSpecific( 216 void StringCompareDescriptor::InitializePlatformSpecific(
202 CallInterfaceDescriptorData* data) { 217 CallInterfaceDescriptorData* data) {
203 Register registers[] = {LeftRegister(), RightRegister()}; 218 Register registers[] = {LeftRegister(), RightRegister()};
204 data->InitializePlatformSpecific(arraysize(registers), registers); 219 data->InitializePlatformSpecific(arraysize(registers), registers);
205 } 220 }
206 221
207 void TypeConversionDescriptor::InitializePlatformSpecific( 222 void TypeConversionDescriptor::InitializePlatformSpecific(
208 CallInterfaceDescriptorData* data) { 223 CallInterfaceDescriptorData* data) {
209 Register registers[] = {ArgumentRegister()}; 224 Register registers[] = {ArgumentRegister()};
210 data->InitializePlatformSpecific(arraysize(registers), registers); 225 data->InitializePlatformSpecific(arraysize(registers), registers);
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 CallInterfaceDescriptorData* data) { 551 CallInterfaceDescriptorData* data) {
537 // kNumberOfArguments, kFirstArgument, kFunctionEntry 552 // kNumberOfArguments, kFirstArgument, kFunctionEntry
538 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(), 553 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(),
539 MachineType::Pointer()}; 554 MachineType::Pointer()};
540 data->InitializePlatformIndependent(arraysize(machine_types), 0, 555 data->InitializePlatformIndependent(arraysize(machine_types), 0,
541 machine_types); 556 machine_types);
542 } 557 }
543 558
544 } // namespace internal 559 } // namespace internal
545 } // namespace v8 560 } // namespace v8
OLDNEW
« no previous file with comments | « src/interface-descriptors.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698