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

Unified Diff: src/IceGlobalContext.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 | « no previous file | src/IceGlobalContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceGlobalContext.h
diff --git a/src/IceGlobalContext.h b/src/IceGlobalContext.h
index acef4c5aae275f2051a615933a83ad5193932211..7f27024490974a743f01a0096884d347468d882e 100644
--- a/src/IceGlobalContext.h
+++ b/src/IceGlobalContext.h
@@ -212,9 +212,7 @@ public:
ConstantList getConstantExternSyms();
/// Return a locked pointer to the registered jump tables.
- LockedPtr<JumpTableDataList> getJumpTables() {
- return LockedPtr<JumpTableDataList>(&JumpTables, &JumpTablesLock);
- }
+ JumpTableDataList getJumpTables();
/// Create a new jump table entry and return a reference to it.
JumpTableData &addJumpTable(IceString FuncName, SizeT Id, SizeT NumTargets);
@@ -467,9 +465,9 @@ private:
std::unique_ptr<ConstantPool> ConstPool;
ICE_CACHELINE_BOUNDARY;
- // Managed by getJumpTables()
+ // Managed by getJumpTableList()
GlobalLockType JumpTablesLock;
- JumpTableDataList JumpTables;
+ JumpTableDataList JumpTableList;
ICE_CACHELINE_BOUNDARY;
// Managed by getErrorStatus()
@@ -522,6 +520,9 @@ private:
LockedPtr<ConstantPool> getConstPool() {
return LockedPtr<ConstantPool>(ConstPool.get(), &ConstPoolLock);
}
+ LockedPtr<JumpTableDataList> getJumpTableList() {
+ return LockedPtr<JumpTableDataList>(&JumpTableList, &JumpTablesLock);
+ }
LockedPtr<CodeStats> getStatsCumulative() {
return LockedPtr<CodeStats>(&StatsCumulative, &StatsLock);
}
« no previous file with comments | « no previous file | src/IceGlobalContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698