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

Side by Side Diff: src/compiler/pipeline.cc

Issue 1908093002: [turbofan] Optimize tagged conversion based on type. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixes Created 4 years, 8 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/opcodes.h ('k') | src/compiler/representation-change.h » ('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/adapters.h" 10 #include "src/base/adapters.h"
(...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 1274
1275 // Select representations. 1275 // Select representations.
1276 Run<RepresentationSelectionPhase>(); 1276 Run<RepresentationSelectionPhase>();
1277 RunPrintAndVerify("Representations selected"); 1277 RunPrintAndVerify("Representations selected");
1278 1278
1279 // Run early optimization pass. 1279 // Run early optimization pass.
1280 Run<EarlyOptimizationPhase>(); 1280 Run<EarlyOptimizationPhase>();
1281 RunPrintAndVerify("Early optimized"); 1281 RunPrintAndVerify("Early optimized");
1282 1282
1283 if (info()->is_effect_scheduling_enabled()) { 1283 if (info()->is_effect_scheduling_enabled()) {
1284 // TODO(jarin) Run value numbering for the representation changes.
1285 Run<EffectControlLinearizationPhase>(); 1284 Run<EffectControlLinearizationPhase>();
1286 RunPrintAndVerify("Effect and control linearized"); 1285 RunPrintAndVerify("Effect and control linearized");
1287 } 1286 }
1288 1287
1289 Run<BranchEliminationPhase>(); 1288 Run<BranchEliminationPhase>();
1290 RunPrintAndVerify("Branch conditions eliminated"); 1289 RunPrintAndVerify("Branch conditions eliminated");
1291 1290
1292 // Optimize control flow. 1291 // Optimize control flow.
1293 if (FLAG_turbo_cf_optimization) { 1292 if (FLAG_turbo_cf_optimization) {
1294 Run<ControlFlowOptimizationPhase>(); 1293 Run<ControlFlowOptimizationPhase>();
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
1593 } 1592 }
1594 1593
1595 data->DeleteRegisterAllocationZone(); 1594 data->DeleteRegisterAllocationZone();
1596 } 1595 }
1597 1596
1598 Isolate* Pipeline::isolate() const { return info()->isolate(); } 1597 Isolate* Pipeline::isolate() const { return info()->isolate(); }
1599 1598
1600 } // namespace compiler 1599 } // namespace compiler
1601 } // namespace internal 1600 } // namespace internal
1602 } // namespace v8 1601 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/representation-change.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698