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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 Node* Float64LessThanOrEqual(Node* a, Node* b) { | 527 Node* Float64LessThanOrEqual(Node* a, Node* b) { |
528 return AddNode(machine()->Float64LessThanOrEqual(), a, b); | 528 return AddNode(machine()->Float64LessThanOrEqual(), a, b); |
529 } | 529 } |
530 Node* Float64GreaterThan(Node* a, Node* b) { return Float64LessThan(b, a); } | 530 Node* Float64GreaterThan(Node* a, Node* b) { return Float64LessThan(b, a); } |
531 Node* Float64GreaterThanOrEqual(Node* a, Node* b) { | 531 Node* Float64GreaterThanOrEqual(Node* a, Node* b) { |
532 return Float64LessThanOrEqual(b, a); | 532 return Float64LessThanOrEqual(b, a); |
533 } | 533 } |
534 | 534 |
535 // Conversions. | 535 // Conversions. |
536 Node* BitcastTaggedToWord(Node* a) { | 536 Node* BitcastTaggedToWord(Node* a) { |
| 537 #ifdef ENABLE_VERIFY_CSA |
537 return AddNode(machine()->BitcastTaggedToWord(), a); | 538 return AddNode(machine()->BitcastTaggedToWord(), a); |
| 539 #else |
| 540 return a; |
| 541 #endif |
538 } | 542 } |
539 Node* BitcastWordToTagged(Node* a) { | 543 Node* BitcastWordToTagged(Node* a) { |
540 return AddNode(machine()->BitcastWordToTagged(), a); | 544 return AddNode(machine()->BitcastWordToTagged(), a); |
541 } | 545 } |
542 Node* BitcastWordToTaggedSigned(Node* a) { | 546 Node* BitcastWordToTaggedSigned(Node* a) { |
| 547 #ifdef ENABLE_VERIFY_CSA |
543 return AddNode(machine()->BitcastWordToTaggedSigned(), a); | 548 return AddNode(machine()->BitcastWordToTaggedSigned(), a); |
| 549 #else |
| 550 return a; |
| 551 #endif |
544 } | 552 } |
545 Node* TruncateFloat64ToWord32(Node* a) { | 553 Node* TruncateFloat64ToWord32(Node* a) { |
546 return AddNode(machine()->TruncateFloat64ToWord32(), a); | 554 return AddNode(machine()->TruncateFloat64ToWord32(), a); |
547 } | 555 } |
548 Node* ChangeFloat32ToFloat64(Node* a) { | 556 Node* ChangeFloat32ToFloat64(Node* a) { |
549 return AddNode(machine()->ChangeFloat32ToFloat64(), a); | 557 return AddNode(machine()->ChangeFloat32ToFloat64(), a); |
550 } | 558 } |
551 Node* ChangeInt32ToFloat64(Node* a) { | 559 Node* ChangeInt32ToFloat64(Node* a) { |
552 return AddNode(machine()->ChangeInt32ToFloat64(), a); | 560 return AddNode(machine()->ChangeInt32ToFloat64(), a); |
553 } | 561 } |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
834 bool deferred_; | 842 bool deferred_; |
835 friend class RawMachineAssembler; | 843 friend class RawMachineAssembler; |
836 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); | 844 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); |
837 }; | 845 }; |
838 | 846 |
839 } // namespace compiler | 847 } // namespace compiler |
840 } // namespace internal | 848 } // namespace internal |
841 } // namespace v8 | 849 } // namespace v8 |
842 | 850 |
843 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 851 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
OLD | NEW |