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 065889cfbb39e4c995a6bedd3e3ae2986d5b7973..43b1c7e91b2edcafee1b20aad083877635f87640 100644 |
--- a/src/compiler/arm64/code-generator-arm64.cc |
+++ b/src/compiler/arm64/code-generator-arm64.cc |
@@ -832,23 +832,6 @@ void CodeGenerator::AddNopForSmiCodeInlining() { __ movz(xzr, 0); } |
#undef __ |
-#if DEBUG |
- |
-// Checks whether the code between start_pc and end_pc is a no-op. |
-bool CodeGenerator::IsNopForSmiCodeInlining(Handle<Code> code, int start_pc, |
- int end_pc) { |
- if (start_pc + 4 != end_pc) { |
- return false; |
- } |
- Address instr_address = code->instruction_start() + start_pc; |
- |
- v8::internal::Instruction* instr = |
- reinterpret_cast<v8::internal::Instruction*>(instr_address); |
- return instr->IsMovz() && instr->Rd() == xzr.code() && instr->SixtyFourBits(); |
-} |
- |
-#endif // DEBUG |
- |
} // namespace compiler |
} // namespace internal |
} // namespace v8 |