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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 Node* Float32Div(Node* a, Node* b) { | 384 Node* Float32Div(Node* a, Node* b) { |
385 return AddNode(machine()->Float32Div(), a, b); | 385 return AddNode(machine()->Float32Div(), a, b); |
386 } | 386 } |
387 Node* Float32Max(Node* a, Node* b) { | 387 Node* Float32Max(Node* a, Node* b) { |
388 return AddNode(machine()->Float32Max().op(), a, b); | 388 return AddNode(machine()->Float32Max().op(), a, b); |
389 } | 389 } |
390 Node* Float32Min(Node* a, Node* b) { | 390 Node* Float32Min(Node* a, Node* b) { |
391 return AddNode(machine()->Float32Min().op(), a, b); | 391 return AddNode(machine()->Float32Min().op(), a, b); |
392 } | 392 } |
393 Node* Float32Abs(Node* a) { return AddNode(machine()->Float32Abs(), a); } | 393 Node* Float32Abs(Node* a) { return AddNode(machine()->Float32Abs(), a); } |
| 394 Node* Float32Neg(Node* a) { return Float32Sub(Float32Constant(-0.0f), a); } |
394 Node* Float32Sqrt(Node* a) { return AddNode(machine()->Float32Sqrt(), a); } | 395 Node* Float32Sqrt(Node* a) { return AddNode(machine()->Float32Sqrt(), a); } |
395 Node* Float32Equal(Node* a, Node* b) { | 396 Node* Float32Equal(Node* a, Node* b) { |
396 return AddNode(machine()->Float32Equal(), a, b); | 397 return AddNode(machine()->Float32Equal(), a, b); |
397 } | 398 } |
398 Node* Float32NotEqual(Node* a, Node* b) { | 399 Node* Float32NotEqual(Node* a, Node* b) { |
399 return Word32BinaryNot(Float32Equal(a, b)); | 400 return Word32BinaryNot(Float32Equal(a, b)); |
400 } | 401 } |
401 Node* Float32LessThan(Node* a, Node* b) { | 402 Node* Float32LessThan(Node* a, Node* b) { |
402 return AddNode(machine()->Float32LessThan(), a, b); | 403 return AddNode(machine()->Float32LessThan(), a, b); |
403 } | 404 } |
(...skipping 20 matching lines...) Expand all Loading... |
424 Node* Float64Mod(Node* a, Node* b) { | 425 Node* Float64Mod(Node* a, Node* b) { |
425 return AddNode(machine()->Float64Mod(), a, b); | 426 return AddNode(machine()->Float64Mod(), a, b); |
426 } | 427 } |
427 Node* Float64Max(Node* a, Node* b) { | 428 Node* Float64Max(Node* a, Node* b) { |
428 return AddNode(machine()->Float64Max().op(), a, b); | 429 return AddNode(machine()->Float64Max().op(), a, b); |
429 } | 430 } |
430 Node* Float64Min(Node* a, Node* b) { | 431 Node* Float64Min(Node* a, Node* b) { |
431 return AddNode(machine()->Float64Min().op(), a, b); | 432 return AddNode(machine()->Float64Min().op(), a, b); |
432 } | 433 } |
433 Node* Float64Abs(Node* a) { return AddNode(machine()->Float64Abs(), a); } | 434 Node* Float64Abs(Node* a) { return AddNode(machine()->Float64Abs(), a); } |
| 435 Node* Float64Neg(Node* a) { return Float64Sub(Float64Constant(-0.0), a); } |
434 Node* Float64Sqrt(Node* a) { return AddNode(machine()->Float64Sqrt(), a); } | 436 Node* Float64Sqrt(Node* a) { return AddNode(machine()->Float64Sqrt(), a); } |
435 Node* Float64Equal(Node* a, Node* b) { | 437 Node* Float64Equal(Node* a, Node* b) { |
436 return AddNode(machine()->Float64Equal(), a, b); | 438 return AddNode(machine()->Float64Equal(), a, b); |
437 } | 439 } |
438 Node* Float64NotEqual(Node* a, Node* b) { | 440 Node* Float64NotEqual(Node* a, Node* b) { |
439 return Word32BinaryNot(Float64Equal(a, b)); | 441 return Word32BinaryNot(Float64Equal(a, b)); |
440 } | 442 } |
441 Node* Float64LessThan(Node* a, Node* b) { | 443 Node* Float64LessThan(Node* a, Node* b) { |
442 return AddNode(machine()->Float64LessThan(), a, b); | 444 return AddNode(machine()->Float64LessThan(), a, b); |
443 } | 445 } |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 bool deferred_; | 732 bool deferred_; |
731 friend class RawMachineAssembler; | 733 friend class RawMachineAssembler; |
732 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); | 734 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); |
733 }; | 735 }; |
734 | 736 |
735 } // namespace compiler | 737 } // namespace compiler |
736 } // namespace internal | 738 } // namespace internal |
737 } // namespace v8 | 739 } // namespace v8 |
738 | 740 |
739 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 741 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
OLD | NEW |