Index: src/full-codegen/ia32/full-codegen-ia32.cc |
diff --git a/src/full-codegen/ia32/full-codegen-ia32.cc b/src/full-codegen/ia32/full-codegen-ia32.cc |
index 6652c92e9fd2f0a9dbdf1d48bab44a3ae11031bb..db5ed238b66ac9eac72b46c2036cc8350449c685 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.cc |
@@ -350,6 +350,11 @@ void FullCodeGenerator::Generate() { |
VisitDeclarations(scope()->declarations()); |
} |
+ // Assert that the declarations do not use ICs. Otherwise the debugger |
+ // won't be able to redirect a PC at an IC to the correct IC in newly |
+ // recompiled code. |
+ DCHECK_EQ(0, ic_total_count_); |
+ |
{ Comment cmnt(masm_, "[ Stack check"); |
PrepareForBailoutForId(BailoutId::Declarations(), NO_REGISTERS); |
Label ok; |