comparison graal/GraalCompiler/src/com/sun/c1x/C1XCompilation.java @ 2718:c1ce2a53d6c3

Attempt to remove dependency between backend and BlockBegin.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Thu, 19 May 2011 16:05:42 +0200
parents 4272b7af2d17
children ae1c50a03297
comparison
equal deleted inserted replaced
2717:bd85cf08720a 2718:c1ce2a53d6c3
245 245
246 initFrameMap(hir.maxLocks()); 246 initFrameMap(hir.maxLocks());
247 247
248 lirGenerator = compiler.backend.newLIRGenerator(this); 248 lirGenerator = compiler.backend.newLIRGenerator(this);
249 249
250 for (BlockBegin begin : hir.linearScanOrder()) { 250 for (LIRBlock begin : hir.linearScanOrder()) {
251 lirGenerator.doBlock(begin); 251 lirGenerator.doBlock(begin);
252 } 252 }
253 253
254 if (C1XOptions.PrintTimers) { 254 if (C1XOptions.PrintTimers) {
255 C1XTimers.LIR_CREATE.stop(); 255 C1XTimers.LIR_CREATE.stop();
282 if (assumptions.count() > 0) { 282 if (assumptions.count() > 0) {
283 targetMethod.setAssumptions(assumptions); 283 targetMethod.setAssumptions(assumptions);
284 } 284 }
285 285
286 if (compiler.isObserved()) { 286 if (compiler.isObserved()) {
287 compiler.fireCompilationEvent(new CompilationEvent(this, "After code generation", hir.startBlock, false, true, targetMethod)); 287 // TODO(tw): FIXME
288 // compiler.fireCompilationEvent(new CompilationEvent(this, "After code generation", hir.startBlock, false, true, targetMethod));
288 } 289 }
289 290
290 if (C1XOptions.PrintTimers) { 291 if (C1XOptions.PrintTimers) {
291 C1XTimers.CODE_CREATE.stop(); 292 C1XTimers.CODE_CREATE.stop();
292 } 293 }