Index: src/deoptimizer.cc |
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc |
index be0ea98b52e5a554c40445bc85c4ae35fc743aa6..8d448c9b679d13a53875534120cda4e854cbb224 100644 |
--- a/src/deoptimizer.cc |
+++ b/src/deoptimizer.cc |
@@ -2385,8 +2385,8 @@ void Deoptimizer::PatchInterruptCode(Code* unoptimized_code, |
uint32_t table_length = Memory::uint32_at(back_edge_cursor); |
back_edge_cursor += kIntSize; |
for (uint32_t i = 0; i < table_length; ++i) { |
- uint8_t loop_depth = Memory::uint8_at(back_edge_cursor + 2 * kIntSize); |
- if (loop_depth == loop_nesting_level) { |
+ uint32_t loop_depth = Memory::uint32_at(back_edge_cursor + 2 * kIntSize); |
+ if (static_cast<int>(loop_depth) == loop_nesting_level) { |
// Loop back edge has the loop depth that we want to patch. |
uint32_t pc_offset = Memory::uint32_at(back_edge_cursor + kIntSize); |
Address pc_after = unoptimized_code->instruction_start() + pc_offset; |
@@ -2417,8 +2417,8 @@ void Deoptimizer::RevertInterruptCode(Code* unoptimized_code, |
uint32_t table_length = Memory::uint32_at(back_edge_cursor); |
back_edge_cursor += kIntSize; |
for (uint32_t i = 0; i < table_length; ++i) { |
- uint8_t loop_depth = Memory::uint8_at(back_edge_cursor + 2 * kIntSize); |
- if (loop_depth <= loop_nesting_level) { |
+ uint32_t loop_depth = Memory::uint32_at(back_edge_cursor + 2 * kIntSize); |
+ if (static_cast<int>(loop_depth) <= loop_nesting_level) { |
uint32_t pc_offset = Memory::uint32_at(back_edge_cursor + kIntSize); |
Address pc_after = unoptimized_code->instruction_start() + pc_offset; |
RevertInterruptCodeAt(unoptimized_code, |
@@ -2449,13 +2449,13 @@ void Deoptimizer::VerifyInterruptCode(Code* unoptimized_code, |
uint32_t table_length = Memory::uint32_at(back_edge_cursor); |
back_edge_cursor += kIntSize; |
for (uint32_t i = 0; i < table_length; ++i) { |
- uint8_t loop_depth = Memory::uint8_at(back_edge_cursor + 2 * kIntSize); |
- CHECK_LE(loop_depth, Code::kMaxLoopNestingMarker); |
+ uint32_t loop_depth = Memory::uint32_at(back_edge_cursor + 2 * kIntSize); |
+ CHECK_LE(static_cast<int>(loop_depth), Code::kMaxLoopNestingMarker); |
// Assert that all back edges for shallower loops (and only those) |
// have already been patched. |
uint32_t pc_offset = Memory::uint32_at(back_edge_cursor + kIntSize); |
Address pc_after = unoptimized_code->instruction_start() + pc_offset; |
- CHECK_EQ((loop_depth <= loop_nesting_level), |
+ CHECK_EQ((static_cast<int>(loop_depth) <= loop_nesting_level), |
InterruptCodeIsPatched(unoptimized_code, |
pc_after, |
interrupt_code, |