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

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

Issue 1412963002: [runtime] Implement %_ToLength via ToLengthStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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
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 namespace { 10 namespace {
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 } 182 }
183 183
184 184
185 void StringCompareDescriptor::InitializePlatformSpecific( 185 void StringCompareDescriptor::InitializePlatformSpecific(
186 CallInterfaceDescriptorData* data) { 186 CallInterfaceDescriptorData* data) {
187 Register registers[] = {LeftRegister(), RightRegister()}; 187 Register registers[] = {LeftRegister(), RightRegister()};
188 data->InitializePlatformSpecific(arraysize(registers), registers); 188 data->InitializePlatformSpecific(arraysize(registers), registers);
189 } 189 }
190 190
191 191
192 void ToLengthDescriptor::InitializePlatformSpecific(
193 CallInterfaceDescriptorData* data) {
194 Register registers[] = {ReceiverRegister()};
195 data->InitializePlatformSpecific(arraysize(registers), registers);
196 }
197
198
192 void ToStringDescriptor::InitializePlatformSpecific( 199 void ToStringDescriptor::InitializePlatformSpecific(
193 CallInterfaceDescriptorData* data) { 200 CallInterfaceDescriptorData* data) {
194 Register registers[] = {ReceiverRegister()}; 201 Register registers[] = {ReceiverRegister()};
195 data->InitializePlatformSpecific(arraysize(registers), registers); 202 data->InitializePlatformSpecific(arraysize(registers), registers);
196 } 203 }
197 204
198 205
199 void ToObjectDescriptor::InitializePlatformSpecific( 206 void ToObjectDescriptor::InitializePlatformSpecific(
200 CallInterfaceDescriptorData* data) { 207 CallInterfaceDescriptorData* data) {
201 Register registers[] = {ReceiverRegister()}; 208 Register registers[] = {ReceiverRegister()};
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 5, zone); 539 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 5, zone);
533 function->InitParameter(0, Type::Receiver()); 540 function->InitParameter(0, Type::Receiver());
534 function->InitParameter(1, SmiType(zone)); 541 function->InitParameter(1, SmiType(zone));
535 function->InitParameter(2, AnyTagged(zone)); 542 function->InitParameter(2, AnyTagged(zone));
536 function->InitParameter(3, AnyTagged(zone)); 543 function->InitParameter(3, AnyTagged(zone));
537 function->InitParameter(4, AnyTagged(zone)); 544 function->InitParameter(4, AnyTagged(zone));
538 return function; 545 return function;
539 } 546 }
540 } // namespace internal 547 } // namespace internal
541 } // namespace v8 548 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698