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

Unified Diff: src/compiler/schedule.h

Issue 931623002: [turbofan] Optimize certain chains of Branch into a Switch. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE Created 5 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
Index: src/compiler/schedule.h
diff --git a/src/compiler/schedule.h b/src/compiler/schedule.h
index aa479851f943107c873ddf6187ddf5af2752b007..7afdbe066ccc048d2be683f4fad3102691ec42ae 100644
--- a/src/compiler/schedule.h
+++ b/src/compiler/schedule.h
@@ -101,11 +101,16 @@ class BasicBlock FINAL : public ZoneObject {
// Nodes in the basic block.
typedef Node* value_type;
+ typedef value_type& reference;
Michael Starzinger 2015/02/17 12:23:35 Do we really need these two typedefs?
Benedikt Meurer 2015/02/17 12:30:38 No, removed them.
+ typedef value_type const& const_reference;
bool empty() const { return nodes_.empty(); }
size_t size() const { return nodes_.size(); }
Node* NodeAt(size_t index) { return nodes_[index]; }
size_t NodeCount() const { return nodes_.size(); }
+ reference front() { return nodes_.front(); }
+ const_reference front() const { return nodes_.front(); }
+
typedef NodeVector::iterator iterator;
iterator begin() { return nodes_.begin(); }
iterator end() { return nodes_.end(); }

Powered by Google App Engine
This is Rietveld 408576698