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

Unified Diff: src/type-info.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/objects-inl.h ('k') | src/type-info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/type-info.h
diff --git a/src/type-info.h b/src/type-info.h
index 6c7e31acdb6d071e433d9d37d377e79eaeb9dfd4..c30a1e53e5c6ecff85873520eee5def8ee2192f6 100644
--- a/src/type-info.h
+++ b/src/type-info.h
@@ -312,6 +312,7 @@ class TypeFeedbackOracle: public ZoneObject {
TypeInfo* overall_type);
Handle<Map> GetCompareMap(CompareOperation* expr);
TypeInfo SwitchType(CaseClause* clause);
+ int SwitchHitCount(CaseClause* clause);
TypeInfo IncrementType(CountOperation* expr);
Zone* zone() const { return zone_; }
@@ -342,6 +343,7 @@ class TypeFeedbackOracle: public ZoneObject {
Handle<Object> GetInfo(TypeFeedbackId ast_id);
private:
+ Handle<Code> code_;
Handle<Context> native_context_;
Isolate* isolate_;
Zone* zone_;
« no previous file with comments | « src/objects-inl.h ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698