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

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

Issue 655383003: Fix x64 after r24656. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | « no previous file | 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 <sstream> 7 #include <sstream>
8 8
9 #include "src/base/platform/elapsed-timer.h" 9 #include "src/base/platform/elapsed-timer.h"
10 #include "src/compiler/ast-graph-builder.h" 10 #include "src/compiler/ast-graph-builder.h"
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 // Lower simplified operators and insert changes. 312 // Lower simplified operators and insert changes.
313 PhaseStats lowering_stats(info(), PhaseStats::CREATE_GRAPH, 313 PhaseStats lowering_stats(info(), PhaseStats::CREATE_GRAPH,
314 "simplified lowering"); 314 "simplified lowering");
315 SourcePositionTable::Scope pos(&source_positions, 315 SourcePositionTable::Scope pos(&source_positions,
316 SourcePosition::Unknown()); 316 SourcePosition::Unknown());
317 SimplifiedLowering lowering(&jsgraph); 317 SimplifiedLowering lowering(&jsgraph);
318 lowering.LowerAllNodes(); 318 lowering.LowerAllNodes();
319 ValueNumberingReducer vn_reducer(zone()); 319 ValueNumberingReducer vn_reducer(zone());
320 SimplifiedOperatorReducer simple_reducer(&jsgraph); 320 SimplifiedOperatorReducer simple_reducer(&jsgraph);
321 GraphReducer graph_reducer(&graph); 321 GraphReducer graph_reducer(&graph);
322 graph_reducer.AddReducer(&vn_reducer);
322 graph_reducer.AddReducer(&simple_reducer); 323 graph_reducer.AddReducer(&simple_reducer);
323 graph_reducer.AddReducer(&vn_reducer);
324 graph_reducer.ReduceGraph(); 324 graph_reducer.ReduceGraph();
325 325
326 VerifyAndPrintGraph(&graph, "Lowered simplified"); 326 VerifyAndPrintGraph(&graph, "Lowered simplified");
327 } 327 }
328 { 328 {
329 // Lower changes that have been inserted before. 329 // Lower changes that have been inserted before.
330 PhaseStats lowering_stats(info(), PhaseStats::OPTIMIZATION, 330 PhaseStats lowering_stats(info(), PhaseStats::OPTIMIZATION,
331 "change lowering"); 331 "change lowering");
332 SourcePositionTable::Scope pos(&source_positions, 332 SourcePositionTable::Scope pos(&source_positions,
333 SourcePosition::Unknown()); 333 SourcePosition::Unknown());
334 Linkage linkage(info()); 334 Linkage linkage(info());
335 ValueNumberingReducer vn_reducer(zone()); 335 ValueNumberingReducer vn_reducer(zone());
336 SimplifiedOperatorReducer simple_reducer(&jsgraph);
336 ChangeLowering lowering(&jsgraph, &linkage); 337 ChangeLowering lowering(&jsgraph, &linkage);
337 MachineOperatorReducer mach_reducer(&jsgraph); 338 MachineOperatorReducer mach_reducer(&jsgraph);
338 GraphReducer graph_reducer(&graph); 339 GraphReducer graph_reducer(&graph);
339 // TODO(titzer): Figure out if we should run all reducers at once here. 340 // TODO(titzer): Figure out if we should run all reducers at once here.
340 graph_reducer.AddReducer(&vn_reducer); 341 graph_reducer.AddReducer(&vn_reducer);
342 graph_reducer.AddReducer(&simple_reducer);
341 graph_reducer.AddReducer(&lowering); 343 graph_reducer.AddReducer(&lowering);
342 graph_reducer.AddReducer(&mach_reducer); 344 graph_reducer.AddReducer(&mach_reducer);
343 graph_reducer.ReduceGraph(); 345 graph_reducer.ReduceGraph();
344 346
345 // TODO(jarin, rossberg): Remove UNTYPED once machine typing works. 347 // TODO(jarin, rossberg): Remove UNTYPED once machine typing works.
346 VerifyAndPrintGraph(&graph, "Lowered changes", true); 348 VerifyAndPrintGraph(&graph, "Lowered changes", true);
347 } 349 }
348 } 350 }
349 351
350 { 352 {
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 } 496 }
495 497
496 498
497 void Pipeline::TearDown() { 499 void Pipeline::TearDown() {
498 InstructionOperand::TearDownCaches(); 500 InstructionOperand::TearDownCaches();
499 } 501 }
500 502
501 } // namespace compiler 503 } // namespace compiler
502 } // namespace internal 504 } // namespace internal
503 } // namespace v8 505 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698