Commit 3cd82879 authored by verwaest's avatar verwaest Committed by Commit bot

Reorder fields of AstNode subclasses for better packing

BUG=

Review-Url: https://codereview.chromium.org/2149663003
Cr-Commit-Position: refs/heads/master@{#37834}
parent a51f4297
......@@ -177,8 +177,8 @@ VariableProxy::VariableProxy(Zone* zone, Variable* var, int start_position,
bit_field_(IsThisField::encode(var->is_this()) |
IsAssignedField::encode(false) |
IsResolvedField::encode(false)),
raw_name_(var->raw_name()),
end_position_(end_position) {
end_position_(end_position),
raw_name_(var->raw_name()) {
BindTo(var);
}
......@@ -189,8 +189,8 @@ VariableProxy::VariableProxy(Zone* zone, const AstRawString* name,
bit_field_(IsThisField::encode(variable_kind == Variable::THIS) |
IsAssignedField::encode(false) |
IsResolvedField::encode(false)),
raw_name_(name),
end_position_(end_position) {}
end_position_(end_position),
raw_name_(name) {}
void VariableProxy::BindTo(Variable* var) {
DCHECK((is_this() && var->is_this()) || raw_name() == var->raw_name());
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment