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

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

Issue 638853004: [turbofan] Eliminate typed array bounds checks if both key and length are constant. (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 | « src/compiler/node-matchers.h ('k') | src/compiler/simplified-operator-reducer.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 <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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 PhaseStats typer_stats(info(), PhaseStats::CREATE_GRAPH, "typer"); 294 PhaseStats typer_stats(info(), PhaseStats::CREATE_GRAPH, "typer");
295 typer.Run(); 295 typer.Run();
296 VerifyAndPrintGraph(&graph, "Typed"); 296 VerifyAndPrintGraph(&graph, "Typed");
297 } 297 }
298 { 298 {
299 // Lower JSOperators where we can determine types. 299 // Lower JSOperators where we can determine types.
300 PhaseStats lowering_stats(info(), PhaseStats::CREATE_GRAPH, 300 PhaseStats lowering_stats(info(), PhaseStats::CREATE_GRAPH,
301 "typed lowering"); 301 "typed lowering");
302 SourcePositionTable::Scope pos(&source_positions, 302 SourcePositionTable::Scope pos(&source_positions,
303 SourcePosition::Unknown()); 303 SourcePosition::Unknown());
304 ValueNumberingReducer vn_reducer(zone());
304 JSTypedLowering lowering(&jsgraph); 305 JSTypedLowering lowering(&jsgraph);
306 SimplifiedOperatorReducer simple_reducer(&jsgraph);
305 GraphReducer graph_reducer(&graph); 307 GraphReducer graph_reducer(&graph);
308 graph_reducer.AddReducer(&vn_reducer);
306 graph_reducer.AddReducer(&lowering); 309 graph_reducer.AddReducer(&lowering);
310 graph_reducer.AddReducer(&simple_reducer);
307 graph_reducer.ReduceGraph(); 311 graph_reducer.ReduceGraph();
308 312
309 VerifyAndPrintGraph(&graph, "Lowered typed"); 313 VerifyAndPrintGraph(&graph, "Lowered typed");
310 } 314 }
311 { 315 {
312 // Lower simplified operators and insert changes. 316 // Lower simplified operators and insert changes.
313 PhaseStats lowering_stats(info(), PhaseStats::CREATE_GRAPH, 317 PhaseStats lowering_stats(info(), PhaseStats::CREATE_GRAPH,
314 "simplified lowering"); 318 "simplified lowering");
315 SourcePositionTable::Scope pos(&source_positions, 319 SourcePositionTable::Scope pos(&source_positions,
316 SourcePosition::Unknown()); 320 SourcePosition::Unknown());
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 } 500 }
497 501
498 502
499 void Pipeline::TearDown() { 503 void Pipeline::TearDown() {
500 InstructionOperand::TearDownCaches(); 504 InstructionOperand::TearDownCaches();
501 } 505 }
502 506
503 } // namespace compiler 507 } // namespace compiler
504 } // namespace internal 508 } // namespace internal
505 } // namespace v8 509 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/node-matchers.h ('k') | src/compiler/simplified-operator-reducer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698