Index: src/ic/ic.h |
diff --git a/src/ic/ic.h b/src/ic/ic.h |
index ba606f9ecd770fe7ca38b88d8d495dc00b4f1d75..64dd7babdba96bdf9241fd87ad0b8b444a742551 100644 |
--- a/src/ic/ic.h |
+++ b/src/ic/ic.h |
@@ -323,8 +323,17 @@ class LoadIC : public IC { |
} |
// Code generator routines. |
- static void GenerateInitialize(MacroAssembler* masm) { GenerateMiss(masm); } |
- static void GenerateMiss(MacroAssembler* masm); |
+ |
+ // TODO(jkummerow): Remove the stress parameter and these stress constants |
+ // when a crash bug is fixed. |
+ static const int kStressNone = 0; |
+ static const int kStressInit = 1; |
+ static const int kStressDispatcher = 2; |
+ static const int kStressBuiltin = 3; |
+ static void GenerateInitialize(MacroAssembler* masm) { |
+ GenerateMiss(masm, kStressInit); |
+ } |
+ static void GenerateMiss(MacroAssembler* masm, int stress = kStressNone); |
static void GenerateRuntimeGetProperty(MacroAssembler* masm, |
LanguageMode language_mode); |
static void GenerateNormal(MacroAssembler* masm, LanguageMode language_mode); |