Index: src/full-codegen/arm64/full-codegen-arm64.cc |
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc |
index a93362e5695ddc2f2c0dc9442cef1d749ca8c973..5c5f65dfab5f00ecadaa7433782ec0a99e847555 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -108,6 +108,10 @@ class JumpPatchSite BASE_EMBEDDED { |
// frames-arm.h for its layout. |
void FullCodeGenerator::Generate() { |
CompilationInfo* info = info_; |
+ // Block sharing of code target entries. The interrupt checks must be |
+ // possible to patch individually, and replacing code with a debug version |
+ // relies on RelocInfo not being shared. |
+ Assembler::BlockCodeTargetSharingScope block_code_target_sharing(masm_); |
profiling_counter_ = isolate()->factory()->NewCell( |
Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate())); |
SetFunctionPosition(literal()); |