Index: src/arm/deoptimizer-arm.cc |
diff --git a/src/arm/deoptimizer-arm.cc b/src/arm/deoptimizer-arm.cc |
index cd70e6de8242f4d6638bdc0c8f645288c50ffcde..80b77732963dcd58fa9bb129f3ce753dd80110e9 100644 |
--- a/src/arm/deoptimizer-arm.cc |
+++ b/src/arm/deoptimizer-arm.cc |
@@ -93,6 +93,12 @@ void Deoptimizer::DeoptimizeFunction(JSFunction* function) { |
Address deoptimization_entry = Deoptimizer::GetDeoptimizationEntry( |
deoptimization_index, Deoptimizer::LAZY); |
patcher.masm()->Call(deoptimization_entry, RelocInfo::NONE); |
+#ifdef DEBUG |
Kevin Millikin (Chromium)
2011/08/05 15:10:16
There must be a better fix than this. The patcher
Michael Starzinger
2011/08/08 09:31:25
I think making patch_size() giving the correct ans
|
+ while (patcher.masm()->pc_offset() < patch_size()) { |
+ patcher.masm()->bkpt(0); |
+ } |
+ ASSERT(patcher.masm()->pc_offset() == patch_size()); |
+#endif |
last_pc_offset += patch_size(); |
} |
} |