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

Unified Diff: src/func-name-inferrer.h

Issue 795573005: ES6 computed property names (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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
Index: src/func-name-inferrer.h
diff --git a/src/func-name-inferrer.h b/src/func-name-inferrer.h
index 8b077f9d8cf6b4c0ebee72d677378d965bd5c951..a8a6a676016de9da150b9f604f98e0677dfa6de0 100644
--- a/src/func-name-inferrer.h
+++ b/src/func-name-inferrer.h
@@ -13,8 +13,10 @@ namespace internal {
class AstRawString;
class AstString;
+class AstValue;
class AstValueFactory;
class FunctionLiteral;
+class Expression;
// FuncNameInferrer is a stateful class that is used to perform name
// inference for anonymous functions during static analysis of source code.
@@ -42,8 +44,9 @@ class FuncNameInferrer : public ZoneObject {
}
// Pushes an encountered name onto names stack when in collection state.
+ void PushLiteralName(const AstValue* name);
void PushLiteralName(const AstRawString* name);
-
+ void PushLiteralName(Expression* expression);
void PushVariableName(const AstRawString* name);
// Adds a function to infer name for.

Powered by Google App Engine
This is Rietveld 408576698