Index: src/compiler/arm64/code-generator-arm64.cc |
diff --git a/src/compiler/arm64/code-generator-arm64.cc b/src/compiler/arm64/code-generator-arm64.cc |
index bea4805f56132f111484b0a5a17b91728cac865d..1aa20207e73abfa90c5b9082e72242eded0c3d99 100644 |
--- a/src/compiler/arm64/code-generator-arm64.cc |
+++ b/src/compiler/arm64/code-generator-arm64.cc |
@@ -8,7 +8,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" |
namespace v8 { |
@@ -900,10 +899,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) { |