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

Unified Diff: src/ast/ast.h

Issue 2950993002: Make some functions that are hit during renderer startup available for inlining (Closed)
Patch Set: don't expose bytecode-traits.h in bytecodes.h Created 3 years, 6 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 | « no previous file | src/ast/ast.cc » ('j') | src/ast/scopes.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast.h
diff --git a/src/ast/ast.h b/src/ast/ast.h
index 716c02f9b5208ed406ff638322e178a8424cb9b0..00c3ae8a7eb61032641013fb86c28ec3a8bcd0c3 100644
--- a/src/ast/ast.h
+++ b/src/ast/ast.h
@@ -1587,8 +1587,18 @@ class VariableProxy final : public Expression {
friend class AstNodeFactory;
VariableProxy(Variable* var, int start_position);
+
VariableProxy(const AstRawString* name, VariableKind variable_kind,
- int start_position);
+ int start_position)
+ : Expression(start_position, kVariableProxy),
+ raw_name_(name),
+ next_unresolved_(nullptr) {
+ bit_field_ |= IsThisField::encode(variable_kind == THIS_VARIABLE) |
+ IsAssignedField::encode(false) |
+ IsResolvedField::encode(false) |
+ HoleCheckModeField::encode(HoleCheckMode::kElided);
+ }
+
explicit VariableProxy(const VariableProxy* copy_from);
class IsThisField : public BitField<bool, Expression::kNextBitFieldIndex, 1> {
« no previous file with comments | « no previous file | src/ast/ast.cc » ('j') | src/ast/scopes.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698