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

Unified Diff: src/ast/ast.cc

Issue 1841543003: [esnext] implement frontend changes for async/await proposal (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix more problems Created 4 years, 7 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 | « src/ast/ast.h ('k') | src/ast/ast-value-factory.h » ('j') | src/globals.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast.cc
diff --git a/src/ast/ast.cc b/src/ast/ast.cc
index e8b6269648ed394e27dc2af919c4f9db8e49b6fa..dad81d4ee0e1c30c5738aac2d74adfacdf20b208 100644
--- a/src/ast/ast.cc
+++ b/src/ast/ast.cc
@@ -234,26 +234,24 @@ bool FunctionLiteral::NeedsHomeObject(Expression* expr) {
return expr->AsFunctionLiteral()->scope()->NeedsHomeObject();
}
-
ObjectLiteralProperty::ObjectLiteralProperty(Expression* key, Expression* value,
- Kind kind, bool is_static,
+ Kind kind, MethodKind method_kind,
bool is_computed_name)
: key_(key),
value_(value),
kind_(kind),
+ method_kind_(method_kind),
emit_store_(true),
- is_static_(is_static),
is_computed_name_(is_computed_name) {}
-
ObjectLiteralProperty::ObjectLiteralProperty(AstValueFactory* ast_value_factory,
Expression* key, Expression* value,
- bool is_static,
+ MethodKind method_kind,
bool is_computed_name)
: key_(key),
value_(value),
+ method_kind_(method_kind),
emit_store_(true),
- is_static_(is_static),
is_computed_name_(is_computed_name) {
if (!is_computed_name &&
key->AsLiteral()->raw_value()->EqualsString(
« no previous file with comments | « src/ast/ast.h ('k') | src/ast/ast-value-factory.h » ('j') | src/globals.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698