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/arm64/interface-descriptors-arm64.cc

Issue 1266013006: [stubs] Unify (and optimize) implementation of ToObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add missing support for %_ToObject in TurboFan and Crankshaft. Created 5 years, 4 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
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/array.js » ('j') | 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/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 98
99 void ToNumberDescriptor::InitializePlatformSpecific( 99 void ToNumberDescriptor::InitializePlatformSpecific(
100 CallInterfaceDescriptorData* data) { 100 CallInterfaceDescriptorData* data) {
101 // x0: value 101 // x0: value
102 Register registers[] = {x0}; 102 Register registers[] = {x0};
103 data->InitializePlatformSpecific(arraysize(registers), registers); 103 data->InitializePlatformSpecific(arraysize(registers), registers);
104 } 104 }
105 105
106 106
107 // static
108 const Register ToObjectDescriptor::ReceiverRegister() { return x0; }
109
110
107 void NumberToStringDescriptor::InitializePlatformSpecific( 111 void NumberToStringDescriptor::InitializePlatformSpecific(
108 CallInterfaceDescriptorData* data) { 112 CallInterfaceDescriptorData* data) {
109 // x0: value 113 // x0: value
110 Register registers[] = {x0}; 114 Register registers[] = {x0};
111 data->InitializePlatformSpecific(arraysize(registers), registers); 115 data->InitializePlatformSpecific(arraysize(registers), registers);
112 } 116 }
113 117
114 118
115 void TypeofDescriptor::InitializePlatformSpecific( 119 void TypeofDescriptor::InitializePlatformSpecific(
116 CallInterfaceDescriptorData* data) { 120 CallInterfaceDescriptorData* data) {
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 x1, // math rounding function 422 x1, // math rounding function
419 x3, // vector slot id 423 x3, // vector slot id
420 x4, // type vector 424 x4, // type vector
421 }; 425 };
422 data->InitializePlatformSpecific(arraysize(registers), registers); 426 data->InitializePlatformSpecific(arraysize(registers), registers);
423 } 427 }
424 } // namespace internal 428 } // namespace internal
425 } // namespace v8 429 } // namespace v8
426 430
427 #endif // V8_TARGET_ARCH_ARM64 431 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/array.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698