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

Unified Diff: src/IceThreading.cpp

Issue 1147023007: Subzero: Basic Block Profiler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Adds a $ to the profiler generated labels. Created 5 years, 6 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
« src/IceGlobalContext.cpp ('K') | « src/IceThreading.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceThreading.cpp
diff --git a/src/IceThreading.cpp b/src/IceThreading.cpp
index 5576abb2ded87b45f432e446ca5703b6ce7fdafc..5cdaaa80bf6bd5e3b6d9f6e43adcecf7a6faa9e0 100644
--- a/src/IceThreading.cpp
+++ b/src/IceThreading.cpp
@@ -30,8 +30,15 @@ EmitterWorkItem::EmitterWorkItem(uint32_t Seq, Cfg *F)
: Sequence(Seq), Kind(WI_Cfg), GlobalInits(nullptr), Function(nullptr),
RawFunc(F) {}
+void EmitterWorkItem::setGlobalInits(
+ std::unique_ptr<VariableDeclarationList> GloblInits) {
+ assert(getKind() == WI_Asm || getKind() == WI_Cfg);
+ GlobalInits = std::move(GloblInits);
+}
+
std::unique_ptr<VariableDeclarationList> EmitterWorkItem::getGlobalInits() {
- assert(getKind() == WI_GlobalInits);
+ assert(getKind() == WI_GlobalInits || getKind() == WI_Asm ||
+ getKind() == WI_Cfg);
return std::move(GlobalInits);
}
« src/IceGlobalContext.cpp ('K') | « src/IceThreading.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698