Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: src/ic/ic.h

Issue 1351493002: Extra code to diagnose a crash bug. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Code comments. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ic/ia32/ic-ia32.cc ('k') | src/ic/mips/ic-mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/ic/ia32/ic-ia32.cc ('k') | src/ic/mips/ic-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698