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

Unified Diff: src/IceTargetLoweringX8632.h

Issue 444443002: Subzero: Align the stack at the point of function calls. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Comments round 2 Created 6 years, 4 months 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
Index: src/IceTargetLoweringX8632.h
diff --git a/src/IceTargetLoweringX8632.h b/src/IceTargetLoweringX8632.h
index 0c87beed167fdf06d8286e3b61f9ae53ae90f564..f05efa678c4e3c50139439c6297cbdab4895637e 100644
--- a/src/IceTargetLoweringX8632.h
+++ b/src/IceTargetLoweringX8632.h
@@ -185,6 +185,9 @@ protected:
void _add(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632Add::create(Func, Dest, Src0));
}
+ void _adjust_stack(int32_t Amount) {
+ Context.insert(InstX8632AdjustStack::create(Func, Amount));
+ }
void _addps(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632Addps::create(Func, Dest, Src0));
}
@@ -409,6 +412,9 @@ protected:
void _store(Operand *Value, OperandX8632 *Mem) {
Context.insert(InstX8632Store::create(Func, Value, Mem));
}
+ void _storep(Operand *Value, OperandX8632 *Mem) {
+ Context.insert(InstX8632StoreP::create(Func, Value, Mem));
+ }
void _storeq(Operand *Value, OperandX8632 *Mem) {
Context.insert(InstX8632StoreQ::create(Func, Value, Mem));
}
@@ -447,6 +453,7 @@ protected:
const X86InstructionSet InstructionSet;
bool IsEbpBasedFrame;
+ bool NeedsStackAlignment;
size_t FrameSizeLocals;
size_t LocalsSizeBytes;
llvm::SmallBitVector TypeToRegisterSet[IceType_NUM];

Powered by Google App Engine
This is Rietveld 408576698