Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(348)

Unified Diff: src/compiler/raw-machine-assembler.h

Issue 1356913002: [turbofan] Add support for reinterpreting integers as floating point and vice versa. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rename ReinterpretAs to BitcastTo Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/ppc/instruction-selector-ppc.cc ('k') | src/compiler/typer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/raw-machine-assembler.h
diff --git a/src/compiler/raw-machine-assembler.h b/src/compiler/raw-machine-assembler.h
index 7329af0598232a8560c44e9fe272c4b765bda17c..03023b42a00ca695ade4e46a79bae467df1144c1 100644
--- a/src/compiler/raw-machine-assembler.h
+++ b/src/compiler/raw-machine-assembler.h
@@ -433,6 +433,18 @@ class RawMachineAssembler {
Node* TruncateInt64ToInt32(Node* a) {
return NewNode(machine()->TruncateInt64ToInt32(), a);
}
+ Node* BitcastFloat32ToInt32(Node* a) {
+ return NewNode(machine()->BitcastFloat32ToInt32(), a);
+ }
+ Node* BitcastFloat64ToInt64(Node* a) {
+ return NewNode(machine()->BitcastFloat64ToInt64(), a);
+ }
+ Node* BitcastInt32ToFloat32(Node* a) {
+ return NewNode(machine()->BitcastInt32ToFloat32(), a);
+ }
+ Node* BitcastInt64ToFloat64(Node* a) {
+ return NewNode(machine()->BitcastInt64ToFloat64(), a);
+ }
Node* Float64RoundDown(Node* a) {
return NewNode(machine()->Float64RoundDown().op(), a);
}
« no previous file with comments | « src/compiler/ppc/instruction-selector-ppc.cc ('k') | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698