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

Side by Side Diff: src/ppc/interface-descriptors-ppc.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/ppc/code-stubs-ppc.cc ('k') | src/runtime.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 7 #if V8_TARGET_ARCH_PPC
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 } 88 }
89 89
90 90
91 void ToNumberDescriptor::InitializePlatformSpecific( 91 void ToNumberDescriptor::InitializePlatformSpecific(
92 CallInterfaceDescriptorData* data) { 92 CallInterfaceDescriptorData* data) {
93 Register registers[] = {r3}; 93 Register registers[] = {r3};
94 data->InitializePlatformSpecific(arraysize(registers), registers); 94 data->InitializePlatformSpecific(arraysize(registers), registers);
95 } 95 }
96 96
97 97
98 // static
99 const Register ToObjectDescriptor::ReceiverRegister() { return r3; }
100
101
98 void NumberToStringDescriptor::InitializePlatformSpecific( 102 void NumberToStringDescriptor::InitializePlatformSpecific(
99 CallInterfaceDescriptorData* data) { 103 CallInterfaceDescriptorData* data) {
100 Register registers[] = {r3}; 104 Register registers[] = {r3};
101 data->InitializePlatformSpecific(arraysize(registers), registers); 105 data->InitializePlatformSpecific(arraysize(registers), registers);
102 } 106 }
103 107
104 108
105 void TypeofDescriptor::InitializePlatformSpecific( 109 void TypeofDescriptor::InitializePlatformSpecific(
106 CallInterfaceDescriptorData* data) { 110 CallInterfaceDescriptorData* data) {
107 Register registers[] = {r6}; 111 Register registers[] = {r6};
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 r4, // math rounding function 361 r4, // math rounding function
358 r6, // vector slot id 362 r6, // vector slot id
359 r7, // type vector 363 r7, // type vector
360 }; 364 };
361 data->InitializePlatformSpecific(arraysize(registers), registers); 365 data->InitializePlatformSpecific(arraysize(registers), registers);
362 } 366 }
363 } // namespace internal 367 } // namespace internal
364 } // namespace v8 368 } // namespace v8
365 369
366 #endif // V8_TARGET_ARCH_PPC 370 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ppc/code-stubs-ppc.cc ('k') | src/runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698