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

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

Issue 1207253003: PPC: Add unoptimized/optimized variants of MathFloor TF code stub (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | no next file » | 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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 Register registers[] = { 322 Register registers[] = {
323 r3, // callee 323 r3, // callee
324 r7, // call_data 324 r7, // call_data
325 r5, // holder 325 r5, // holder
326 r4, // api_function_address 326 r4, // api_function_address
327 }; 327 };
328 data->InitializePlatformSpecific(arraysize(registers), registers); 328 data->InitializePlatformSpecific(arraysize(registers), registers);
329 } 329 }
330 330
331 331
332 void MathRoundVariantDescriptor::InitializePlatformSpecific( 332 void MathRoundVariantCallFromUnoptimizedCodeDescriptor::
333 CallInterfaceDescriptorData* data) { 333 InitializePlatformSpecific(CallInterfaceDescriptorData* data) {
334 Register registers[] = { 334 Register registers[] = {
335 r4, // math rounding function 335 r4, // math rounding function
336 r6, // vector slot id 336 r6, // vector slot id
337 }; 337 };
338 data->InitializePlatformSpecific(arraysize(registers), registers); 338 data->InitializePlatformSpecific(arraysize(registers), registers);
339 } 339 }
340
341
342 void MathRoundVariantCallFromOptimizedCodeDescriptor::
343 InitializePlatformSpecific(CallInterfaceDescriptorData* data) {
344 Register registers[] = {
345 r4, // math rounding function
346 r6, // vector slot id
347 r7, // type vector
348 };
349 data->InitializePlatformSpecific(arraysize(registers), registers);
350 }
340 } // namespace internal 351 } // namespace internal
341 } // namespace v8 352 } // namespace v8
342 353
343 #endif // V8_TARGET_ARCH_PPC 354 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698