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

Unified Diff: src/IceTargetLoweringX8632.h

Issue 870653002: Subzero: Initial implementation of multithreaded translation. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Rebase Created 5 years, 11 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/IceTargetLowering.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 cd82d7ae9427c266e67906f2374e901727f492ba..1ee3c1d9997a9edf177e5cb2385b1c030a7234c2 100644
--- a/src/IceTargetLoweringX8632.h
+++ b/src/IceTargetLoweringX8632.h
@@ -56,7 +56,6 @@ public:
void lowerArguments() override;
void addProlog(CfgNode *Node) override;
void addEpilog(CfgNode *Node) override;
- void emitConstants() const override;
SizeT makeNextLabelNumber() { return NextLabelNumber++; }
// Ensure that a 64-bit Variable has been split into 2 32-bit
// Variables, creating them if necessary. This is needed for all
@@ -487,25 +486,27 @@ protected:
private:
~TargetX8632() override {}
- template <typename T> void emitConstantPool() const;
};
-class TargetGlobalInitX8632 : public TargetGlobalInitLowering {
- TargetGlobalInitX8632(const TargetGlobalInitX8632 &) = delete;
- TargetGlobalInitX8632 &operator=(const TargetGlobalInitX8632 &) = delete;
+class TargetGlobalX8632 : public TargetGlobalLowering {
+ TargetGlobalX8632() = delete;
+ TargetGlobalX8632(const TargetGlobalX8632 &) = delete;
+ TargetGlobalX8632 &operator=(const TargetGlobalX8632 &) = delete;
public:
- static TargetGlobalInitLowering *create(GlobalContext *Ctx) {
- return new TargetGlobalInitX8632(Ctx);
+ static TargetGlobalLowering *create(GlobalContext *Ctx) {
+ return new TargetGlobalX8632(Ctx);
}
- virtual void lower(const VariableDeclaration &Var) final;
+ virtual void lowerInit(const VariableDeclaration &Var) const final;
+ virtual void lowerConstants(GlobalContext *Ctx) const final;
protected:
- TargetGlobalInitX8632(GlobalContext *Ctx);
+ TargetGlobalX8632(GlobalContext *Ctx);
private:
- ~TargetGlobalInitX8632() override {}
+ ~TargetGlobalX8632() override {}
+ template <typename T> static void emitConstantPool(GlobalContext *Ctx);
};
template <> void ConstantInteger32::emit(GlobalContext *Ctx) const;
« no previous file with comments | « src/IceTargetLowering.cpp ('k') | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698