-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wasm] Add -wasm.page-size option (#272)
- Loading branch information
Showing
7 changed files
with
224 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
//@execute =1893 | ||
|
||
class A { def m() -> int { return 33; } } | ||
|
||
class B00 extends A { def m() -> int { return 0x00; } } | ||
class B01 extends A { def m() -> int { return 0x01; } } | ||
class B02 extends A { def m() -> int { return 0x02; } } | ||
class B03 extends A { def m() -> int { return 0x03; } } | ||
class B04 extends A { def m() -> int { return 0x04; } } | ||
class B05 extends A { def m() -> int { return 0x05; } } | ||
class B06 extends A { def m() -> int { return 0x06; } } | ||
class B07 extends A { def m() -> int { return 0x07; } } | ||
class B08 extends A { def m() -> int { return 0x08; } } | ||
class B09 extends A { def m() -> int { return 0x09; } } | ||
class B0A extends A { def m() -> int { return 0x0A; } } | ||
class B0B extends A { def m() -> int { return 0x0B; } } | ||
class B0C extends A { def m() -> int { return 0x0C; } } | ||
class B0D extends A { def m() -> int { return 0x0D; } } | ||
class B0E extends A { def m() -> int { return 0x0E; } } | ||
class B0F extends A { def m() -> int { return 0x0F; } } | ||
|
||
class B10 extends A { def m() -> int { return 0x10; } } | ||
class B11 extends A { def m() -> int { return 0x11; } } | ||
class B12 extends A { def m() -> int { return 0x12; } } | ||
class B13 extends A { def m() -> int { return 0x13; } } | ||
class B14 extends A { def m() -> int { return 0x14; } } | ||
class B15 extends A { def m() -> int { return 0x15; } } | ||
class B16 extends A { def m() -> int { return 0x16; } } | ||
class B17 extends A { def m() -> int { return 0x17; } } | ||
class B18 extends A { def m() -> int { return 0x18; } } | ||
class B19 extends A { def m() -> int { return 0x19; } } | ||
class B1A extends A { def m() -> int { return 0x1A; } } | ||
class B1B extends A { def m() -> int { return 0x1B; } } | ||
class B1C extends A { def m() -> int { return 0x1C; } } | ||
class B1D extends A { def m() -> int { return 0x1D; } } | ||
class B1E extends A { def m() -> int { return 0x1E; } } | ||
class B1F extends A { def m() -> int { return 0x1F; } } | ||
|
||
class B20 extends A { def m() -> int { return 0x20; } } | ||
class B21 extends A { def m() -> int { return 0x21; } } | ||
class B22 extends A { def m() -> int { return 0x22; } } | ||
class B23 extends A { def m() -> int { return 0x23; } } | ||
class B24 extends A { def m() -> int { return 0x24; } } | ||
class B25 extends A { def m() -> int { return 0x25; } } | ||
class B26 extends A { def m() -> int { return 0x26; } } | ||
class B27 extends A { def m() -> int { return 0x27; } } | ||
class B28 extends A { def m() -> int { return 0x28; } } | ||
class B29 extends A { def m() -> int { return 0x29; } } | ||
class B2A extends A { def m() -> int { return 0x2A; } } | ||
class B2B extends A { def m() -> int { return 0x2B; } } | ||
class B2C extends A { def m() -> int { return 0x2C; } } | ||
class B2D extends A { def m() -> int { return 0x2D; } } | ||
class B2E extends A { def m() -> int { return 0x2E; } } | ||
class B2F extends A { def m() -> int { return 0x2F; } } | ||
|
||
class B30 extends A { def m() -> int { return 0x30; } } | ||
class B31 extends A { def m() -> int { return 0x31; } } | ||
class B32 extends A { def m() -> int { return 0x32; } } | ||
class B33 extends A { def m() -> int { return 0x33; } } | ||
class B34 extends A { def m() -> int { return 0x34; } } | ||
class B35 extends A { def m() -> int { return 0x35; } } | ||
class B36 extends A { def m() -> int { return 0x36; } } | ||
class B37 extends A { def m() -> int { return 0x37; } } | ||
class B38 extends A { def m() -> int { return 0x38; } } | ||
class B39 extends A { def m() -> int { return 0x39; } } | ||
class B3A extends A { def m() -> int { return 0x3A; } } | ||
class B3B extends A { def m() -> int { return 0x3B; } } | ||
class B3C extends A { def m() -> int { return 0x3C; } } | ||
class B3D extends A { def m() -> int { return 0x3D; } } | ||
class B3E extends A { def m() -> int { return 0x3E; } } | ||
class B3F extends A { def m() -> int { return 0x3F; } } | ||
|
||
def array = [ | ||
A.new(), | ||
B00.new(), B01.new(), B02.new(), B03.new(), B04.new(), B05.new(), B06.new(), B07.new(), B08.new(), B09.new(), B0A.new(), B0B.new(), B0C.new(), B0D.new(), B0E.new(), | ||
B10.new(), B11.new(), B12.new(), B13.new(), B14.new(), B15.new(), B16.new(), B17.new(), B18.new(), B19.new(), B1A.new(), B1B.new(), B1C.new(), B1D.new(), B1E.new(), | ||
B20.new(), B21.new(), B22.new(), B23.new(), B24.new(), B25.new(), B26.new(), B27.new(), B28.new(), B29.new(), B2A.new(), B2B.new(), B2C.new(), B2D.new(), B2E.new(), | ||
B30.new(), B31.new(), B32.new(), B33.new(), B34.new(), B35.new(), B36.new(), B37.new(), B38.new(), B39.new(), B3A.new(), B3B.new(), B3C.new(), B3D.new(), B3E.new() | ||
]; | ||
|
||
def main() -> int { | ||
var sum = 0; | ||
for (o in array) sum += o.m(); | ||
return sum; | ||
} |
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,85 @@ | ||
//@execute =1893 | ||
|
||
class A { def m() -> int { return 33; } } | ||
|
||
class B00 extends A { def m() -> int { return 0x00; } } | ||
class B01 extends A { def m() -> int { return 0x01; } } | ||
class B02 extends A { def m() -> int { return 0x02; } } | ||
class B03 extends A { def m() -> int { return 0x03; } } | ||
class B04 extends A { def m() -> int { return 0x04; } } | ||
class B05 extends A { def m() -> int { return 0x05; } } | ||
class B06 extends A { def m() -> int { return 0x06; } } | ||
class B07 extends A { def m() -> int { return 0x07; } } | ||
class B08 extends A { def m() -> int { return 0x08; } } | ||
class B09 extends A { def m() -> int { return 0x09; } } | ||
class B0A extends A { def m() -> int { return 0x0A; } } | ||
class B0B extends A { def m() -> int { return 0x0B; } } | ||
class B0C extends A { def m() -> int { return 0x0C; } } | ||
class B0D extends A { def m() -> int { return 0x0D; } } | ||
class B0E extends A { def m() -> int { return 0x0E; } } | ||
class B0F extends A { def m() -> int { return 0x0F; } } | ||
|
||
class B10 extends A { def m() -> int { return 0x10; } } | ||
class B11 extends A { def m() -> int { return 0x11; } } | ||
class B12 extends A { def m() -> int { return 0x12; } } | ||
class B13 extends A { def m() -> int { return 0x13; } } | ||
class B14 extends A { def m() -> int { return 0x14; } } | ||
class B15 extends A { def m() -> int { return 0x15; } } | ||
class B16 extends A { def m() -> int { return 0x16; } } | ||
class B17 extends A { def m() -> int { return 0x17; } } | ||
class B18 extends A { def m() -> int { return 0x18; } } | ||
class B19 extends A { def m() -> int { return 0x19; } } | ||
class B1A extends A { def m() -> int { return 0x1A; } } | ||
class B1B extends A { def m() -> int { return 0x1B; } } | ||
class B1C extends A { def m() -> int { return 0x1C; } } | ||
class B1D extends A { def m() -> int { return 0x1D; } } | ||
class B1E extends A { def m() -> int { return 0x1E; } } | ||
class B1F extends A { def m() -> int { return 0x1F; } } | ||
|
||
class B20 extends A { def m() -> int { return 0x20; } } | ||
class B21 extends A { def m() -> int { return 0x21; } } | ||
class B22 extends A { def m() -> int { return 0x22; } } | ||
class B23 extends A { def m() -> int { return 0x23; } } | ||
class B24 extends A { def m() -> int { return 0x24; } } | ||
class B25 extends A { def m() -> int { return 0x25; } } | ||
class B26 extends A { def m() -> int { return 0x26; } } | ||
class B27 extends A { def m() -> int { return 0x27; } } | ||
class B28 extends A { def m() -> int { return 0x28; } } | ||
class B29 extends A { def m() -> int { return 0x29; } } | ||
class B2A extends A { def m() -> int { return 0x2A; } } | ||
class B2B extends A { def m() -> int { return 0x2B; } } | ||
class B2C extends A { def m() -> int { return 0x2C; } } | ||
class B2D extends A { def m() -> int { return 0x2D; } } | ||
class B2E extends A { def m() -> int { return 0x2E; } } | ||
class B2F extends A { def m() -> int { return 0x2F; } } | ||
|
||
class B30 extends A { def m() -> int { return 0x30; } } | ||
class B31 extends A { def m() -> int { return 0x31; } } | ||
class B32 extends A { def m() -> int { return 0x32; } } | ||
class B33 extends A { def m() -> int { return 0x33; } } | ||
class B34 extends A { def m() -> int { return 0x34; } } | ||
class B35 extends A { def m() -> int { return 0x35; } } | ||
class B36 extends A { def m() -> int { return 0x36; } } | ||
class B37 extends A { def m() -> int { return 0x37; } } | ||
class B38 extends A { def m() -> int { return 0x38; } } | ||
class B39 extends A { def m() -> int { return 0x39; } } | ||
class B3A extends A { def m() -> int { return 0x3A; } } | ||
class B3B extends A { def m() -> int { return 0x3B; } } | ||
class B3C extends A { def m() -> int { return 0x3C; } } | ||
class B3D extends A { def m() -> int { return 0x3D; } } | ||
class B3E extends A { def m() -> int { return 0x3E; } } | ||
class B3F extends A { def m() -> int { return 0x3F; } } | ||
|
||
def main() -> int { | ||
def array = [ | ||
A.new(), | ||
B00.new(), B01.new(), B02.new(), B03.new(), B04.new(), B05.new(), B06.new(), B07.new(), B08.new(), B09.new(), B0A.new(), B0B.new(), B0C.new(), B0D.new(), B0E.new(), | ||
B10.new(), B11.new(), B12.new(), B13.new(), B14.new(), B15.new(), B16.new(), B17.new(), B18.new(), B19.new(), B1A.new(), B1B.new(), B1C.new(), B1D.new(), B1E.new(), | ||
B20.new(), B21.new(), B22.new(), B23.new(), B24.new(), B25.new(), B26.new(), B27.new(), B28.new(), B29.new(), B2A.new(), B2B.new(), B2C.new(), B2D.new(), B2E.new(), | ||
B30.new(), B31.new(), B32.new(), B33.new(), B34.new(), B35.new(), B36.new(), B37.new(), B38.new(), B39.new(), B3A.new(), B3B.new(), B3C.new(), B3D.new(), B3E.new() | ||
]; | ||
|
||
var sum = 0; | ||
for (o in array) sum += o.m(); | ||
return sum; | ||
} |