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

Side by Side Diff: src/ia32/interface-descriptors-ia32.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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/interface-descriptors.h" 7 #include "src/interface-descriptors.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 void ToNumberDescriptor::InitializePlatformSpecific( 100 void ToNumberDescriptor::InitializePlatformSpecific(
101 CallInterfaceDescriptorData* data) { 101 CallInterfaceDescriptorData* data) {
102 // ToNumberStub invokes a function, and therefore needs a context. 102 // ToNumberStub invokes a function, and therefore needs a context.
103 Register registers[] = {eax}; 103 Register registers[] = {eax};
104 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 104 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
105 } 105 }
106 106
107 107
108 // static 108 // static
109 const Register ToLengthDescriptor::ReceiverRegister() { return eax; }
110
111
112 // static
109 const Register ToStringDescriptor::ReceiverRegister() { return eax; } 113 const Register ToStringDescriptor::ReceiverRegister() { return eax; }
110 114
111 115
112 // static 116 // static
113 const Register ToObjectDescriptor::ReceiverRegister() { return eax; } 117 const Register ToObjectDescriptor::ReceiverRegister() { return eax; }
114 118
115 119
116 void NumberToStringDescriptor::InitializePlatformSpecific( 120 void NumberToStringDescriptor::InitializePlatformSpecific(
117 CallInterfaceDescriptorData* data) { 121 CallInterfaceDescriptorData* data) {
118 Register registers[] = {eax}; 122 Register registers[] = {eax};
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 ecx, // address of first argument (argv) 431 ecx, // address of first argument (argv)
428 ebx // the runtime function to call 432 ebx // the runtime function to call
429 }; 433 };
430 data->InitializePlatformSpecific(arraysize(registers), registers); 434 data->InitializePlatformSpecific(arraysize(registers), registers);
431 } 435 }
432 436
433 } // namespace internal 437 } // namespace internal
434 } // namespace v8 438 } // namespace v8
435 439
436 #endif // V8_TARGET_ARCH_IA32 440 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698