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

Unified Diff: src/ast/ast.cc

Issue 2411873004: [ignition] Eliminate hole checks where statically possible for loads and stores (Closed)
Patch Set: Rebased 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
« no previous file with comments | « src/ast/ast.h ('k') | src/ast/scopes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast.cc
diff --git a/src/ast/ast.cc b/src/ast/ast.cc
index b52fb957e8b80f53250c43df6b59b5fbd85e89e6..906bd4a9c62d32f3247cbfa30197b07bb99277da 100644
--- a/src/ast/ast.cc
+++ b/src/ast/ast.cc
@@ -165,8 +165,9 @@ VariableProxy::VariableProxy(Variable* var, int start_position,
end_position_(end_position),
raw_name_(var->raw_name()),
next_unresolved_(nullptr) {
- bit_field_ |= IsThisField::encode(var->is_this()) |
- IsAssignedField::encode(false) | IsResolvedField::encode(false);
+ bit_field_ |=
+ IsThisField::encode(var->is_this()) | IsAssignedField::encode(false) |
+ IsResolvedField::encode(false) | NeedsHoleCheckField::encode(false);
BindTo(var);
}
@@ -178,7 +179,9 @@ VariableProxy::VariableProxy(const AstRawString* name,
raw_name_(name),
next_unresolved_(nullptr) {
bit_field_ |= IsThisField::encode(variable_kind == THIS_VARIABLE) |
- IsAssignedField::encode(false) | IsResolvedField::encode(false);
+ IsAssignedField::encode(false) |
+ IsResolvedField::encode(false) |
+ NeedsHoleCheckField::encode(false);
}
VariableProxy::VariableProxy(const VariableProxy* copy_from)
« no previous file with comments | « src/ast/ast.h ('k') | src/ast/scopes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698