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

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

Issue 668173002: Add Float64Round operator. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase. Created 6 years, 1 month 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
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 <sstream> 5 #include <sstream>
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/basic-block-instrumentor.h" 9 #include "src/compiler/basic-block-instrumentor.h"
10 #include "src/compiler/change-lowering.h" 10 #include "src/compiler/change-lowering.h"
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 } 194 }
195 195
196 // Build the graph. 196 // Build the graph.
197 Graph graph(zone()); 197 Graph graph(zone());
198 SourcePositionTable source_positions(&graph); 198 SourcePositionTable source_positions(&graph);
199 source_positions.AddDecorator(); 199 source_positions.AddDecorator();
200 // TODO(turbofan): there is no need to type anything during initial graph 200 // TODO(turbofan): there is no need to type anything during initial graph
201 // construction. This is currently only needed for the node cache, which the 201 // construction. This is currently only needed for the node cache, which the
202 // typer could sweep over later. 202 // typer could sweep over later.
203 Typer typer(&graph, info()->context()); 203 Typer typer(&graph, info()->context());
204 MachineOperatorBuilder machine; 204 MachineOperatorBuilder machine(kMachPtr,
205 InstructionSelector::GetSupportedOperators());
205 CommonOperatorBuilder common(zone()); 206 CommonOperatorBuilder common(zone());
206 JSOperatorBuilder javascript(zone()); 207 JSOperatorBuilder javascript(zone());
207 JSGraph jsgraph(&graph, &common, &javascript, &machine); 208 JSGraph jsgraph(&graph, &common, &javascript, &machine);
208 Node* context_node; 209 Node* context_node;
209 { 210 {
210 PhaseScope phase_scope(pipeline_statistics.get(), "graph builder"); 211 PhaseScope phase_scope(pipeline_statistics.get(), "graph builder");
211 ZonePool::Scope zone_scope(&zone_pool); 212 ZonePool::Scope zone_scope(&zone_pool);
212 AstGraphBuilderWithPositions graph_builder(zone_scope.zone(), info(), 213 AstGraphBuilderWithPositions graph_builder(zone_scope.zone(), info(),
213 &jsgraph, &source_positions); 214 &jsgraph, &source_positions);
214 graph_builder.CreateGraph(); 215 graph_builder.CreateGraph();
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 } 502 }
502 503
503 504
504 void Pipeline::TearDown() { 505 void Pipeline::TearDown() {
505 InstructionOperand::TearDownCaches(); 506 InstructionOperand::TearDownCaches();
506 } 507 }
507 508
508 } // namespace compiler 509 } // namespace compiler
509 } // namespace internal 510 } // namespace internal
510 } // namespace v8 511 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698