Index: src/arm64/assembler-arm64.h |
diff --git a/src/arm64/assembler-arm64.h b/src/arm64/assembler-arm64.h |
index 1bafce845483049704619b88cb43617d1c07a4cd..f01cbaf08946d89a93136971267f0c938add07f9 100644 |
--- a/src/arm64/assembler-arm64.h |
+++ b/src/arm64/assembler-arm64.h |
@@ -1733,16 +1733,7 @@ class Assembler : public AssemblerBase { |
// Copy a string into the instruction stream, including the terminating NULL |
// character. The instruction pointer (pc_) is then aligned correctly for |
// subsequent instructions. |
- void EmitStringData(const char * string) { |
- size_t len = strlen(string) + 1; |
- DCHECK(RoundUp(len, kInstructionSize) <= static_cast<size_t>(kGap)); |
- EmitData(string, len); |
- // Pad with NULL characters until pc_ is aligned. |
- const char pad[] = {'\0', '\0', '\0', '\0'}; |
- STATIC_ASSERT(sizeof(pad) == kInstructionSize); |
- byte* next_pc = AlignUp(pc_, kInstructionSize); |
- EmitData(&pad, next_pc - pc_); |
- } |
+ void EmitStringData(const char* string); |
// Pseudo-instructions ------------------------------------------------------ |