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

Unified Diff: src/IceGlobalContext.cpp

Issue 1460003003: Fix race condition in jump table list creation (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add some missing consts 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 | « src/IceGlobalContext.h ('k') | src/IceSwitchLowering.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceGlobalContext.cpp
diff --git a/src/IceGlobalContext.cpp b/src/IceGlobalContext.cpp
index fbdcd1bcc4e13f24bf5eaeaa4490f0d5754ed02a..94a5343fef8b9d965bb453d474bf654beb98b627 100644
--- a/src/IceGlobalContext.cpp
+++ b/src/IceGlobalContext.cpp
@@ -895,10 +895,11 @@ JumpTableDataList GlobalContext::getJumpTables() {
return JumpTables;
}
-JumpTableData &GlobalContext::addJumpTable(IceString FuncName, SizeT Id,
- SizeT NumTargets) {
+JumpTableData &
+GlobalContext::addJumpTable(IceString FuncName, SizeT Id,
+ const JumpTableData::TargetList &TargetList) {
auto JumpTableList = getJumpTableList();
- JumpTableList->emplace_back(FuncName, Id, NumTargets);
+ JumpTableList->emplace_back(FuncName, Id, TargetList);
return JumpTableList->back();
}
« no previous file with comments | « src/IceGlobalContext.h ('k') | src/IceSwitchLowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698