stack_operations.py (5432:e1e42f18d376) | stack_operations.py (5661:443e6f925027) |
---|---|
1# Copyright (c) 2007-2008 The Hewlett-Packard Development Company 2# All rights reserved. 3# 4# Redistribution and use of this software in source and binary forms, 5# with or without modification, are permitted provided that the 6# following conditions are met: 7# 8# The software must be used only for Non-Commercial Use which means any --- 161 unchanged lines hidden (view full) --- 170 # Push rbp. 171 stupd rbp, ss, [1, t0, rsp], "-env.stackSize", dataSize=ssz 172 173 # Save the stack pointer for later 174 mov t6, t6, rsp, dataSize=asz 175 176 # If the nesting level is zero, skip all this stuff. 177 subi t0, t1, t0, flags=(EZF,), dataSize=2 | 1# Copyright (c) 2007-2008 The Hewlett-Packard Development Company 2# All rights reserved. 3# 4# Redistribution and use of this software in source and binary forms, 5# with or without modification, are permitted provided that the 6# following conditions are met: 7# 8# The software must be used only for Non-Commercial Use which means any --- 161 unchanged lines hidden (view full) --- 170 # Push rbp. 171 stupd rbp, ss, [1, t0, rsp], "-env.stackSize", dataSize=ssz 172 173 # Save the stack pointer for later 174 mov t6, t6, rsp, dataSize=asz 175 176 # If the nesting level is zero, skip all this stuff. 177 subi t0, t1, t0, flags=(EZF,), dataSize=2 |
178 bri t0, label("skipLoop"), flags=(CEZF,) | 178 br label("skipLoop"), flags=(CEZF,) |
179 180 # If the level was 1, only push the saved rbp 181 subi t0, t1, 1, flags=(EZF,) | 179 180 # If the level was 1, only push the saved rbp 181 subi t0, t1, 1, flags=(EZF,) |
182 bri t0, label("bottomOfLoop"), flags=(CEZF,) | 182 br label("bottomOfLoop"), flags=(CEZF,) |
183 184 limm t4, "ULL(-1)", dataSize=8 185topOfLoop: 186 ld t5, ss, [ssz, t4, rbp], dataSize=ssz 187 stupd t5, ss, [1, t0, rsp], "-env.stackSize" 188 189 # If we're not done yet, loop 190 subi t4, t4, 1, dataSize=8 191 add t0, t4, t1, flags=(EZF,) | 183 184 limm t4, "ULL(-1)", dataSize=8 185topOfLoop: 186 ld t5, ss, [ssz, t4, rbp], dataSize=ssz 187 stupd t5, ss, [1, t0, rsp], "-env.stackSize" 188 189 # If we're not done yet, loop 190 subi t4, t4, 1, dataSize=8 191 add t0, t4, t1, flags=(EZF,) |
192 bri t0, label("topOfLoop"), flags=(nCEZF,) | 192 br label("topOfLoop"), flags=(nCEZF,) |
193 194bottomOfLoop: 195 # Push the old rbp onto the stack 196 stupd t6, ss, [1, t0, rsp], "-env.stackSize" 197 198skipLoop: 199 sub rsp, rsp, t2, dataSize=asz 200 mov rbp, rbp, t6, dataSize=asz 201}; 202''' | 193 194bottomOfLoop: 195 # Push the old rbp onto the stack 196 stupd t6, ss, [1, t0, rsp], "-env.stackSize" 197 198skipLoop: 199 sub rsp, rsp, t2, dataSize=asz 200 mov rbp, rbp, t6, dataSize=asz 201}; 202''' |