Reviewers: Sven Panne,
Description:
[turbofan] Correctly use bit_cast instead of static_cast.
[email protected]
Please review this at https://codereview.chromium.org/559913003/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+1, -1 lines):
M src/compiler/simplified-operator-reducer.h
Index: src/compiler/simplified-operator-reducer.h
diff --git a/src/compiler/simplified-operator-reducer.h
b/src/compiler/simplified-operator-reducer.h
index
35ae34f366852d847ef92101b9774d89efca5021..b75c80ddeed27164cbfcc7ce97e4b84777aafdc0
100644
--- a/src/compiler/simplified-operator-reducer.h
+++ b/src/compiler/simplified-operator-reducer.h
@@ -32,7 +32,7 @@ class SimplifiedOperatorReducer FINAL : public Reducer {
Reduction ReplaceFloat64(double value);
Reduction ReplaceInt32(int32_t value);
Reduction ReplaceUint32(uint32_t value) {
- return ReplaceInt32(static_cast<int32_t>(value));
+ return ReplaceInt32(bit_cast<int32_t>(value));
}
Reduction ReplaceNumber(double value);
Reduction ReplaceNumber(int32_t value);
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.