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

Unified Diff: src/lithium.h

Issue 16128004: Reorder switch clauses using newly-introduced execution counters in (Closed) Base URL: gh:v8/v8.git@master
Patch Set: tweak heuristic Created 7 years, 7 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/ia32/lithium-ia32.cc ('k') | src/lithium.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/lithium.h
diff --git a/src/lithium.h b/src/lithium.h
index 170e5c89bcee9e7cfa510753d005d668114c0c26..a5af32940fa5d0989db05e7a611f6303d5a39aa9 100644
--- a/src/lithium.h
+++ b/src/lithium.h
@@ -623,6 +623,24 @@ class LEnvironment: public ZoneObject {
Zone* zone_;
};
+class LDeoptCounterCell: public ZoneObject {
+ public:
+ LDeoptCounterCell(int id,
+ int max_value,
+ Handle<JSGlobalPropertyCell> cell) : id_(id),
+ max_value_(max_value),
+ cell_(cell) {
+ }
+
+ int id() { return id_; }
+ int max_value() { return max_value_; }
+ Handle<JSGlobalPropertyCell> cell() { return cell_; }
+
+ private:
+ int id_;
+ int max_value_;
+ Handle<JSGlobalPropertyCell> cell_;
+};
// Iterates over the non-null, non-constant operands in an environment.
class ShallowIterator BASE_EMBEDDED {
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/lithium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698