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

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

Issue 1504363002: [turbofan] Change TruncateFloat32ToInt64 to TryTruncateFloat32ToInt64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/assembler.h" 8 #include "src/assembler.h"
9 #include "src/compiler/common-operator.h" 9 #include "src/compiler/common-operator.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 Node* ChangeUint32ToFloat64(Node* a) { 421 Node* ChangeUint32ToFloat64(Node* a) {
422 return AddNode(machine()->ChangeUint32ToFloat64(), a); 422 return AddNode(machine()->ChangeUint32ToFloat64(), a);
423 } 423 }
424 Node* ChangeFloat64ToInt32(Node* a) { 424 Node* ChangeFloat64ToInt32(Node* a) {
425 return AddNode(machine()->ChangeFloat64ToInt32(), a); 425 return AddNode(machine()->ChangeFloat64ToInt32(), a);
426 } 426 }
427 Node* ChangeFloat64ToUint32(Node* a) { 427 Node* ChangeFloat64ToUint32(Node* a) {
428 return AddNode(machine()->ChangeFloat64ToUint32(), a); 428 return AddNode(machine()->ChangeFloat64ToUint32(), a);
429 } 429 }
430 Node* TruncateFloat32ToInt64(Node* a) { 430 Node* TruncateFloat32ToInt64(Node* a) {
431 return AddNode(machine()->TruncateFloat32ToInt64(), a); 431 // TODO(ahaas): Remove this function as soon as it is not used anymore in
432 // WebAssembly.
433 return AddNode(machine()->TryTruncateFloat32ToInt64(), a);
434 }
435 Node* TryTruncateFloat32ToInt64(Node* a) {
436 return AddNode(machine()->TryTruncateFloat32ToInt64(), a);
432 } 437 }
433 Node* TruncateFloat64ToInt64(Node* a) { 438 Node* TruncateFloat64ToInt64(Node* a) {
434 // TODO(ahaas): Remove this function as soon as it is not used anymore in 439 // TODO(ahaas): Remove this function as soon as it is not used anymore in
435 // WebAssembly. 440 // WebAssembly.
436 return AddNode(machine()->TryTruncateFloat64ToInt64(), a); 441 return AddNode(machine()->TryTruncateFloat64ToInt64(), a);
437 } 442 }
438 Node* TryTruncateFloat64ToInt64(Node* a) { 443 Node* TryTruncateFloat64ToInt64(Node* a) {
439 return AddNode(machine()->TryTruncateFloat64ToInt64(), a); 444 return AddNode(machine()->TryTruncateFloat64ToInt64(), a);
440 } 445 }
441 Node* TruncateFloat32ToUint64(Node* a) { 446 Node* TruncateFloat32ToUint64(Node* a) {
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 bool bound_; 669 bool bound_;
665 friend class RawMachineAssembler; 670 friend class RawMachineAssembler;
666 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); 671 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel);
667 }; 672 };
668 673
669 } // namespace compiler 674 } // namespace compiler
670 } // namespace internal 675 } // namespace internal
671 } // namespace v8 676 } // namespace v8
672 677
673 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 678 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698