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

Unified Diff: src/compiler.h

Issue 9403009: Count ICs that have type information. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 10 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 | « no previous file | src/compiler.cc » ('j') | src/ia32/full-codegen-ia32.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | src/ia32/full-codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698