-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Separate namespace and parameter tests * Semi-working * The easy solution to the register allocation issue * More parameter spilling tests
- Loading branch information
Showing
16 changed files
with
188 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace my { | ||
func display() { | ||
print 3110 | ||
} | ||
} | ||
|
||
func main() { | ||
my::display() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
func one_spill(a: Int, b: Int, c: Int, d: Int, e: Int, f: Int, g: Int) { | ||
print a | ||
print b | ||
print c | ||
print d | ||
print e | ||
print f | ||
print g | ||
} | ||
|
||
func main() { | ||
one_spill(1, 2, 3, 4, 5, 6, 7) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
func three_spill(a: Int, b: Int, c: Int, d: Int, e: Int, f: Int, g: Int, h: Int, i: Int) { | ||
print a | ||
print b | ||
print c | ||
print d | ||
print e | ||
print f | ||
print g | ||
print h | ||
print i | ||
} | ||
|
||
func main() { | ||
three_spill(1, 2, 3, 4, 5, 6, 7, 8, 9) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
func one_spill(a: Int, b: Int, c: Int, d: Int, e: Int, f: Int, g: Int) { | ||
let h = 7 | ||
let i = 8 | ||
let j = 9 | ||
let k = 10 | ||
let l = 11 | ||
let m = 12 | ||
let n = 13 | ||
let o = 14 | ||
let p = 15 | ||
let q = 16 | ||
let r = 17 | ||
|
||
print a | ||
print b | ||
print c | ||
print d | ||
print e | ||
print f | ||
print g | ||
print h | ||
print i | ||
print j | ||
print k | ||
print l | ||
print m | ||
print n | ||
print o | ||
print p | ||
print q | ||
print r | ||
} | ||
|
||
func main() { | ||
one_spill(1, 2, 3, 4, 5, 6, 7) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
func display(val: Int) { | ||
print val | ||
} | ||
|
||
func main() { | ||
display(40) | ||
} |