Index: src/compiler/x64/code-generator-x64.cc |
diff --git a/src/compiler/x64/code-generator-x64.cc b/src/compiler/x64/code-generator-x64.cc |
index c4258a387d1f4c9f48cc1ad6b839c551a78b7274..f5117f292a8cc300c98ec0273e40edb6f473fd7f 100644 |
--- a/src/compiler/x64/code-generator-x64.cc |
+++ b/src/compiler/x64/code-generator-x64.cc |
@@ -7,7 +7,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/scopes.h" |
#include "src/x64/assembler-x64.h" |
#include "src/x64/macro-assembler-x64.h" |
@@ -1179,10 +1178,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) { |