| 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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 return AddNode(machine()->TruncateFloat32ToInt64(), a); |
| 432 } | 432 } |
| 433 Node* TruncateFloat64ToInt64(Node* a) { | 433 Node* TruncateFloat64ToInt64(Node* a) { |
| 434 return AddNode(machine()->TruncateFloat64ToInt64(), a); | 434 // TODO(ahaas): Remove this function as soon as it is not used anymore in |
| 435 // WebAssembly. |
| 436 return AddNode(machine()->TryTruncateFloat64ToInt64(), a); |
| 437 } |
| 438 Node* TryTruncateFloat64ToInt64(Node* a) { |
| 439 return AddNode(machine()->TryTruncateFloat64ToInt64(), a); |
| 435 } | 440 } |
| 436 Node* TruncateFloat32ToUint64(Node* a) { | 441 Node* TruncateFloat32ToUint64(Node* a) { |
| 437 return AddNode(machine()->TruncateFloat32ToUint64(), a); | 442 return AddNode(machine()->TruncateFloat32ToUint64(), a); |
| 438 } | 443 } |
| 439 Node* TruncateFloat64ToUint64(Node* a) { | 444 Node* TruncateFloat64ToUint64(Node* a) { |
| 440 return AddNode(machine()->TruncateFloat64ToUint64(), a); | 445 return AddNode(machine()->TruncateFloat64ToUint64(), a); |
| 441 } | 446 } |
| 442 Node* ChangeInt32ToInt64(Node* a) { | 447 Node* ChangeInt32ToInt64(Node* a) { |
| 443 return AddNode(machine()->ChangeInt32ToInt64(), a); | 448 return AddNode(machine()->ChangeInt32ToInt64(), a); |
| 444 } | 449 } |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 bool bound_; | 664 bool bound_; |
| 660 friend class RawMachineAssembler; | 665 friend class RawMachineAssembler; |
| 661 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); | 666 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); |
| 662 }; | 667 }; |
| 663 | 668 |
| 664 } // namespace compiler | 669 } // namespace compiler |
| 665 } // namespace internal | 670 } // namespace internal |
| 666 } // namespace v8 | 671 } // namespace v8 |
| 667 | 672 |
| 668 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 673 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
| OLD | NEW |