Chromium Code Reviews| Index: runtime/vm/raw_object.h |
| =================================================================== |
| --- runtime/vm/raw_object.h (revision 43103) |
| +++ runtime/vm/raw_object.h (working copy) |
| @@ -1023,8 +1023,9 @@ |
| struct PcDescriptorRec { |
| uword pc_offset() const { return pc_offset_; } |
| void set_pc_offset(uword value) { |
| - ASSERT((sizeof(value) == 4) || |
| - static_cast<uint64_t>(value) <= static_cast<uint64_t>(kMaxUint32)); |
| +#if defined(TARGET_ARCH_X64) || defined(TARGET_ARCH_ARM64) |
|
Ivan Posva
2015/01/23 18:57:31
ARCH_IS_64_BIT
Alternatively you could limit the
Florian Schneider
2015/01/26 10:28:01
The proper fix would be to rewrite IsUint/IsInt to
|
| + ASSERT(value <= static_cast<uword>(kMaxUint32)); |
| +#endif |
| pc_offset_ = value; |
| } |