Mercurial > hg > truffle
comparison graal/com.oracle.graal.lir/src/com/oracle/graal/lir/alloc/lsra/LinearScanWalker.java @ 21203:9f45587ad8f5
LinearScan: add createMoveResolver().
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Wed, 29 Apr 2015 17:16:53 +0200 |
parents | 68ff637e95b1 |
children | 5010ea46630a |
comparison
equal
deleted
inserted
replaced
21202:a03e95b6d629 | 21203:9f45587ad8f5 |
---|---|
72 } | 72 } |
73 | 73 |
74 LinearScanWalker(LinearScan allocator, Interval unhandledFixedFirst, Interval unhandledAnyFirst) { | 74 LinearScanWalker(LinearScan allocator, Interval unhandledFixedFirst, Interval unhandledAnyFirst) { |
75 super(allocator, unhandledFixedFirst, unhandledAnyFirst); | 75 super(allocator, unhandledFixedFirst, unhandledAnyFirst); |
76 | 76 |
77 moveResolver = new MoveResolver(allocator); | 77 moveResolver = allocator.createMoveResolver(); |
78 spillIntervals = Util.uncheckedCast(new List[allocator.registers.length]); | 78 spillIntervals = Util.uncheckedCast(new List[allocator.registers.length]); |
79 for (int i = 0; i < allocator.registers.length; i++) { | 79 for (int i = 0; i < allocator.registers.length; i++) { |
80 spillIntervals[i] = EMPTY_LIST; | 80 spillIntervals[i] = EMPTY_LIST; |
81 } | 81 } |
82 usePos = new int[allocator.registers.length]; | 82 usePos = new int[allocator.registers.length]; |