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/compiler/common-operator.h" | 8 #include "src/compiler/common-operator.h" |
9 #include "src/compiler/graph-builder.h" | 9 #include "src/compiler/graph-builder.h" |
10 #include "src/compiler/linkage.h" | 10 #include "src/compiler/linkage.h" |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 } | 383 } |
384 Node* TruncateFloat64ToFloat32(Node* a) { | 384 Node* TruncateFloat64ToFloat32(Node* a) { |
385 return NewNode(machine()->TruncateFloat64ToFloat32(), a); | 385 return NewNode(machine()->TruncateFloat64ToFloat32(), a); |
386 } | 386 } |
387 Node* TruncateFloat64ToInt32(Node* a) { | 387 Node* TruncateFloat64ToInt32(Node* a) { |
388 return NewNode(machine()->TruncateFloat64ToInt32(), a); | 388 return NewNode(machine()->TruncateFloat64ToInt32(), a); |
389 } | 389 } |
390 Node* TruncateInt64ToInt32(Node* a) { | 390 Node* TruncateInt64ToInt32(Node* a) { |
391 return NewNode(machine()->TruncateInt64ToInt32(), a); | 391 return NewNode(machine()->TruncateInt64ToInt32(), a); |
392 } | 392 } |
393 Node* Float64Floor(Node* a) { return NewNode(machine()->Float64Floor(), a); } | 393 Node* Float64RoundDown(Node* a) { |
394 Node* Float64Ceil(Node* a) { return NewNode(machine()->Float64Ceil(), a); } | 394 return NewNode(machine()->Float64RoundDown(), a); |
| 395 } |
395 Node* Float64RoundTruncate(Node* a) { | 396 Node* Float64RoundTruncate(Node* a) { |
396 return NewNode(machine()->Float64RoundTruncate(), a); | 397 return NewNode(machine()->Float64RoundTruncate(), a); |
397 } | 398 } |
398 Node* Float64RoundTiesAway(Node* a) { | 399 Node* Float64RoundTiesAway(Node* a) { |
399 return NewNode(machine()->Float64RoundTiesAway(), a); | 400 return NewNode(machine()->Float64RoundTiesAway(), a); |
400 } | 401 } |
401 | 402 |
402 // Float64 bit operations. | 403 // Float64 bit operations. |
403 Node* Float64ExtractLowWord32(Node* a) { | 404 Node* Float64ExtractLowWord32(Node* a) { |
404 return NewNode(machine()->Float64ExtractLowWord32(), a); | 405 return NewNode(machine()->Float64ExtractLowWord32(), a); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 BasicBlock* current_block_; | 479 BasicBlock* current_block_; |
479 | 480 |
480 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); | 481 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); |
481 }; | 482 }; |
482 | 483 |
483 } // namespace compiler | 484 } // namespace compiler |
484 } // namespace internal | 485 } // namespace internal |
485 } // namespace v8 | 486 } // namespace v8 |
486 | 487 |
487 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 488 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
OLD | NEW |