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

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

Issue 1721103003: [turbofan] Introduce DeoptimizeIf And DeoptimizeUnless common operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add comments Created 4 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/opcodes.h ('k') | src/compiler/simplified-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 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 532
533 struct InliningPhase { 533 struct InliningPhase {
534 static const char* phase_name() { return "inlining"; } 534 static const char* phase_name() { return "inlining"; }
535 535
536 void Run(PipelineData* data, Zone* temp_zone) { 536 void Run(PipelineData* data, Zone* temp_zone) {
537 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); 537 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone);
538 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), 538 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(),
539 data->common()); 539 data->common());
540 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), 540 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(),
541 data->common(), data->machine()); 541 data->common(), data->machine());
542 JSCallReducer call_reducer(&graph_reducer, data->jsgraph(), 542 JSCallReducer call_reducer(data->jsgraph(),
543 data->info()->is_deoptimization_enabled() 543 data->info()->is_deoptimization_enabled()
544 ? JSCallReducer::kDeoptimizationEnabled 544 ? JSCallReducer::kDeoptimizationEnabled
545 : JSCallReducer::kNoFlags, 545 : JSCallReducer::kNoFlags,
546 data->native_context()); 546 data->native_context());
547 JSContextSpecialization context_specialization( 547 JSContextSpecialization context_specialization(
548 &graph_reducer, data->jsgraph(), 548 &graph_reducer, data->jsgraph(),
549 data->info()->is_function_context_specializing() 549 data->info()->is_function_context_specializing()
550 ? data->info()->context() 550 ? data->info()->context()
551 : MaybeHandle<Context>()); 551 : MaybeHandle<Context>());
552 JSFrameSpecialization frame_specialization(data->info()->osr_frame(), 552 JSFrameSpecialization frame_specialization(data->info()->osr_frame(),
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
1502 } 1502 }
1503 1503
1504 data->DeleteRegisterAllocationZone(); 1504 data->DeleteRegisterAllocationZone();
1505 } 1505 }
1506 1506
1507 Isolate* Pipeline::isolate() const { return info()->isolate(); } 1507 Isolate* Pipeline::isolate() const { return info()->isolate(); }
1508 1508
1509 } // namespace compiler 1509 } // namespace compiler
1510 } // namespace internal 1510 } // namespace internal
1511 } // namespace v8 1511 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698