diff options
| author | Cliff Click <cliffc@acm.org> | 2025-04-11 21:05:51 -0700 |
|---|---|---|
| committer | Cliff Click <cliffc@acm.org> | 2025-04-11 21:05:51 -0700 |
| commit | 404fb8dadfef10d0954abf6e84901b7d6a469f14 (patch) | |
| tree | e7f0a83c09c334f1be524fa55e65bc38ecee4ba4 /chapter21/src/main/java | |
| parent | a2614064a6d86d146af07d0db50c2e76a2c37274 (diff) | |
| download | Simple-404fb8dadfef10d0954abf6e84901b7d6a469f14.tar.gz Simple-404fb8dadfef10d0954abf6e84901b7d6a469f14.zip | |
Remove debug prints
Diffstat (limited to 'chapter21/src/main/java')
| -rw-r--r-- | chapter21/src/main/java/com/seaofnodes/simple/node/cpus/x86_64_v2/NewX86.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/chapter21/src/main/java/com/seaofnodes/simple/node/cpus/x86_64_v2/NewX86.java b/chapter21/src/main/java/com/seaofnodes/simple/node/cpus/x86_64_v2/NewX86.java index c3d7e6b0..a87074f4 100644 --- a/chapter21/src/main/java/com/seaofnodes/simple/node/cpus/x86_64_v2/NewX86.java +++ b/chapter21/src/main/java/com/seaofnodes/simple/node/cpus/x86_64_v2/NewX86.java @@ -19,22 +19,16 @@ public class NewX86 extends NewNode implements MachNode { @Override public String op() { return "alloc"; } // Size and pointer result in standard calling convention; null for all the // memory aliases edges - @Override public RegMask regmap(int i) { - return i==1 ? ARG2 : null; - } + @Override public RegMask regmap(int i) { return i==1 ? ARG2 : null; } @Override public RegMask outregmap(int i) { return i == 1 ? x86_64_v2.RAX_MASK : null; } @Override public RegMask outregmap() { return null; } @Override public RegMask killmap() { return OS.startsWith("Windows") ? x86_64_v2. WIN64_CALLER_SAVE_MASK : x86_64_v2.SYSTEM5_CALLER_SAVE_MASK; - //return x86_64_v2.x86CallerSave(); } @Override public void encoding( Encoding enc ) { - - System.err.println("OS: "+OS+", arg2="+ARG2+", arg3="+ARG3+", compiled for "+enc._code._callingConv); - enc.external(this,"calloc"); // This has to call the *native* ABI, regardless of how Simple is // being compiled, because it links against the native calloc. |
