| Index: src/full-codegen/x64/full-codegen-x64.cc
|
| diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc
|
| index 894a64a2ee657f5c23b9b79ddaad84cf1febc17d..ad0382c3f7e509d44ea2e45e15df9176a4870530 100644
|
| --- a/src/full-codegen/x64/full-codegen-x64.cc
|
| +++ b/src/full-codegen/x64/full-codegen-x64.cc
|
| @@ -348,6 +348,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;
|
|
|