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

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

Issue 507603003: Move context specialization flag into CompilationInfo. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/pipeline.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/code-generator.h" 9 #include "src/compiler/code-generator.h"
10 #include "src/compiler/graph-replay.h" 10 #include "src/compiler/graph-replay.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 GraphReducer graph_reducer(&graph); 179 GraphReducer graph_reducer(&graph);
180 graph_reducer.AddReducer(&phi_reducer); 180 graph_reducer.AddReducer(&phi_reducer);
181 graph_reducer.ReduceGraph(); 181 graph_reducer.ReduceGraph();
182 // TODO(mstarzinger): Running reducer once ought to be enough for everyone. 182 // TODO(mstarzinger): Running reducer once ought to be enough for everyone.
183 graph_reducer.ReduceGraph(); 183 graph_reducer.ReduceGraph();
184 graph_reducer.ReduceGraph(); 184 graph_reducer.ReduceGraph();
185 } 185 }
186 186
187 VerifyAndPrintGraph(&graph, "Initial untyped"); 187 VerifyAndPrintGraph(&graph, "Initial untyped");
188 188
189 if (context_specialization_) { 189 if (info()->is_context_specializing()) {
190 SourcePositionTable::Scope pos(&source_positions, 190 SourcePositionTable::Scope pos(&source_positions,
191 SourcePosition::Unknown()); 191 SourcePosition::Unknown());
192 // Specialize the code to the context as aggressively as possible. 192 // Specialize the code to the context as aggressively as possible.
193 JSContextSpecializer spec(info(), &jsgraph, context_node); 193 JSContextSpecializer spec(info(), &jsgraph, context_node);
194 spec.SpecializeToContext(); 194 spec.SpecializeToContext();
195 VerifyAndPrintGraph(&graph, "Context specialized"); 195 VerifyAndPrintGraph(&graph, "Context specialized");
196 } 196 }
197 197
198 if (FLAG_turbo_inlining) { 198 if (FLAG_turbo_inlining) {
199 SourcePositionTable::Scope pos(&source_positions, 199 SourcePositionTable::Scope pos(&source_positions,
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 } 359 }
360 360
361 361
362 void Pipeline::TearDown() { 362 void Pipeline::TearDown() {
363 InstructionOperand::TearDownCaches(); 363 InstructionOperand::TearDownCaches();
364 } 364 }
365 365
366 } // namespace compiler 366 } // namespace compiler
367 } // namespace internal 367 } // namespace internal
368 } // namespace v8 368 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/pipeline.h ('k') | test/cctest/compiler/function-tester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698