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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 Node* Float32SubPreserveNan(Node* a, Node* b) { | 436 Node* Float32SubPreserveNan(Node* a, Node* b) { |
437 return AddNode(machine()->Float32SubPreserveNan(), a, b); | 437 return AddNode(machine()->Float32SubPreserveNan(), a, b); |
438 } | 438 } |
439 Node* Float32Mul(Node* a, Node* b) { | 439 Node* Float32Mul(Node* a, Node* b) { |
440 return AddNode(machine()->Float32Mul(), a, b); | 440 return AddNode(machine()->Float32Mul(), a, b); |
441 } | 441 } |
442 Node* Float32Div(Node* a, Node* b) { | 442 Node* Float32Div(Node* a, Node* b) { |
443 return AddNode(machine()->Float32Div(), a, b); | 443 return AddNode(machine()->Float32Div(), a, b); |
444 } | 444 } |
445 Node* Float32Abs(Node* a) { return AddNode(machine()->Float32Abs(), a); } | 445 Node* Float32Abs(Node* a) { return AddNode(machine()->Float32Abs(), a); } |
446 Node* Float32Neg(Node* a) { return Float32Sub(Float32Constant(-0.0f), a); } | 446 Node* Float32Neg(Node* a) { return AddNode(machine()->Float32Neg(), a); } |
447 Node* Float32Sqrt(Node* a) { return AddNode(machine()->Float32Sqrt(), a); } | 447 Node* Float32Sqrt(Node* a) { return AddNode(machine()->Float32Sqrt(), a); } |
448 Node* Float32Equal(Node* a, Node* b) { | 448 Node* Float32Equal(Node* a, Node* b) { |
449 return AddNode(machine()->Float32Equal(), a, b); | 449 return AddNode(machine()->Float32Equal(), a, b); |
450 } | 450 } |
451 Node* Float32NotEqual(Node* a, Node* b) { | 451 Node* Float32NotEqual(Node* a, Node* b) { |
452 return Word32BinaryNot(Float32Equal(a, b)); | 452 return Word32BinaryNot(Float32Equal(a, b)); |
453 } | 453 } |
454 Node* Float32LessThan(Node* a, Node* b) { | 454 Node* Float32LessThan(Node* a, Node* b) { |
455 return AddNode(machine()->Float32LessThan(), a, b); | 455 return AddNode(machine()->Float32LessThan(), a, b); |
456 } | 456 } |
(...skipping 23 matching lines...) Expand all Loading... |
480 Node* Float64Mod(Node* a, Node* b) { | 480 Node* Float64Mod(Node* a, Node* b) { |
481 return AddNode(machine()->Float64Mod(), a, b); | 481 return AddNode(machine()->Float64Mod(), a, b); |
482 } | 482 } |
483 Node* Float64Max(Node* a, Node* b) { | 483 Node* Float64Max(Node* a, Node* b) { |
484 return AddNode(machine()->Float64Max(), a, b); | 484 return AddNode(machine()->Float64Max(), a, b); |
485 } | 485 } |
486 Node* Float64Min(Node* a, Node* b) { | 486 Node* Float64Min(Node* a, Node* b) { |
487 return AddNode(machine()->Float64Min(), a, b); | 487 return AddNode(machine()->Float64Min(), a, b); |
488 } | 488 } |
489 Node* Float64Abs(Node* a) { return AddNode(machine()->Float64Abs(), a); } | 489 Node* Float64Abs(Node* a) { return AddNode(machine()->Float64Abs(), a); } |
490 Node* Float64Neg(Node* a) { return Float64Sub(Float64Constant(-0.0), a); } | 490 Node* Float64Neg(Node* a) { return AddNode(machine()->Float64Neg(), a); } |
491 Node* Float64Acos(Node* a) { return AddNode(machine()->Float64Acos(), a); } | 491 Node* Float64Acos(Node* a) { return AddNode(machine()->Float64Acos(), a); } |
492 Node* Float64Acosh(Node* a) { return AddNode(machine()->Float64Acosh(), a); } | 492 Node* Float64Acosh(Node* a) { return AddNode(machine()->Float64Acosh(), a); } |
493 Node* Float64Asin(Node* a) { return AddNode(machine()->Float64Asin(), a); } | 493 Node* Float64Asin(Node* a) { return AddNode(machine()->Float64Asin(), a); } |
494 Node* Float64Asinh(Node* a) { return AddNode(machine()->Float64Asinh(), a); } | 494 Node* Float64Asinh(Node* a) { return AddNode(machine()->Float64Asinh(), a); } |
495 Node* Float64Atan(Node* a) { return AddNode(machine()->Float64Atan(), a); } | 495 Node* Float64Atan(Node* a) { return AddNode(machine()->Float64Atan(), a); } |
496 Node* Float64Atanh(Node* a) { return AddNode(machine()->Float64Atanh(), a); } | 496 Node* Float64Atanh(Node* a) { return AddNode(machine()->Float64Atanh(), a); } |
497 Node* Float64Atan2(Node* a, Node* b) { | 497 Node* Float64Atan2(Node* a, Node* b) { |
498 return AddNode(machine()->Float64Atan2(), a, b); | 498 return AddNode(machine()->Float64Atan2(), a, b); |
499 } | 499 } |
500 Node* Float64Cbrt(Node* a) { return AddNode(machine()->Float64Cbrt(), a); } | 500 Node* Float64Cbrt(Node* a) { return AddNode(machine()->Float64Cbrt(), a); } |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
832 bool deferred_; | 832 bool deferred_; |
833 friend class RawMachineAssembler; | 833 friend class RawMachineAssembler; |
834 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); | 834 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); |
835 }; | 835 }; |
836 | 836 |
837 } // namespace compiler | 837 } // namespace compiler |
838 } // namespace internal | 838 } // namespace internal |
839 } // namespace v8 | 839 } // namespace v8 |
840 | 840 |
841 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 841 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
OLD | NEW |