Chromium Code Reviews| Index: runtime/vm/snapshot.h |
| =================================================================== |
| --- runtime/vm/snapshot.h (revision 37116) |
| +++ runtime/vm/snapshot.h (working copy) |
| @@ -176,7 +176,11 @@ |
| // Reads an intptr_t type value. |
| intptr_t ReadIntptrValue() { |
| + #if defined(ARCH_IS_32_BIT) |
|
Ivan Posva
2014/06/09 20:48:20
As discussed I don't think this is safe.
zra
2014/06/09 22:02:43
Removed change here.
|
| + int32_t value = Read<int32_t>(); |
| + #elif defined(ARCH_IS_64_BIT) |
| int64_t value = Read<int64_t>(); |
| + #endif |
| ASSERT((value <= kIntptrMax) && (value >= kIntptrMin)); |
| return static_cast<intptr_t>(value); |
| } |