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

Side by Side Diff: src/mips/interface-descriptors-mips.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/interface-descriptors.cc ('k') | src/mips64/interface-descriptors-mips64.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_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 Register registers[] = { 323 Register registers[] = {
324 a0, // callee 324 a0, // callee
325 t0, // call_data 325 t0, // call_data
326 a2, // holder 326 a2, // holder
327 a1, // api_function_address 327 a1, // api_function_address
328 }; 328 };
329 data->InitializePlatformSpecific(arraysize(registers), registers); 329 data->InitializePlatformSpecific(arraysize(registers), registers);
330 } 330 }
331 331
332 332
333 void MathRoundVariantDescriptor::InitializePlatformSpecific( 333 void MathRoundVariantCallFromUnoptimizedCodeDescriptor::
334 CallInterfaceDescriptorData* data) { 334 InitializePlatformSpecific(CallInterfaceDescriptorData* data) {
335 Register registers[] = { 335 Register registers[] = {
336 a1, // math rounding function 336 a1, // math rounding function
337 a3, // vector slot id 337 a3, // vector slot id
338 }; 338 };
339 data->InitializePlatformSpecific(arraysize(registers), registers); 339 data->InitializePlatformSpecific(arraysize(registers), registers);
340 } 340 }
341
342
343 void MathRoundVariantCallFromOptimizedCodeDescriptor::
344 InitializePlatformSpecific(CallInterfaceDescriptorData* data) {
345 Register registers[] = {
346 a1, // math rounding function
347 a3, // vector slot id
348 a2, // type vector
349 };
350 data->InitializePlatformSpecific(arraysize(registers), registers);
351 }
341 } // namespace internal 352 } // namespace internal
342 } // namespace v8 353 } // namespace v8
343 354
344 #endif // V8_TARGET_ARCH_MIPS 355 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/interface-descriptors.cc ('k') | src/mips64/interface-descriptors-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698