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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 : prefix##32##name(a, b); \ | 432 : prefix##32##name(a, b); \ |
433 } | 433 } |
434 | 434 |
435 UINTPTR_BINOP(Uint, LessThan); | 435 UINTPTR_BINOP(Uint, LessThan); |
436 UINTPTR_BINOP(Uint, LessThanOrEqual); | 436 UINTPTR_BINOP(Uint, LessThanOrEqual); |
437 UINTPTR_BINOP(Uint, GreaterThanOrEqual); | 437 UINTPTR_BINOP(Uint, GreaterThanOrEqual); |
438 UINTPTR_BINOP(Uint, GreaterThan); | 438 UINTPTR_BINOP(Uint, GreaterThan); |
439 | 439 |
440 #undef UINTPTR_BINOP | 440 #undef UINTPTR_BINOP |
441 | 441 |
| 442 Node* Int32AbsWithOverflow(Node* a) { |
| 443 return AddNode(machine()->Int32AbsWithOverflow().op(), a); |
| 444 } |
| 445 |
| 446 Node* Int64AbsWithOverflow(Node* a) { |
| 447 return AddNode(machine()->Int64AbsWithOverflow().op(), a); |
| 448 } |
| 449 |
| 450 Node* IntPtrAbsWithOverflow(Node* a) { |
| 451 return kPointerSize == 8 ? Int64AbsWithOverflow(a) |
| 452 : Int32AbsWithOverflow(a); |
| 453 } |
| 454 |
442 Node* Float32Add(Node* a, Node* b) { | 455 Node* Float32Add(Node* a, Node* b) { |
443 return AddNode(machine()->Float32Add(), a, b); | 456 return AddNode(machine()->Float32Add(), a, b); |
444 } | 457 } |
445 Node* Float32Sub(Node* a, Node* b) { | 458 Node* Float32Sub(Node* a, Node* b) { |
446 return AddNode(machine()->Float32Sub(), a, b); | 459 return AddNode(machine()->Float32Sub(), a, b); |
447 } | 460 } |
448 Node* Float32Mul(Node* a, Node* b) { | 461 Node* Float32Mul(Node* a, Node* b) { |
449 return AddNode(machine()->Float32Mul(), a, b); | 462 return AddNode(machine()->Float32Mul(), a, b); |
450 } | 463 } |
451 Node* Float32Div(Node* a, Node* b) { | 464 Node* Float32Div(Node* a, Node* b) { |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
856 bool deferred_; | 869 bool deferred_; |
857 friend class RawMachineAssembler; | 870 friend class RawMachineAssembler; |
858 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); | 871 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); |
859 }; | 872 }; |
860 | 873 |
861 } // namespace compiler | 874 } // namespace compiler |
862 } // namespace internal | 875 } // namespace internal |
863 } // namespace v8 | 876 } // namespace v8 |
864 | 877 |
865 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 878 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
OLD | NEW |