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

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: Add unittest. 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/opcodes.h ('k') | 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 <fstream> // NOLINT(readability/streams) 7 #include <fstream> // NOLINT(readability/streams)
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/base/platform/elapsed-timer.h" 10 #include "src/base/platform/elapsed-timer.h"
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 } 171 }
172 172
173 // Build the graph. 173 // Build the graph.
174 Graph graph(zone()); 174 Graph graph(zone());
175 SourcePositionTable source_positions(&graph); 175 SourcePositionTable source_positions(&graph);
176 source_positions.AddDecorator(); 176 source_positions.AddDecorator();
177 // TODO(turbofan): there is no need to type anything during initial graph 177 // TODO(turbofan): there is no need to type anything during initial graph
178 // construction. This is currently only needed for the node cache, which the 178 // construction. This is currently only needed for the node cache, which the
179 // typer could sweep over later. 179 // typer could sweep over later.
180 Typer typer(&graph, info()->context()); 180 Typer typer(&graph, info()->context());
181 MachineOperatorBuilder machine; 181 MachineOperatorBuilder machine(
182 kMachPtr, InstructionSelector::SupportedMachineOperatorFlags());
182 CommonOperatorBuilder common(zone()); 183 CommonOperatorBuilder common(zone());
183 JSOperatorBuilder javascript(zone()); 184 JSOperatorBuilder javascript(zone());
184 JSGraph jsgraph(&graph, &common, &javascript, &machine); 185 JSGraph jsgraph(&graph, &common, &javascript, &machine);
185 Node* context_node; 186 Node* context_node;
186 { 187 {
187 PhaseScope phase_scope(pipeline_statistics.get(), "graph builder"); 188 PhaseScope phase_scope(pipeline_statistics.get(), "graph builder");
188 ZonePool::Scope zone_scope(&zone_pool); 189 ZonePool::Scope zone_scope(&zone_pool);
189 AstGraphBuilderWithPositions graph_builder(zone_scope.zone(), info(), 190 AstGraphBuilderWithPositions graph_builder(zone_scope.zone(), info(),
190 &jsgraph, &source_positions); 191 &jsgraph, &source_positions);
191 graph_builder.CreateGraph(); 192 graph_builder.CreateGraph();
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 } 480 }
480 481
481 482
482 void Pipeline::TearDown() { 483 void Pipeline::TearDown() {
483 InstructionOperand::TearDownCaches(); 484 InstructionOperand::TearDownCaches();
484 } 485 }
485 486
486 } // namespace compiler 487 } // namespace compiler
487 } // namespace internal 488 } // namespace internal
488 } // namespace v8 489 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698