Index: src/deoptimizer.h |
diff --git a/src/deoptimizer.h b/src/deoptimizer.h |
index 69aa497f8c31e30b5df9012a09738fe04a85f5a5..6c3754cc852880c1c1e6ee3cc914d00f711c85db 100644 |
--- a/src/deoptimizer.h |
+++ b/src/deoptimizer.h |
@@ -134,6 +134,12 @@ class Deoptimizer : public Malloced { |
Code* check_code, |
Code* replacement_code); |
+ // Patch stack guard check at instruction before pc_after in |
+ // the unoptimized code to unconditionally call replacement_code. |
+ static void PatchStackCheckAt(Address pc_after, |
+ Code* check_code, |
+ Code* replacement_code); |
+ |
// Change all patched stack guard checks in the unoptimized code |
// back to a normal stack guard check. |
static void RevertStackCheckCode(Code* unoptimized_code, |