| OLD | NEW |
| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 } | 170 } |
| 171 } | 171 } |
| 172 | 172 |
| 173 { | 173 { |
| 174 // Lower any remaining generic JSOperators. | 174 // Lower any remaining generic JSOperators. |
| 175 PhaseStats lowering_stats(info(), PhaseStats::CREATE_GRAPH, | 175 PhaseStats lowering_stats(info(), PhaseStats::CREATE_GRAPH, |
| 176 "generic lowering"); | 176 "generic lowering"); |
| 177 MachineOperatorBuilder machine(zone()); | 177 MachineOperatorBuilder machine(zone()); |
| 178 JSGenericLowering lowering(info(), &jsgraph, &machine, &source_positions); | 178 JSGenericLowering lowering(info(), &jsgraph, &machine, &source_positions); |
| 179 lowering.LowerAllNodes(); | 179 lowering.LowerAllNodes(); |
| 180 |
| 181 VerifyAndPrintGraph(&graph, "Lowered generic"); |
| 180 } | 182 } |
| 181 | 183 |
| 182 // Compute a schedule. | 184 // Compute a schedule. |
| 183 Schedule* schedule = ComputeSchedule(&graph); | 185 Schedule* schedule = ComputeSchedule(&graph); |
| 184 TraceSchedule(schedule); | 186 TraceSchedule(schedule); |
| 185 | 187 |
| 186 Handle<Code> code = Handle<Code>::null(); | 188 Handle<Code> code = Handle<Code>::null(); |
| 187 if (SupportedTarget()) { | 189 if (SupportedTarget()) { |
| 188 { | 190 { |
| 189 // Generate optimized code. | 191 // Generate optimized code. |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 } | 283 } |
| 282 | 284 |
| 283 // Generate native sequence. | 285 // Generate native sequence. |
| 284 CodeGenerator generator(&sequence); | 286 CodeGenerator generator(&sequence); |
| 285 return generator.GenerateCode(); | 287 return generator.GenerateCode(); |
| 286 } | 288 } |
| 287 | 289 |
| 288 } // namespace compiler | 290 } // namespace compiler |
| 289 } // namespace internal | 291 } // namespace internal |
| 290 } // namespace v8 | 292 } // namespace v8 |
| OLD | NEW |