Commit 44180f55 authored by Florian Sattler's avatar Florian Sattler Committed by Commit Bot

[parser] Fixed FunctionState alignment

Changes the alignment so we don't have to pad after the first int.

Bug: v8:7926
Change-Id: I8fba9b415ef85118c6abf19902fb857584535a6e
Reviewed-on: https://chromium-review.googlesource.com/1186321Reviewed-by: 's avatarMarja Hölttä <marja@chromium.org>
Commit-Queue: Florian Sattler <sattlerf@google.com>
Cr-Commit-Position: refs/heads/master@{#55344}
parent f40ef474
......@@ -481,6 +481,9 @@ class ParserBase {
// Properties count estimation.
int expected_property_count_;
// How many suspends are needed for this function.
int suspend_count_;
FunctionState** function_state_stack_;
FunctionState* outer_function_state_;
DeclarationScope* scope_;
......@@ -493,9 +496,6 @@ class ParserBase {
// A reason, if any, why this function should not be optimized.
BailoutReason dont_optimize_reason_;
// How many suspends are needed for this function.
int suspend_count_;
// Record whether the next (=== immediately following) function literal is
// preceded by a parenthesis / exclamation mark. Also record the previous
// state.
......@@ -1588,13 +1588,13 @@ ParserBase<Impl>::FunctionState::FunctionState(
DeclarationScope* scope)
: BlockState(scope_stack, scope),
expected_property_count_(0),
suspend_count_(0),
function_state_stack_(function_state_stack),
outer_function_state_(*function_state_stack),
scope_(scope),
destructuring_assignments_to_rewrite_(scope->zone()),
reported_errors_(16, scope_->zone()),
dont_optimize_reason_(BailoutReason::kNoReason),
suspend_count_(0),
next_function_is_likely_called_(false),
previous_function_was_likely_called_(false),
contains_function_or_eval_(false) {
......
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