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

Unified Diff: src/a64/utils-a64.h

Issue 196473021: A64: Handle a few TODOs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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
« src/a64/macro-assembler-a64.cc ('K') | « src/a64/stub-cache-a64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/a64/utils-a64.h
diff --git a/src/a64/utils-a64.h b/src/a64/utils-a64.h
index 16c51a9c8b52770b44d09fe738adc1cc34dbd80c..241b8142d578318fcd33ed9dd58f367adf7d670f 100644
--- a/src/a64/utils-a64.h
+++ b/src/a64/utils-a64.h
@@ -41,6 +41,10 @@ R(24) R(25) R(26) R(27) R(28) R(29) R(30) R(31)
namespace v8 {
namespace internal {
+// These are global assumptions in v8.
+STATIC_ASSERT((static_cast<int32_t>(-1) >> 1) == -1);
+STATIC_ASSERT((static_cast<uint32_t>(-1) >> 1) == 0x7FFFFFFF);
+
// Floating point representation.
static inline uint32_t float_to_rawbits(float value) {
uint32_t bits = 0;
« src/a64/macro-assembler-a64.cc ('K') | « src/a64/stub-cache-a64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698