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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 } | 431 } |
432 Node* ChangeUint32ToFloat64(Node* a) { | 432 Node* ChangeUint32ToFloat64(Node* a) { |
433 return AddNode(machine()->ChangeUint32ToFloat64(), a); | 433 return AddNode(machine()->ChangeUint32ToFloat64(), a); |
434 } | 434 } |
435 Node* ChangeFloat64ToInt32(Node* a) { | 435 Node* ChangeFloat64ToInt32(Node* a) { |
436 return AddNode(machine()->ChangeFloat64ToInt32(), a); | 436 return AddNode(machine()->ChangeFloat64ToInt32(), a); |
437 } | 437 } |
438 Node* ChangeFloat64ToUint32(Node* a) { | 438 Node* ChangeFloat64ToUint32(Node* a) { |
439 return AddNode(machine()->ChangeFloat64ToUint32(), a); | 439 return AddNode(machine()->ChangeFloat64ToUint32(), a); |
440 } | 440 } |
441 Node* TruncateFloat32ToInt64(Node* a) { | |
442 return AddNode(machine()->TruncateFloat32ToInt64(), a); | |
443 } | |
444 Node* TruncateFloat64ToInt64(Node* a) { | 441 Node* TruncateFloat64ToInt64(Node* a) { |
445 return AddNode(machine()->TruncateFloat64ToInt64(), a); | 442 return AddNode(machine()->TruncateFloat64ToInt64(), a); |
446 } | 443 } |
447 Node* TruncateFloat64ToUint64(Node* a) { | 444 Node* TruncateFloat64ToUint64(Node* a) { |
448 return AddNode(machine()->TruncateFloat64ToUint64(), a); | 445 return AddNode(machine()->TruncateFloat64ToUint64(), a); |
449 } | 446 } |
450 Node* ChangeInt32ToInt64(Node* a) { | 447 Node* ChangeInt32ToInt64(Node* a) { |
451 return AddNode(machine()->ChangeInt32ToInt64(), a); | 448 return AddNode(machine()->ChangeInt32ToInt64(), a); |
452 } | 449 } |
453 Node* ChangeUint32ToUint64(Node* a) { | 450 Node* ChangeUint32ToUint64(Node* a) { |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
638 BasicBlock* current_block_; | 635 BasicBlock* current_block_; |
639 | 636 |
640 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); | 637 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); |
641 }; | 638 }; |
642 | 639 |
643 } // namespace compiler | 640 } // namespace compiler |
644 } // namespace internal | 641 } // namespace internal |
645 } // namespace v8 | 642 } // namespace v8 |
646 | 643 |
647 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 644 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
OLD | NEW |