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

Unified Diff: runtime/vm/scopes.h

Issue 2411823003: VM support for running Kernel binaries. (Closed)
Patch Set: Address initial review comments Created 4 years, 2 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: runtime/vm/scopes.h
diff --git a/runtime/vm/scopes.h b/runtime/vm/scopes.h
index c2fbfe07f720d6ba3d7b6d80a032ca46bf01f5e0..c0d0670717d532ab072980a9b7ac0a08c68424f7 100644
--- a/runtime/vm/scopes.h
+++ b/runtime/vm/scopes.h
@@ -33,6 +33,7 @@ class LocalVariable : public ZoneAllocated {
is_captured_(false),
is_invisible_(false),
is_captured_parameter_(false),
+ is_forced_stack_(false),
index_(LocalVariable::kUninitializedIndex) {
ASSERT(type.IsZoneHandle() || type.IsReadOnlyHandle());
ASSERT(type.IsFinalized());
@@ -55,6 +56,9 @@ class LocalVariable : public ZoneAllocated {
bool is_captured() const { return is_captured_; }
void set_is_captured() { is_captured_ = true; }
+ bool is_forced_stack() const { return is_forced_stack_; }
+ void set_is_forced_stack() { is_forced_stack_ = true; }
+
bool HasIndex() const {
return index_ != kUninitializedIndex;
}
@@ -122,6 +126,7 @@ class LocalVariable : public ZoneAllocated {
// in the stack frame.
bool is_invisible_;
bool is_captured_parameter_;
+ bool is_forced_stack_;
int index_; // Allocation index in words relative to frame pointer (if not
// captured), or relative to the context pointer (if captured).

Powered by Google App Engine
This is Rietveld 408576698