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

Side by Side Diff: src/x64/interface-descriptors-x64.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_X64 5 #if V8_TARGET_ARCH_X64
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 void ToNumberDescriptor::InitializePlatformSpecific( 102 void ToNumberDescriptor::InitializePlatformSpecific(
103 CallInterfaceDescriptorData* data) { 103 CallInterfaceDescriptorData* data) {
104 // ToNumberStub invokes a function, and therefore needs a context. 104 // ToNumberStub invokes a function, and therefore needs a context.
105 Register registers[] = {rax}; 105 Register registers[] = {rax};
106 data->InitializePlatformSpecific(arraysize(registers), registers); 106 data->InitializePlatformSpecific(arraysize(registers), registers);
107 } 107 }
108 108
109 109
110 // static 110 // static
111 const Register ToLengthDescriptor::ReceiverRegister() { return rax; }
112
113
114 // static
111 const Register ToStringDescriptor::ReceiverRegister() { return rax; } 115 const Register ToStringDescriptor::ReceiverRegister() { return rax; }
112 116
113 117
114 // static 118 // static
115 const Register ToObjectDescriptor::ReceiverRegister() { return rax; } 119 const Register ToObjectDescriptor::ReceiverRegister() { return rax; }
116 120
117 121
118 void NumberToStringDescriptor::InitializePlatformSpecific( 122 void NumberToStringDescriptor::InitializePlatformSpecific(
119 CallInterfaceDescriptorData* data) { 123 CallInterfaceDescriptorData* data) {
120 Register registers[] = {rax}; 124 Register registers[] = {rax};
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 r15, // address of first argument (argv) 425 r15, // address of first argument (argv)
422 rbx // the runtime function to call 426 rbx // the runtime function to call
423 }; 427 };
424 data->InitializePlatformSpecific(arraysize(registers), registers); 428 data->InitializePlatformSpecific(arraysize(registers), registers);
425 } 429 }
426 430
427 } // namespace internal 431 } // namespace internal
428 } // namespace v8 432 } // namespace v8
429 433
430 #endif // V8_TARGET_ARCH_X64 434 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698