Index: src/assembler.h |
diff --git a/src/assembler.h b/src/assembler.h |
index cbbe03c7d122b29625c2dfcc1874373c011bab0d..cfd991495df9256eaab1aa7d638f8a7688ccadb5 100644 |
--- a/src/assembler.h |
+++ b/src/assembler.h |
@@ -210,6 +210,12 @@ class Label BASE_EMBEDDED { |
friend class Assembler; |
friend class Displacement; |
friend class RegExpMacroAssemblerIrregexp; |
+ |
+#if V8_TARGET_ARCH_A64 |
+ // On A64, the Assembler keeps track of pointers to Labels to resolve branches |
+ // to distant targets. Copying labels would confuse the Assembler. |
+ DISALLOW_COPY_AND_ASSIGN(Label); // NOLINT |
+#endif |
}; |