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

Unified Diff: src/parser.h

Issue 798243004: ES6 computed property names (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Disable test on windows Created 5 years, 11 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/ia32/full-codegen-ia32.cc ('k') | src/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.h
diff --git a/src/parser.h b/src/parser.h
index 518b443e3d4e9b95d587d3d17b9f8aa964d81113..a1895f0ead6bdc2e16b24304e99f6efaed7b666d 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -413,11 +413,6 @@ class ParserTraits {
return string->AsArrayIndex(index);
}
- bool IsConstructorProperty(ObjectLiteral::Property* property) {
- return property->key()->raw_value()->EqualsString(
- ast_value_factory()->constructor_string());
- }
-
static Expression* GetPropertyValue(ObjectLiteral::Property* property) {
return property->value();
}
@@ -427,7 +422,9 @@ class ParserTraits {
static void PushLiteralName(FuncNameInferrer* fni, const AstRawString* id) {
fni->PushLiteralName(id);
}
+
void PushPropertyName(FuncNameInferrer* fni, Expression* expression);
+
static void InferFunctionName(FuncNameInferrer* fni,
FunctionLiteral* func_to_infer) {
fni->AddFunction(func_to_infer);
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698