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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 } | 525 } |
526 Node* Float64LessThanOrEqual(Node* a, Node* b) { | 526 Node* Float64LessThanOrEqual(Node* a, Node* b) { |
527 return AddNode(machine()->Float64LessThanOrEqual(), a, b); | 527 return AddNode(machine()->Float64LessThanOrEqual(), a, b); |
528 } | 528 } |
529 Node* Float64GreaterThan(Node* a, Node* b) { return Float64LessThan(b, a); } | 529 Node* Float64GreaterThan(Node* a, Node* b) { return Float64LessThan(b, a); } |
530 Node* Float64GreaterThanOrEqual(Node* a, Node* b) { | 530 Node* Float64GreaterThanOrEqual(Node* a, Node* b) { |
531 return Float64LessThanOrEqual(b, a); | 531 return Float64LessThanOrEqual(b, a); |
532 } | 532 } |
533 | 533 |
534 // Conversions. | 534 // Conversions. |
| 535 Node* BitcastTaggedToWord(Node* a) { |
| 536 return AddNode(machine()->BitcastTaggedToWord(), a); |
| 537 } |
535 Node* BitcastWordToTagged(Node* a) { | 538 Node* BitcastWordToTagged(Node* a) { |
536 return AddNode(machine()->BitcastWordToTagged(), a); | 539 return AddNode(machine()->BitcastWordToTagged(), a); |
537 } | 540 } |
| 541 Node* BitcastWordToTaggedSigned(Node* a) { |
| 542 return AddNode(machine()->BitcastWordToTaggedSigned(), a); |
| 543 } |
538 Node* TruncateFloat64ToWord32(Node* a) { | 544 Node* TruncateFloat64ToWord32(Node* a) { |
539 return AddNode(machine()->TruncateFloat64ToWord32(), a); | 545 return AddNode(machine()->TruncateFloat64ToWord32(), a); |
540 } | 546 } |
541 Node* ChangeFloat32ToFloat64(Node* a) { | 547 Node* ChangeFloat32ToFloat64(Node* a) { |
542 return AddNode(machine()->ChangeFloat32ToFloat64(), a); | 548 return AddNode(machine()->ChangeFloat32ToFloat64(), a); |
543 } | 549 } |
544 Node* ChangeInt32ToFloat64(Node* a) { | 550 Node* ChangeInt32ToFloat64(Node* a) { |
545 return AddNode(machine()->ChangeInt32ToFloat64(), a); | 551 return AddNode(machine()->ChangeInt32ToFloat64(), a); |
546 } | 552 } |
547 Node* ChangeUint32ToFloat64(Node* a) { | 553 Node* ChangeUint32ToFloat64(Node* a) { |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 bool deferred_; | 850 bool deferred_; |
845 friend class RawMachineAssembler; | 851 friend class RawMachineAssembler; |
846 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); | 852 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); |
847 }; | 853 }; |
848 | 854 |
849 } // namespace compiler | 855 } // namespace compiler |
850 } // namespace internal | 856 } // namespace internal |
851 } // namespace v8 | 857 } // namespace v8 |
852 | 858 |
853 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 859 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
OLD | NEW |