Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 8391bef9490d150e6318de906020622029737a53..e3eae317c213eaad53fcd3c428725c23d5f74a64 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -8544,13 +8544,13 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CompileForOnStackReplacement) { |
Address table_cursor = start + unoptimized->back_edge_table_offset(); |
uint32_t table_length = Memory::uint32_at(table_cursor); |
table_cursor += kIntSize; |
- uint8_t loop_depth = 0; |
+ uint32_t loop_depth = 0; |
for (unsigned i = 0; i < table_length; ++i) { |
// Table entries are (AST id, pc offset) pairs. |
uint32_t pc_offset = Memory::uint32_at(table_cursor + kIntSize); |
if (pc_offset == target_pc_offset) { |
ast_id = BailoutId(static_cast<int>(Memory::uint32_at(table_cursor))); |
- loop_depth = Memory::uint8_at(table_cursor + 2 * kIntSize); |
+ loop_depth = Memory::uint32_at(table_cursor + 2 * kIntSize); |
break; |
} |
table_cursor += FullCodeGenerator::kBackEdgeEntrySize; |