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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « src/compiler/linkage.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/pipeline.h" 5 #include "src/compiler/pipeline.h"
6 6
7 #include <fstream> // NOLINT(readability/streams) 7 #include <fstream> // NOLINT(readability/streams)
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/base/platform/elapsed-timer.h" 10 #include "src/base/platform/elapsed-timer.h"
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 // the correct solution is to restore the context register after invoking 803 // the correct solution is to restore the context register after invoking
804 // builtins from full-codegen. 804 // builtins from full-codegen.
805 Handle<SharedFunctionInfo> shared = info()->shared_info(); 805 Handle<SharedFunctionInfo> shared = info()->shared_info();
806 if (isolate()->bootstrapper()->IsActive() || 806 if (isolate()->bootstrapper()->IsActive() ||
807 shared->disable_optimization_reason() == 807 shared->disable_optimization_reason() ==
808 kBuiltinFunctionCannotBeOptimized) { 808 kBuiltinFunctionCannotBeOptimized) {
809 shared->DisableOptimization(kBuiltinFunctionCannotBeOptimized); 809 shared->DisableOptimization(kBuiltinFunctionCannotBeOptimized);
810 return Handle<Code>::null(); 810 return Handle<Code>::null();
811 } 811 }
812 812
813 // TODO(dslomov): support turbo optimization of subclass constructors.
814 if (IsSubclassConstructor(shared->kind())) {
815 shared->DisableOptimization(kSuperReference);
816 return Handle<Code>::null();
817 }
818
813 ZonePool zone_pool; 819 ZonePool zone_pool;
814 SmartPointer<PipelineStatistics> pipeline_statistics; 820 SmartPointer<PipelineStatistics> pipeline_statistics;
815 821
816 if (FLAG_turbo_stats) { 822 if (FLAG_turbo_stats) {
817 pipeline_statistics.Reset(new PipelineStatistics(info(), &zone_pool)); 823 pipeline_statistics.Reset(new PipelineStatistics(info(), &zone_pool));
818 pipeline_statistics->BeginPhaseKind("initializing"); 824 pipeline_statistics->BeginPhaseKind("initializing");
819 } 825 }
820 826
821 if (FLAG_trace_turbo) { 827 if (FLAG_trace_turbo) {
822 FILE* json_file = OpenVisualizerLogFile(info(), NULL, "json", "w+"); 828 FILE* json_file = OpenVisualizerLogFile(info(), NULL, "json", "w+");
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
1170 1176
1171 if (FLAG_trace_turbo && !data->MayHaveUnverifiableGraph()) { 1177 if (FLAG_trace_turbo && !data->MayHaveUnverifiableGraph()) {
1172 TurboCfgFile tcf(data->isolate()); 1178 TurboCfgFile tcf(data->isolate());
1173 tcf << AsC1VAllocator("CodeGen", data->register_allocator()); 1179 tcf << AsC1VAllocator("CodeGen", data->register_allocator());
1174 } 1180 }
1175 } 1181 }
1176 1182
1177 } // namespace compiler 1183 } // namespace compiler
1178 } // namespace internal 1184 } // namespace internal
1179 } // namespace v8 1185 } // namespace v8
OLDNEW
« 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