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

Unified Diff: src/compiler/operator.h

Issue 553843002: Replace our home-grown BitCast with bit_cast from Chrome/Google3. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/node-cache.cc ('k') | src/compiler/simplified-operator-reducer-unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/operator.h
diff --git a/src/compiler/operator.h b/src/compiler/operator.h
index bb318d846df189d4e9fc1aeff968e6ac9f8f9472..471bb1e116487c87e464a66c00c17703dca4f750 100644
--- a/src/compiler/operator.h
+++ b/src/compiler/operator.h
@@ -171,10 +171,10 @@ struct StaticParameterTraits<double> {
return os << val;
}
static int HashCode(double a) {
- return static_cast<int>(BitCast<int64_t>(a));
+ return static_cast<int>(bit_cast<int64_t>(a));
}
static bool Equals(double a, double b) {
- return BitCast<int64_t>(a) == BitCast<int64_t>(b);
+ return bit_cast<int64_t>(a) == bit_cast<int64_t>(b);
}
};
« no previous file with comments | « src/compiler/node-cache.cc ('k') | src/compiler/simplified-operator-reducer-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698