Index: src/compiler/mips/code-generator-mips.cc |
diff --git a/src/compiler/mips/code-generator-mips.cc b/src/compiler/mips/code-generator-mips.cc |
index c081f51bdbd9f89194cf4cd046c016040235bf07..39d1d4ad96c8efcdca8884fefc38dbc6d363f4e7 100644 |
--- a/src/compiler/mips/code-generator-mips.cc |
+++ b/src/compiler/mips/code-generator-mips.cc |
@@ -6,7 +6,6 @@ |
#include "src/compiler/code-generator-impl.h" |
#include "src/compiler/gap-resolver.h" |
#include "src/compiler/node-matchers.h" |
-#include "src/compiler/osr.h" |
#include "src/mips/macro-assembler-mips.h" |
#include "src/scopes.h" |
@@ -916,10 +915,8 @@ void CodeGenerator::AssemblePrologue() { |
// remaining stack slots. |
if (FLAG_code_comments) __ RecordComment("-- OSR entrypoint --"); |
osr_pc_offset_ = __ pc_offset(); |
- int unoptimized_slots = |
- static_cast<int>(OsrHelper(info()).UnoptimizedFrameSlots()); |
- DCHECK(stack_slots >= unoptimized_slots); |
- stack_slots -= unoptimized_slots; |
+ DCHECK(stack_slots >= frame()->GetOsrStackSlotCount()); |
+ stack_slots -= frame()->GetOsrStackSlotCount(); |
} |
if (stack_slots > 0) { |