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

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

Issue 1407413014: [turbofan] Pseudo-inline instanceof (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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-typed-lowering.cc ('k') | test/cctest/compiler/test-js-typed-lowering.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 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 584
585 struct TypedLoweringPhase { 585 struct TypedLoweringPhase {
586 static const char* phase_name() { return "typed lowering"; } 586 static const char* phase_name() { return "typed lowering"; }
587 587
588 void Run(PipelineData* data, Zone* temp_zone) { 588 void Run(PipelineData* data, Zone* temp_zone) {
589 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); 589 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone);
590 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), 590 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(),
591 data->common()); 591 data->common());
592 LoadElimination load_elimination(&graph_reducer); 592 LoadElimination load_elimination(&graph_reducer);
593 JSBuiltinReducer builtin_reducer(&graph_reducer, data->jsgraph()); 593 JSBuiltinReducer builtin_reducer(&graph_reducer, data->jsgraph());
594 JSTypedLowering typed_lowering(&graph_reducer, data->jsgraph(), temp_zone); 594 JSTypedLowering typed_lowering(&graph_reducer, data->info()->dependencies(),
595 data->info()->is_deoptimization_enabled()
596 ? JSTypedLowering::kDeoptimizationEnabled
597 : JSTypedLowering::kNoFlags,
598 data->jsgraph(), temp_zone);
595 JSIntrinsicLowering intrinsic_lowering( 599 JSIntrinsicLowering intrinsic_lowering(
596 &graph_reducer, data->jsgraph(), 600 &graph_reducer, data->jsgraph(),
597 data->info()->is_deoptimization_enabled() 601 data->info()->is_deoptimization_enabled()
598 ? JSIntrinsicLowering::kDeoptimizationEnabled 602 ? JSIntrinsicLowering::kDeoptimizationEnabled
599 : JSIntrinsicLowering::kDeoptimizationDisabled); 603 : JSIntrinsicLowering::kDeoptimizationDisabled);
600 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), 604 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(),
601 data->common(), data->machine()); 605 data->common(), data->machine());
602 AddReducer(data, &graph_reducer, &dead_code_elimination); 606 AddReducer(data, &graph_reducer, &dead_code_elimination);
603 AddReducer(data, &graph_reducer, &builtin_reducer); 607 AddReducer(data, &graph_reducer, &builtin_reducer);
604 AddReducer(data, &graph_reducer, &typed_lowering); 608 AddReducer(data, &graph_reducer, &typed_lowering);
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
1434 tcf << AsC1VRegisterAllocationData("CodeGen", 1438 tcf << AsC1VRegisterAllocationData("CodeGen",
1435 data->register_allocation_data()); 1439 data->register_allocation_data());
1436 } 1440 }
1437 1441
1438 data->DeleteRegisterAllocationZone(); 1442 data->DeleteRegisterAllocationZone();
1439 } 1443 }
1440 1444
1441 } // namespace compiler 1445 } // namespace compiler
1442 } // namespace internal 1446 } // namespace internal
1443 } // namespace v8 1447 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | test/cctest/compiler/test-js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698