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

Unified Diff: src/compiler.cc

Issue 803933008: new classes: change semantics of super(...) call and add new.target to construct stub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix x64 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/arm64/full-codegen-arm64.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index bcae3b90b4db5fe2c8879c3f64d99c820e0e3ea8..c7e1572d873fec35820f36664720e91156c7696a 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -786,8 +786,8 @@ static void ThrowSuperConstructorCheckError(CompilationInfo* info,
static bool CheckSuperConstructorCall(CompilationInfo* info) {
FunctionLiteral* function = info->function();
+ if (FLAG_experimental_classes) return true;
if (!function->uses_super_constructor_call()) return true;
-
if (function->is_default_constructor()) return true;
ZoneList<Statement*>* body = function->body();
@@ -837,7 +837,6 @@ static bool CheckSuperConstructorCall(CompilationInfo* info) {
ThrowSuperConstructorCheckError(info, stmt);
return false;
}
-
return true;
}
« no previous file with comments | « src/arm64/full-codegen-arm64.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698