Index: src/compiler/code-generator-impl.h |
diff --git a/src/compiler/code-generator-impl.h b/src/compiler/code-generator-impl.h |
index 79423441c581d914f1bce763859bf61921b3b3ac..129f9409e3882275d80fd0f13689abc9d5198e10 100644 |
--- a/src/compiler/code-generator-impl.h |
+++ b/src/compiler/code-generator-impl.h |
@@ -144,6 +144,8 @@ class OutOfLineCode : public ZoneObject { |
static inline void FinishCode(MacroAssembler* masm) { |
#if V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_ARM |
masm->CheckConstPool(true, false); |
+#elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 |
+ masm->ud2(); |
#endif |
} |