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

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

Issue 1162903006: [turbofan] Turn JSContextSpecializer into an AdvancedReducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Mark slow test on ARM64. Created 5 years, 6 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/js-inlining.cc ('k') | test/cctest/compiler/test-js-context-specialization.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/adapters.h" 10 #include "src/base/adapters.h"
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 data->set_compilation_failed(); 489 data->set_compilation_failed();
490 } 490 }
491 } 491 }
492 }; 492 };
493 493
494 494
495 struct ContextSpecializerPhase { 495 struct ContextSpecializerPhase {
496 static const char* phase_name() { return "context specializing"; } 496 static const char* phase_name() { return "context specializing"; }
497 497
498 void Run(PipelineData* data, Zone* temp_zone) { 498 void Run(PipelineData* data, Zone* temp_zone) {
499 JSContextSpecializer spec(data->jsgraph());
500 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); 499 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone);
500 JSContextSpecializer spec(&graph_reducer, data->jsgraph());
501 AddReducer(data, &graph_reducer, &spec); 501 AddReducer(data, &graph_reducer, &spec);
502 graph_reducer.ReduceGraph(); 502 graph_reducer.ReduceGraph();
503 } 503 }
504 }; 504 };
505 505
506 506
507 struct InliningPhase { 507 struct InliningPhase {
508 static const char* phase_name() { return "inlining"; } 508 static const char* phase_name() { return "inlining"; }
509 509
510 void Run(PipelineData* data, Zone* temp_zone) { 510 void Run(PipelineData* data, Zone* temp_zone) {
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
1329 tcf << AsC1VRegisterAllocationData("CodeGen", 1329 tcf << AsC1VRegisterAllocationData("CodeGen",
1330 data->register_allocation_data()); 1330 data->register_allocation_data());
1331 } 1331 }
1332 1332
1333 data->DeleteRegisterAllocationZone(); 1333 data->DeleteRegisterAllocationZone();
1334 } 1334 }
1335 1335
1336 } // namespace compiler 1336 } // namespace compiler
1337 } // namespace internal 1337 } // namespace internal
1338 } // namespace v8 1338 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-inlining.cc ('k') | test/cctest/compiler/test-js-context-specialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698