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

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 3 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
« no previous file with comments | « src/IceInstX8632.cpp ('k') | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTargetLoweringX8632.h
diff --git a/src/IceTargetLoweringX8632.h b/src/IceTargetLoweringX8632.h
index 2b189ad402ce082637c6857a0e993e0a9322d0ab..6d209dc8f4c72d179953ef8d9a0c83adea4b9cce 100644
--- a/src/IceTargetLoweringX8632.h
+++ b/src/IceTargetLoweringX8632.h
@@ -188,6 +188,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));
}
@@ -412,6 +415,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));
}
@@ -450,6 +456,7 @@ protected:
const X86InstructionSet InstructionSet;
bool IsEbpBasedFrame;
+ bool NeedsStackAlignment;
size_t FrameSizeLocals;
size_t LocalsSizeBytes;
llvm::SmallBitVector TypeToRegisterSet[IceType_NUM];
« no previous file with comments | « src/IceInstX8632.cpp ('k') | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698