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

Unified Diff: src/compiler/frame.h

Issue 809333002: [turbofan] Implement OSR for outer loops. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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/compiler/control-builders.cc ('k') | src/compiler/graph-builder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/frame.h
diff --git a/src/compiler/frame.h b/src/compiler/frame.h
index f99d7bd1e11885b0487595449b76d5e6b50f86ec..416d6eea59fda4d16357062ead22c3058afcef54 100644
--- a/src/compiler/frame.h
+++ b/src/compiler/frame.h
@@ -63,6 +63,11 @@ class Frame : public ZoneObject {
return spill_slot_count_++;
}
+ void ReserveSpillSlots(size_t slot_count) {
+ DCHECK_EQ(0, spill_slot_count_); // can only reserve before allocation.
+ spill_slot_count_ = static_cast<int>(slot_count);
+ }
+
private:
int register_save_area_size_;
int spill_slot_count_;
« no previous file with comments | « src/compiler/control-builders.cc ('k') | src/compiler/graph-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698