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

Side by Side Diff: src/interface-descriptors.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.h ('k') | src/mips/interface-descriptors-mips.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 #include "src/interface-descriptors.h" 7 #include "src/interface-descriptors.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 Type::FunctionType* function = Type::FunctionType::New( 352 Type::FunctionType* function = Type::FunctionType::New(
353 AnyTagged(), Type::Undefined(), 4, isolate->interface_descriptor_zone()); 353 AnyTagged(), Type::Undefined(), 4, isolate->interface_descriptor_zone());
354 function->InitParameter(0, AnyTagged()); // callee 354 function->InitParameter(0, AnyTagged()); // callee
355 function->InitParameter(1, AnyTagged()); // call_data 355 function->InitParameter(1, AnyTagged()); // call_data
356 function->InitParameter(2, AnyTagged()); // holder 356 function->InitParameter(2, AnyTagged()); // holder
357 function->InitParameter(3, ExternalPointer()); // api_function_address 357 function->InitParameter(3, ExternalPointer()); // api_function_address
358 return function; 358 return function;
359 } 359 }
360 360
361 361
362 Type::FunctionType* 362 Type::FunctionType* MathRoundVariantCallFromUnoptimizedCodeDescriptor::
363 MathRoundVariantDescriptor::BuildCallInterfaceDescriptorFunctionType( 363 BuildCallInterfaceDescriptorFunctionType(Isolate* isolate,
364 Isolate* isolate, int paramater_count) { 364 int paramater_count) {
365 Type::FunctionType* function = Type::FunctionType::New( 365 Type::FunctionType* function = Type::FunctionType::New(
366 AnyTagged(), Type::Undefined(), 2, isolate->interface_descriptor_zone()); 366 AnyTagged(), Type::Undefined(), 4, isolate->interface_descriptor_zone());
367 function->InitParameter(0, SmiType()); 367 function->InitParameter(0, Type::Receiver());
368 function->InitParameter(1, AnyTagged()); 368 function->InitParameter(1, SmiType());
369 function->InitParameter(2, AnyTagged());
370 function->InitParameter(3, AnyTagged());
369 return function; 371 return function;
370 } 372 }
371 373
372 374
375 Type::FunctionType* MathRoundVariantCallFromOptimizedCodeDescriptor::
376 BuildCallInterfaceDescriptorFunctionType(Isolate* isolate,
377 int paramater_count) {
378 Type::FunctionType* function = Type::FunctionType::New(
379 AnyTagged(), Type::Undefined(), 5, isolate->interface_descriptor_zone());
380 function->InitParameter(0, Type::Receiver());
381 function->InitParameter(1, SmiType());
382 function->InitParameter(2, AnyTagged());
383 function->InitParameter(3, AnyTagged());
384 function->InitParameter(4, AnyTagged());
385 return function;
386 }
373 } // namespace internal 387 } // namespace internal
374 } // namespace v8 388 } // namespace v8
OLDNEW
« no previous file with comments | « src/interface-descriptors.h ('k') | src/mips/interface-descriptors-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698