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

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

Issue 433853002: Implement lowering of JSLoadContext to machine operators. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Ben Titzer. Created 6 years, 4 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/js-generic-lowering.cc ('k') | src/runtime.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 "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
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
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
OLDNEW
« no previous file with comments | « src/compiler/js-generic-lowering.cc ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698