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

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

Issue 2599683002: [turbofan] Introduce a dedicated StringCharAt operator. (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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 CallInterfaceDescriptorData* data) { 177 CallInterfaceDescriptorData* data) {
178 Register registers[] = { 178 Register registers[] = {
179 ReceiverRegister(), FieldOffsetRegister(), MapRegister(), 179 ReceiverRegister(), FieldOffsetRegister(), MapRegister(),
180 ValueRegister(), SlotRegister(), VectorRegister(), 180 ValueRegister(), SlotRegister(), VectorRegister(),
181 NameRegister(), 181 NameRegister(),
182 }; 182 };
183 int len = arraysize(registers) - kStackArgumentsCount; 183 int len = arraysize(registers) - kStackArgumentsCount;
184 data->InitializePlatformSpecific(len, registers); 184 data->InitializePlatformSpecific(len, registers);
185 } 185 }
186 186
187 void StringCharAtDescriptor::InitializePlatformIndependent(
188 CallInterfaceDescriptorData* data) {
189 // kReceiver, kPosition
190 MachineType machine_types[] = {MachineType::AnyTagged(),
191 MachineType::IntPtr()};
192 data->InitializePlatformIndependent(arraysize(machine_types), 0,
193 machine_types);
194 }
195
196 void StringCharAtDescriptor::InitializePlatformSpecific(
197 CallInterfaceDescriptorData* data) {
198 DefaultInitializePlatformSpecific(data, kParameterCount);
199 }
200
187 void StringCompareDescriptor::InitializePlatformSpecific( 201 void StringCompareDescriptor::InitializePlatformSpecific(
188 CallInterfaceDescriptorData* data) { 202 CallInterfaceDescriptorData* data) {
189 Register registers[] = {LeftRegister(), RightRegister()}; 203 Register registers[] = {LeftRegister(), RightRegister()};
190 data->InitializePlatformSpecific(arraysize(registers), registers); 204 data->InitializePlatformSpecific(arraysize(registers), registers);
191 } 205 }
192 206
193 void TypeConversionDescriptor::InitializePlatformSpecific( 207 void TypeConversionDescriptor::InitializePlatformSpecific(
194 CallInterfaceDescriptorData* data) { 208 CallInterfaceDescriptorData* data) {
195 Register registers[] = {ArgumentRegister()}; 209 Register registers[] = {ArgumentRegister()};
196 data->InitializePlatformSpecific(arraysize(registers), registers); 210 data->InitializePlatformSpecific(arraysize(registers), registers);
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 CallInterfaceDescriptorData* data) { 536 CallInterfaceDescriptorData* data) {
523 // kNumberOfArguments, kFirstArgument, kFunctionEntry 537 // kNumberOfArguments, kFirstArgument, kFunctionEntry
524 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(), 538 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(),
525 MachineType::Pointer()}; 539 MachineType::Pointer()};
526 data->InitializePlatformIndependent(arraysize(machine_types), 0, 540 data->InitializePlatformIndependent(arraysize(machine_types), 0,
527 machine_types); 541 machine_types);
528 } 542 }
529 543
530 } // namespace internal 544 } // namespace internal
531 } // namespace v8 545 } // 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