OLD | NEW |
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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 } | 432 } |
433 Node* TruncateFloat64ToInt64(Node* a) { | 433 Node* TruncateFloat64ToInt64(Node* a) { |
434 // TODO(ahaas): Remove this function as soon as it is not used anymore in | 434 // TODO(ahaas): Remove this function as soon as it is not used anymore in |
435 // WebAssembly. | 435 // WebAssembly. |
436 return AddNode(machine()->TryTruncateFloat64ToInt64(), a); | 436 return AddNode(machine()->TryTruncateFloat64ToInt64(), a); |
437 } | 437 } |
438 Node* TryTruncateFloat64ToInt64(Node* a) { | 438 Node* TryTruncateFloat64ToInt64(Node* a) { |
439 return AddNode(machine()->TryTruncateFloat64ToInt64(), a); | 439 return AddNode(machine()->TryTruncateFloat64ToInt64(), a); |
440 } | 440 } |
441 Node* TruncateFloat32ToUint64(Node* a) { | 441 Node* TruncateFloat32ToUint64(Node* a) { |
442 return AddNode(machine()->TruncateFloat32ToUint64(), a); | 442 // TODO(ahaas): Remove this function as soon as it is not used anymore in |
| 443 // WebAssembly. |
| 444 return AddNode(machine()->TryTruncateFloat32ToUint64(), a); |
| 445 } |
| 446 Node* TryTruncateFloat32ToUint64(Node* a) { |
| 447 return AddNode(machine()->TryTruncateFloat32ToUint64(), a); |
443 } | 448 } |
444 Node* TruncateFloat64ToUint64(Node* a) { | 449 Node* TruncateFloat64ToUint64(Node* a) { |
445 // TODO(ahaas): Remove this function as soon as it is not used anymore in | 450 // TODO(ahaas): Remove this function as soon as it is not used anymore in |
446 // WebAssembly. | 451 // WebAssembly. |
447 return AddNode(machine()->TryTruncateFloat64ToUint64(), a); | 452 return AddNode(machine()->TryTruncateFloat64ToUint64(), a); |
448 } | 453 } |
449 Node* TryTruncateFloat64ToUint64(Node* a) { | 454 Node* TryTruncateFloat64ToUint64(Node* a) { |
450 return AddNode(machine()->TryTruncateFloat64ToUint64(), a); | 455 return AddNode(machine()->TryTruncateFloat64ToUint64(), a); |
451 } | 456 } |
452 Node* ChangeInt32ToInt64(Node* a) { | 457 Node* ChangeInt32ToInt64(Node* a) { |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 bool bound_; | 674 bool bound_; |
670 friend class RawMachineAssembler; | 675 friend class RawMachineAssembler; |
671 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); | 676 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); |
672 }; | 677 }; |
673 | 678 |
674 } // namespace compiler | 679 } // namespace compiler |
675 } // namespace internal | 680 } // namespace internal |
676 } // namespace v8 | 681 } // namespace v8 |
677 | 682 |
678 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 683 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
OLD | NEW |