diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-12-08 10:22:59 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-12-08 12:17:14 +0000 |
commit | 69b8f9169ffd66fdeca1ac60a4bc06b91d106186 (patch) | |
tree | c8b7f735583d0b4e0c0b61a014a7f4b3b26e85ab /chromium/v8/src/ast | |
parent | daa093eea7c773db06799a13bd7e4e2e2a9f8f14 (diff) | |
download | qtwebengine-chromium-69b8f9169ffd66fdeca1ac60a4bc06b91d106186.tar.gz |
BASELINE: Update Chromium to 63.0.3239.87
Change-Id: Iac27464730121b4fac76869d87d622504642e016
Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'chromium/v8/src/ast')
-rw-r--r-- | chromium/v8/src/ast/scopes.cc | 4 | ||||
-rw-r--r-- | chromium/v8/src/ast/scopes.h | 9 |
2 files changed, 6 insertions, 7 deletions
diff --git a/chromium/v8/src/ast/scopes.cc b/chromium/v8/src/ast/scopes.cc index 189c22f0284..07eacd3fe97 100644 --- a/chromium/v8/src/ast/scopes.cc +++ b/chromium/v8/src/ast/scopes.cc @@ -1741,8 +1741,8 @@ void Scope::Print(int n) { if (is_declaration_scope() && AsDeclarationScope()->calls_sloppy_eval()) { Indent(n1, "// scope calls sloppy 'eval'\n"); } - if (is_declaration_scope() && AsDeclarationScope()->uses_super_property()) { - Indent(n1, "// scope uses 'super' property\n"); + if (is_declaration_scope() && AsDeclarationScope()->NeedsHomeObject()) { + Indent(n1, "// scope needs home object\n"); } if (inner_scope_calls_eval_) Indent(n1, "// inner scope calls 'eval'\n"); if (is_declaration_scope()) { diff --git a/chromium/v8/src/ast/scopes.h b/chromium/v8/src/ast/scopes.h index 9bd24ba1cce..fe155080276 100644 --- a/chromium/v8/src/ast/scopes.h +++ b/chromium/v8/src/ast/scopes.h @@ -666,14 +666,13 @@ class V8_EXPORT_PRIVATE DeclarationScope : public Scope { // Inform the scope that the corresponding code uses "super". void RecordSuperPropertyUsage() { - DCHECK((IsConciseMethod(function_kind()) || - IsAccessorFunction(function_kind()) || - IsClassConstructor(function_kind()))); + DCHECK(IsConciseMethod(function_kind()) || + IsAccessorFunction(function_kind()) || + IsClassConstructor(function_kind())); scope_uses_super_property_ = true; } - // Does this scope access "super" property (super.foo). - bool uses_super_property() const { return scope_uses_super_property_; } + // Does this scope access "super" property (super.foo). bool NeedsHomeObject() const { return scope_uses_super_property_ || (inner_scope_calls_eval_ && (IsConciseMethod(function_kind()) || |