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

Unified Diff: src/IceInstARM32.h

Issue 1467473003: Subzero. ARM32. No more SP frobbing. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fixes the Offsetis typo. 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 | « no previous file | src/IceInstARM32.cpp » ('j') | src/IceTargetLoweringARM32.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInstARM32.h
diff --git a/src/IceInstARM32.h b/src/IceInstARM32.h
index 0ae21c57d71ce3b79e202d51a878f4181ca88f1a..58c0c5ba01daf62536aa4b8eeb9a2428815f73b1 100644
--- a/src/IceInstARM32.h
+++ b/src/IceInstARM32.h
@@ -980,34 +980,6 @@ private:
const InstARM32Label *Label; // Intra-block branch target
};
-/// AdjustStack instruction - subtracts SP by the given amount and updates the
-/// stack offset during code emission.
-class InstARM32AdjustStack : public InstARM32 {
- InstARM32AdjustStack() = delete;
- InstARM32AdjustStack(const InstARM32AdjustStack &) = delete;
- InstARM32AdjustStack &operator=(const InstARM32AdjustStack &) = delete;
-
-public:
- /// Note: We need both Amount and SrcAmount. If Amount is too large then it
- /// needs to be copied to a register (so SrcAmount could be a register).
- /// However, we also need the numeric Amount for bookkeeping, and it's hard to
- /// pull that from the generic SrcAmount operand.
- static InstARM32AdjustStack *create(Cfg *Func, Variable *SP, SizeT Amount,
- Operand *SrcAmount) {
- return new (Func->allocate<InstARM32AdjustStack>())
- InstARM32AdjustStack(Func, SP, Amount, SrcAmount);
- }
- void emit(const Cfg *Func) const override;
- void dump(const Cfg *Func) const override;
- static bool classof(const Inst *Inst) { return isClassof(Inst, Adjuststack); }
- SizeT getAmount() const { return Amount; }
-
-private:
- InstARM32AdjustStack(Cfg *Func, Variable *SP, SizeT Amount,
- Operand *SrcAmount);
- const SizeT Amount;
-};
-
/// Call instruction (bl/blx). Arguments should have already been pushed.
/// Technically bl and the register form of blx can be predicated, but we'll
/// leave that out until needed.
« no previous file with comments | « no previous file | src/IceInstARM32.cpp » ('j') | src/IceTargetLoweringARM32.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698