Lines 4-10
Link Here
|
4 |
u.asBits.tag = CellTag; |
4 |
u.asBits.tag = CellTag; |
5 |
else |
5 |
else |
6 |
u.asBits.tag = EmptyValueTag; |
6 |
u.asBits.tag = EmptyValueTag; |
7 |
+#if defined(__sparc64__) |
7 |
+#if defined(__sparc64__) || defined(__aarch64__) |
8 |
+ u.asBits.payload = reinterpret_cast<int64_t>(ptr); |
8 |
+ u.asBits.payload = reinterpret_cast<int64_t>(ptr); |
9 |
+#else |
9 |
+#else |
10 |
u.asBits.payload = reinterpret_cast<int32_t>(ptr); |
10 |
u.asBits.payload = reinterpret_cast<int32_t>(ptr); |
Lines 16-22
Link Here
|
16 |
u.asBits.tag = CellTag; |
16 |
u.asBits.tag = CellTag; |
17 |
else |
17 |
else |
18 |
u.asBits.tag = EmptyValueTag; |
18 |
u.asBits.tag = EmptyValueTag; |
19 |
+#if defined(__sparc64__) |
19 |
+#if defined(__sparc64__) || defined(__aarch64__) |
20 |
+ u.asBits.payload = reinterpret_cast<int64_t>(const_cast<JSCell*>(ptr)); |
20 |
+ u.asBits.payload = reinterpret_cast<int64_t>(const_cast<JSCell*>(ptr)); |
21 |
+#else |
21 |
+#else |
22 |
u.asBits.payload = reinterpret_cast<int32_t>(const_cast<JSCell*>(ptr)); |
22 |
u.asBits.payload = reinterpret_cast<int32_t>(const_cast<JSCell*>(ptr)); |