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

Side by Side Diff: src/compiler/raw-machine-assembler.h

Issue 1225993002: [turbofan] Add TruncationMode for TruncateFloat64ToInt32. (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
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 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 5 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
7 7
8 #include "src/compiler/common-operator.h" 8 #include "src/compiler/common-operator.h"
9 #include "src/compiler/graph-builder.h" 9 #include "src/compiler/graph-builder.h"
10 #include "src/compiler/linkage.h" 10 #include "src/compiler/linkage.h"
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 } 405 }
406 Node* ChangeInt32ToInt64(Node* a) { 406 Node* ChangeInt32ToInt64(Node* a) {
407 return NewNode(machine()->ChangeInt32ToInt64(), a); 407 return NewNode(machine()->ChangeInt32ToInt64(), a);
408 } 408 }
409 Node* ChangeUint32ToUint64(Node* a) { 409 Node* ChangeUint32ToUint64(Node* a) {
410 return NewNode(machine()->ChangeUint32ToUint64(), a); 410 return NewNode(machine()->ChangeUint32ToUint64(), a);
411 } 411 }
412 Node* TruncateFloat64ToFloat32(Node* a) { 412 Node* TruncateFloat64ToFloat32(Node* a) {
413 return NewNode(machine()->TruncateFloat64ToFloat32(), a); 413 return NewNode(machine()->TruncateFloat64ToFloat32(), a);
414 } 414 }
415 Node* TruncateFloat64ToInt32(Node* a) { 415 Node* TruncateFloat64ToInt32(TruncationMode mode, Node* a) {
416 return NewNode(machine()->TruncateFloat64ToInt32(), a); 416 return NewNode(machine()->TruncateFloat64ToInt32(mode), a);
417 } 417 }
418 Node* TruncateInt64ToInt32(Node* a) { 418 Node* TruncateInt64ToInt32(Node* a) {
419 return NewNode(machine()->TruncateInt64ToInt32(), a); 419 return NewNode(machine()->TruncateInt64ToInt32(), a);
420 } 420 }
421 Node* Float64RoundDown(Node* a) { 421 Node* Float64RoundDown(Node* a) {
422 return NewNode(machine()->Float64RoundDown().op(), a); 422 return NewNode(machine()->Float64RoundDown().op(), a);
423 } 423 }
424 Node* Float64RoundTruncate(Node* a) { 424 Node* Float64RoundTruncate(Node* a) {
425 return NewNode(machine()->Float64RoundTruncate().op(), a); 425 return NewNode(machine()->Float64RoundTruncate().op(), a);
426 } 426 }
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 BasicBlock* current_block_; 534 BasicBlock* current_block_;
535 535
536 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); 536 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler);
537 }; 537 };
538 538
539 } // namespace compiler 539 } // namespace compiler
540 } // namespace internal 540 } // namespace internal
541 } // namespace v8 541 } // namespace v8
542 542
543 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 543 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/compiler/mips64/instruction-selector-mips64.cc ('k') | src/compiler/representation-change.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698