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

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

Issue 1504363002: [turbofan] Change TruncateFloat32ToInt64 to TryTruncateFloat32ToInt64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Cleanup Created 5 years 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
Index: src/compiler/raw-machine-assembler.h
diff --git a/src/compiler/raw-machine-assembler.h b/src/compiler/raw-machine-assembler.h
index 05195a8998ca49394511b0de8ff1c807d520cd54..9034ee48e47b860eeba942b8c18fd5cc0c682c19 100644
--- a/src/compiler/raw-machine-assembler.h
+++ b/src/compiler/raw-machine-assembler.h
@@ -428,7 +428,12 @@ class RawMachineAssembler {
return AddNode(machine()->ChangeFloat64ToUint32(), a);
}
Node* TruncateFloat32ToInt64(Node* a) {
- return AddNode(machine()->TruncateFloat32ToInt64(), a);
+ // TODO(ahaas): Remove this function as soon as it is not used anymore in
+ // WebAssembly.
+ return AddNode(machine()->TryTruncateFloat32ToInt64(), a);
+ }
+ Node* TryTruncateFloat32ToInt64(Node* a) {
+ return AddNode(machine()->TryTruncateFloat32ToInt64(), a);
}
Node* TruncateFloat64ToInt64(Node* a) {
// TODO(ahaas): Remove this function as soon as it is not used anymore in

Powered by Google App Engine
This is Rietveld 408576698