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

Unified Diff: src/IceSwitchLowering.h

Issue 1260183008: Order jump tables for deterministic or randomized emission. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix sort comparison. Created 5 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/IceGlobalContext.cpp ('k') | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceSwitchLowering.h
diff --git a/src/IceSwitchLowering.h b/src/IceSwitchLowering.h
index 34c9373c6d80060e2ee949feffbf55c1cb923504..57c7d3cbe08faae9181cb3e6a0f415873bb717cc 100644
--- a/src/IceSwitchLowering.h
+++ b/src/IceSwitchLowering.h
@@ -79,7 +79,6 @@ private:
/// ELF section once the offsets from the start of the function are known.
class JumpTableData {
JumpTableData() = delete;
- JumpTableData(const JumpTableData &) = delete;
JumpTableData &operator=(const JumpTableData &) = delete;
public:
@@ -87,7 +86,9 @@ public:
: FuncName(FuncName), Id(Id) {
TargetOffsets.reserve(NumTargets);
}
+ JumpTableData(const JumpTableData &) = default;
JumpTableData(JumpTableData &&) = default;
+ JumpTableData &operator=(JumpTableData &&) = default;
void pushTarget(intptr_t Offset) { TargetOffsets.emplace_back(Offset); }
@@ -98,8 +99,8 @@ public:
}
private:
- const IceString FuncName;
- const SizeT Id;
+ IceString FuncName;
+ SizeT Id;
std::vector<intptr_t> TargetOffsets;
};
« no previous file with comments | « src/IceGlobalContext.cpp ('k') | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698