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

Unified Diff: src/ast/variables.h

Issue 2277253003: [modules] Partial scope info support of modules (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@modules-refactor
Patch Set: Undo 'git cl format' screwup and fix order of writes. Created 4 years, 4 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/ast/variables.h
diff --git a/src/ast/variables.h b/src/ast/variables.h
index f76d4d7bea254f5bff47ba753db9ffd9a085e8be..c5fc58ba645ad4238fdcf6d57964749323afb170 100644
--- a/src/ast/variables.h
+++ b/src/ast/variables.h
@@ -49,6 +49,8 @@ class Variable final : public ZoneObject {
return ForceContextAllocationField::decode(bit_field_);
}
void ForceContextAllocation() {
+ DCHECK(IsUnallocated() || IsContextSlot() ||
+ location() == VariableLocation::MODULE);
bit_field_ = ForceContextAllocationField::update(bit_field_, true);
}
bool is_used() { return IsUsedField::decode(bit_field_); }

Powered by Google App Engine
This is Rietveld 408576698