Index: src/compiler.h |
diff --git a/src/compiler.h b/src/compiler.h |
index 44df9e090f1e17b4ac7ef59eb1356c8b2e0cde32..4ae66542b88820787908222efab3aae017dbdc7a 100644 |
--- a/src/compiler.h |
+++ b/src/compiler.h |
@@ -170,6 +170,9 @@ class CompilationInfo BASE_EMBEDDED { |
// current compilation pipeline. |
void AbortOptimization(); |
+ int number_of_ics() { return number_of_ics_; } |
+ void increment_number_of_ics() { number_of_ics_++; } |
+ |
private: |
Isolate* isolate_; |
@@ -184,7 +187,7 @@ class CompilationInfo BASE_EMBEDDED { |
NONOPT |
}; |
- CompilationInfo() : function_(NULL) {} |
+ CompilationInfo() : function_(NULL), number_of_ics_(0) {} |
void Initialize(Mode mode) { |
mode_ = V8::UseCrankshaft() ? mode : NONOPT; |
@@ -254,6 +257,8 @@ class CompilationInfo BASE_EMBEDDED { |
Mode mode_; |
int osr_ast_id_; |
+ int number_of_ics_; |
+ |
DISALLOW_COPY_AND_ASSIGN(CompilationInfo); |
}; |