Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: src/IceInst.h

Issue 1435363002: Merge fixed alloca stack adjustments into the prolog (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Final code review comments Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceConverter.cpp ('k') | src/IceInst.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInst.h
diff --git a/src/IceInst.h b/src/IceInst.h
index 5e32904d470ac96be13b4d570178d6cbf218a7e5..7505924dca1de712549122576cd62eb8d2cb4a35 100644
--- a/src/IceInst.h
+++ b/src/IceInst.h
@@ -246,10 +246,10 @@ class InstAlloca : public InstHighLevel {
InstAlloca &operator=(const InstAlloca &) = delete;
public:
- static InstAlloca *create(Cfg *Func, Operand *ByteCount,
- uint32_t AlignInBytes, Variable *Dest) {
+ static InstAlloca *create(Cfg *Func, Variable *Dest, Operand *ByteCount,
+ uint32_t AlignInBytes) {
return new (Func->allocate<InstAlloca>())
- InstAlloca(Func, ByteCount, AlignInBytes, Dest);
+ InstAlloca(Func, Dest, ByteCount, AlignInBytes);
}
uint32_t getAlignInBytes() const { return AlignInBytes; }
Operand *getSizeInBytes() const { return getSrc(0); }
@@ -259,8 +259,8 @@ public:
static bool classof(const Inst *Inst) { return Inst->getKind() == Alloca; }
private:
- InstAlloca(Cfg *Func, Operand *ByteCount, uint32_t AlignInBytes,
- Variable *Dest);
+ InstAlloca(Cfg *Func, Variable *Dest, Operand *ByteCount,
+ uint32_t AlignInBytes);
const uint32_t AlignInBytes;
bool KnownFrameOffset = false;
« no previous file with comments | « src/IceConverter.cpp ('k') | src/IceInst.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698