Chromium Code Reviews| Index: runtime/vm/code_descriptors.h |
| =================================================================== |
| --- runtime/vm/code_descriptors.h (revision 35415) |
| +++ runtime/vm/code_descriptors.h (working copy) |
| @@ -19,12 +19,13 @@ |
| intptr_t pc_offset; // PC offset value of the descriptor. |
| PcDescriptors::Kind kind; // Descriptor kind (kDeopt, kOther). |
| intptr_t deopt_id; // Deoptimization id. |
| - intptr_t data; // Token position or deopt rason. |
| + intptr_t data; // Token position or deopt reason. |
| intptr_t try_index; // Try block index of PC or deopt array index. |
| void SetTokenPos(intptr_t value) { data = value; } |
| intptr_t TokenPos() const { return data; } |
| void SetDeoptReason(DeoptReasonId value) { data = value; } |
| DeoptReasonId DeoptReason() const { |
| + ASSERT(static_cast<uword>(data) < kDeoptNumReasons); |
|
srdjan
2014/04/25 20:54:16
Remove static_cast
regis
2014/04/25 23:38:28
Done.
Casting to unsigned was to catch negative va
|
| return static_cast<DeoptReasonId>(data); |
| } |
| }; |