Index: src/full-codegen/arm/full-codegen-arm.cc |
diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc |
index 30913d50c73d07b9601f0fc9cbed96f93757b361..cb7c4f4d386f19303bc97a1bfdb8c841d8e05ce6 100644 |
--- a/src/full-codegen/arm/full-codegen-arm.cc |
+++ b/src/full-codegen/arm/full-codegen-arm.cc |
@@ -109,6 +109,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()); |