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

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

Issue 1225943002: Reland: Add unoptimized/optimized variants of MathFloor TF code stub (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix nosnap bug 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 | « src/runtime.js ('k') | test/cctest/compiler/test-run-stubs.cc » ('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_X64 7 #if V8_TARGET_ARCH_X64
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 rdi, // callee 326 rdi, // callee
327 rbx, // call_data 327 rbx, // call_data
328 rcx, // holder 328 rcx, // holder
329 rdx, // api_function_address 329 rdx, // 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 rdi, // math rounding function 338 rdi, // math rounding function
339 rdx, // vector slot id 339 rdx, // 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 rdi, // math rounding function
349 rdx, // vector slot id
350 rbx // 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_X64 357 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/runtime.js ('k') | test/cctest/compiler/test-run-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698