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

Unified Diff: src/parsing/parser.h

Issue 1772423002: Don't do any special normalization if a boilerplate contains function literals. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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
Index: src/parsing/parser.h
diff --git a/src/parsing/parser.h b/src/parsing/parser.h
index f5e8a7878ac4d0644f8d9ffc1bd691d4fd6ebc79..6cfa4bb83c02ec56d0c4ec431f5dfd3d27bdb27f 100644
--- a/src/parsing/parser.h
+++ b/src/parsing/parser.h
@@ -405,11 +405,10 @@ class ParserTraits {
}
static void CheckFunctionLiteralInsideTopLevelObjectLiteral(
- Scope* scope, ObjectLiteralProperty* property, bool* has_function) {
+ Scope* scope, ObjectLiteralProperty* property) {
Expression* value = property->value();
if (scope->DeclarationScope()->is_script_scope() &&
value->AsFunctionLiteral() != NULL) {
- *has_function = true;
value->AsFunctionLiteral()->set_pretenure();
adamk 2016/03/08 19:56:49 Does the pretenuring still make sense? My understa
Toon Verwaest 2016/03/08 20:10:27 Probably not. MigrateSlowToFast (for objects used
}
}

Powered by Google App Engine
This is Rietveld 408576698