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

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

Issue 1235823002: X87: Reland: 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 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_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 Register registers[] = { 325 Register registers[] = {
326 edi, // callee 326 edi, // callee
327 ebx, // call_data 327 ebx, // call_data
328 ecx, // holder 328 ecx, // holder
329 edx, // api_function_address 329 edx, // api_function_address
330 }; 330 };
331 data->InitializePlatformSpecific(arraysize(registers), registers); 331 data->InitializePlatformSpecific(arraysize(registers), registers);
332 } 332 }
333 333
334 334
335 void MathRoundVariantDescriptor::InitializePlatformSpecific( 335 void MathRoundVariantCallFromUnoptimizedCodeDescriptor::
336 CallInterfaceDescriptorData* data) { 336 InitializePlatformSpecific(CallInterfaceDescriptorData* data) {
337 Register registers[] = { 337 Register registers[] = {
338 edi, // math rounding function 338 edi, // math rounding function
339 edx, // vector slot id 339 edx, // vector slot id
340 }; 340 };
341 data->InitializePlatformSpecific(arraysize(registers), registers); 341 data->InitializePlatformSpecific(arraysize(registers), registers);
342 } 342 }
343
344
345 void MathRoundVariantCallFromOptimizedCodeDescriptor::
346 InitializePlatformSpecific(CallInterfaceDescriptorData* data) {
347 Register registers[] = {
348 edi, // math rounding function
349 edx, // vector slot id
350 ebx // type vector
351 };
352 data->InitializePlatformSpecific(arraysize(registers), registers);
353 }
343 } // namespace internal 354 } // namespace internal
344 } // namespace v8 355 } // namespace v8
345 356
346 #endif // V8_TARGET_ARCH_X87 357 #endif // V8_TARGET_ARCH_X87
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