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

Unified Diff: src/ast.h

Issue 1407633002: [es6] parse arrow ConciseBody with accept_IN flag (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 | « no previous file | src/objects.h » ('j') | src/parser.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast.h
diff --git a/src/ast.h b/src/ast.h
index ffae46225b525afc9718222bf4fbc82d0490bd02..ad7b277012521de7a1f6ab5ede3bfcf6118c896e 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -2547,6 +2547,11 @@ class FunctionLiteral final : public Expression {
dont_optimize_reason_ = reason;
}
+ bool accept_IN() const { return AcceptInHintBit::decode(bitfield_); }
+ void set_accept_IN(bool value) {
+ bitfield_ = AcceptInHintBit::update(bitfield_, value);
+ }
+
protected:
FunctionLiteral(Zone* zone, const AstRawString* name,
AstValueFactory* ast_value_factory, Scope* scope,
@@ -2604,6 +2609,8 @@ class FunctionLiteral final : public Expression {
class FunctionKindBits : public BitField<FunctionKind, 6, 8> {};
class ShouldBeUsedOnceHintBit : public BitField<ShouldBeUsedOnceHint, 15, 1> {
};
+ // Used for lazily compiled arrow functions
+ class AcceptInHintBit : public BitField<bool, 16, 1> {};
};
« no previous file with comments | « no previous file | src/objects.h » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698