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

Unified Diff: src/compiler/pipeline.cc

Issue 908883002: new classes: implement new.target passing to superclass constructor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix x64 arithmetic Created 5 years, 10 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/compiler/linkage.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/pipeline.cc
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc
index 59089e03d618efc5a0914e02e1ccb9aa06c4c58f..2ddfbd053255f0049b753b37f59af0281c358252 100644
--- a/src/compiler/pipeline.cc
+++ b/src/compiler/pipeline.cc
@@ -810,6 +810,12 @@ Handle<Code> Pipeline::GenerateCode() {
return Handle<Code>::null();
}
+ // TODO(dslomov): support turbo optimization of subclass constructors.
+ if (IsSubclassConstructor(shared->kind())) {
+ shared->DisableOptimization(kSuperReference);
+ return Handle<Code>::null();
+ }
+
ZonePool zone_pool;
SmartPointer<PipelineStatistics> pipeline_statistics;
« no previous file with comments | « src/compiler/linkage.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698