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

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

Issue 473263004: Towards removing dependency from generic lowering on compilation info. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Using flags in compilation info. Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/js-operator.h ('k') | test/cctest/compiler/function-tester.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 "src/base/platform/elapsed-timer.h" 7 #include "src/base/platform/elapsed-timer.h"
8 #include "src/compiler/ast-graph-builder.h" 8 #include "src/compiler/ast-graph-builder.h"
9 #include "src/compiler/change-lowering.h" 9 #include "src/compiler/change-lowering.h"
10 #include "src/compiler/code-generator.h" 10 #include "src/compiler/code-generator.h"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 if (info()->is_context_specializing()) { 194 if (info()->is_context_specializing()) {
195 SourcePositionTable::Scope pos(&source_positions, 195 SourcePositionTable::Scope pos(&source_positions,
196 SourcePosition::Unknown()); 196 SourcePosition::Unknown());
197 // Specialize the code to the context as aggressively as possible. 197 // Specialize the code to the context as aggressively as possible.
198 JSContextSpecializer spec(info(), &jsgraph, context_node); 198 JSContextSpecializer spec(info(), &jsgraph, context_node);
199 spec.SpecializeToContext(); 199 spec.SpecializeToContext();
200 VerifyAndPrintGraph(&graph, "Context specialized"); 200 VerifyAndPrintGraph(&graph, "Context specialized");
201 } 201 }
202 202
203 if (FLAG_turbo_inlining) { 203 if (info()->is_inlining_enabled()) {
204 SourcePositionTable::Scope pos(&source_positions, 204 SourcePositionTable::Scope pos(&source_positions,
205 SourcePosition::Unknown()); 205 SourcePosition::Unknown());
206 JSInliner inliner(info(), &jsgraph); 206 JSInliner inliner(info(), &jsgraph);
207 inliner.Inline(); 207 inliner.Inline();
208 VerifyAndPrintGraph(&graph, "Inlined"); 208 VerifyAndPrintGraph(&graph, "Inlined");
209 } 209 }
210 210
211 // Print a replay of the initial graph. 211 // Print a replay of the initial graph.
212 if (FLAG_print_turbo_replay) { 212 if (FLAG_print_turbo_replay) {
213 GraphReplayPrinter::PrintReplay(&graph); 213 GraphReplayPrinter::PrintReplay(&graph);
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 } 390 }
391 391
392 392
393 void Pipeline::TearDown() { 393 void Pipeline::TearDown() {
394 InstructionOperand::TearDownCaches(); 394 InstructionOperand::TearDownCaches();
395 } 395 }
396 396
397 } // namespace compiler 397 } // namespace compiler
398 } // namespace internal 398 } // namespace internal
399 } // namespace v8 399 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-operator.h ('k') | test/cctest/compiler/function-tester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698