nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: rename IndexedCollection to Sequence
[nit.git]
/
src
/
icode
/
icode_tools.nit
diff --git
a/src/icode/icode_tools.nit
b/src/icode/icode_tools.nit
index
5186233
..
2d059e2
100644
(file)
--- a/
src/icode/icode_tools.nit
+++ b/
src/icode/icode_tools.nit
@@
-93,7
+93,7
@@
end
redef class IRoutine
# Inline an iroutine in an icode sequence
redef class IRoutine
# Inline an iroutine in an icode sequence
- fun inline_in_seq(seq: ISeq, args: IndexedCollection[IRegister]): nullable IRegister
+ fun inline_in_seq(seq: ISeq, args: Sequence[IRegister]): nullable IRegister
do
var d = new ICodeDupContext
if args.length != params.length then print "{args.length} != {params.length}"
do
var d = new ICodeDupContext
if args.length != params.length then print "{args.length} != {params.length}"
@@
-129,7
+129,7
@@
private class ICodeDupContext
# Duplicate a bunch of registers
# Subsequent invocation will return the same registers
# Duplicate a bunch of registers
# Subsequent invocation will return the same registers
- fun dup_iregs(regs: IndexedCollection[IRegister]): IndexedCollection[IRegister]
+ fun dup_iregs(regs: Sequence[IRegister]): Sequence[IRegister]
do
var a = new Array[IRegister].with_capacity(regs.length)
for r in regs do
do
var a = new Array[IRegister].with_capacity(regs.length)
for r in regs do