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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 } | 404 } |
405 Node* Float32SubPreserveNan(Node* a, Node* b) { | 405 Node* Float32SubPreserveNan(Node* a, Node* b) { |
406 return AddNode(machine()->Float32SubPreserveNan(), a, b); | 406 return AddNode(machine()->Float32SubPreserveNan(), a, b); |
407 } | 407 } |
408 Node* Float32Mul(Node* a, Node* b) { | 408 Node* Float32Mul(Node* a, Node* b) { |
409 return AddNode(machine()->Float32Mul(), a, b); | 409 return AddNode(machine()->Float32Mul(), a, b); |
410 } | 410 } |
411 Node* Float32Div(Node* a, Node* b) { | 411 Node* Float32Div(Node* a, Node* b) { |
412 return AddNode(machine()->Float32Div(), a, b); | 412 return AddNode(machine()->Float32Div(), a, b); |
413 } | 413 } |
414 Node* Float32Max(Node* a, Node* b) { | |
415 return AddNode(machine()->Float32Max().op(), a, b); | |
416 } | |
417 Node* Float32Min(Node* a, Node* b) { | |
418 return AddNode(machine()->Float32Min().op(), a, b); | |
419 } | |
420 Node* Float32Abs(Node* a) { return AddNode(machine()->Float32Abs(), a); } | 414 Node* Float32Abs(Node* a) { return AddNode(machine()->Float32Abs(), a); } |
421 Node* Float32Neg(Node* a) { return Float32Sub(Float32Constant(-0.0f), a); } | 415 Node* Float32Neg(Node* a) { return Float32Sub(Float32Constant(-0.0f), a); } |
422 Node* Float32Sqrt(Node* a) { return AddNode(machine()->Float32Sqrt(), a); } | 416 Node* Float32Sqrt(Node* a) { return AddNode(machine()->Float32Sqrt(), a); } |
423 Node* Float32Equal(Node* a, Node* b) { | 417 Node* Float32Equal(Node* a, Node* b) { |
424 return AddNode(machine()->Float32Equal(), a, b); | 418 return AddNode(machine()->Float32Equal(), a, b); |
425 } | 419 } |
426 Node* Float32NotEqual(Node* a, Node* b) { | 420 Node* Float32NotEqual(Node* a, Node* b) { |
427 return Word32BinaryNot(Float32Equal(a, b)); | 421 return Word32BinaryNot(Float32Equal(a, b)); |
428 } | 422 } |
429 Node* Float32LessThan(Node* a, Node* b) { | 423 Node* Float32LessThan(Node* a, Node* b) { |
(...skipping 19 matching lines...) Expand all Loading... |
449 Node* Float64Mul(Node* a, Node* b) { | 443 Node* Float64Mul(Node* a, Node* b) { |
450 return AddNode(machine()->Float64Mul(), a, b); | 444 return AddNode(machine()->Float64Mul(), a, b); |
451 } | 445 } |
452 Node* Float64Div(Node* a, Node* b) { | 446 Node* Float64Div(Node* a, Node* b) { |
453 return AddNode(machine()->Float64Div(), a, b); | 447 return AddNode(machine()->Float64Div(), a, b); |
454 } | 448 } |
455 Node* Float64Mod(Node* a, Node* b) { | 449 Node* Float64Mod(Node* a, Node* b) { |
456 return AddNode(machine()->Float64Mod(), a, b); | 450 return AddNode(machine()->Float64Mod(), a, b); |
457 } | 451 } |
458 Node* Float64Max(Node* a, Node* b) { | 452 Node* Float64Max(Node* a, Node* b) { |
459 return AddNode(machine()->Float64Max().op(), a, b); | 453 return AddNode(machine()->Float64Max(), a, b); |
460 } | 454 } |
461 Node* Float64Min(Node* a, Node* b) { | 455 Node* Float64Min(Node* a, Node* b) { |
462 return AddNode(machine()->Float64Min().op(), a, b); | 456 return AddNode(machine()->Float64Min(), a, b); |
463 } | 457 } |
464 Node* Float64Abs(Node* a) { return AddNode(machine()->Float64Abs(), a); } | 458 Node* Float64Abs(Node* a) { return AddNode(machine()->Float64Abs(), a); } |
465 Node* Float64Neg(Node* a) { return Float64Sub(Float64Constant(-0.0), a); } | 459 Node* Float64Neg(Node* a) { return Float64Sub(Float64Constant(-0.0), a); } |
466 Node* Float64Acos(Node* a) { return AddNode(machine()->Float64Acos(), a); } | 460 Node* Float64Acos(Node* a) { return AddNode(machine()->Float64Acos(), a); } |
467 Node* Float64Acosh(Node* a) { return AddNode(machine()->Float64Acosh(), a); } | 461 Node* Float64Acosh(Node* a) { return AddNode(machine()->Float64Acosh(), a); } |
468 Node* Float64Asin(Node* a) { return AddNode(machine()->Float64Asin(), a); } | 462 Node* Float64Asin(Node* a) { return AddNode(machine()->Float64Asin(), a); } |
469 Node* Float64Asinh(Node* a) { return AddNode(machine()->Float64Asinh(), a); } | 463 Node* Float64Asinh(Node* a) { return AddNode(machine()->Float64Asinh(), a); } |
470 Node* Float64Atan(Node* a) { return AddNode(machine()->Float64Atan(), a); } | 464 Node* Float64Atan(Node* a) { return AddNode(machine()->Float64Atan(), a); } |
471 Node* Float64Atanh(Node* a) { return AddNode(machine()->Float64Atanh(), a); } | 465 Node* Float64Atanh(Node* a) { return AddNode(machine()->Float64Atanh(), a); } |
472 Node* Float64Atan2(Node* a, Node* b) { | 466 Node* Float64Atan2(Node* a, Node* b) { |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 bool deferred_; | 792 bool deferred_; |
799 friend class RawMachineAssembler; | 793 friend class RawMachineAssembler; |
800 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); | 794 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); |
801 }; | 795 }; |
802 | 796 |
803 } // namespace compiler | 797 } // namespace compiler |
804 } // namespace internal | 798 } // namespace internal |
805 } // namespace v8 | 799 } // namespace v8 |
806 | 800 |
807 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 801 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
OLD | NEW |