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

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 Basic Block Profiling. 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/IceThreading.h ('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..3bec0e678736bbb97e9635572449763caef9d671 100644
--- a/src/IceThreading.cpp
+++ b/src/IceThreading.cpp
@@ -45,4 +45,15 @@ std::unique_ptr<Cfg> EmitterWorkItem::getCfg() {
return std::move(RawFunc);
}
+void EmitterWorkItem::setProfilerInits(
+ std::unique_ptr<VariableDeclarationList> ProfInits) {
+ assert(getKind() == WI_Asm || getKind() == WI_Cfg);
+ ProfilerInits = std::move(ProfInits);
+}
+
+std::unique_ptr<VariableDeclarationList> EmitterWorkItem::getProfilerInits() {
+ assert(getKind() == WI_Asm || getKind() == WI_Cfg);
+ return std::move(ProfilerInits);
+}
+
} // end of namespace Ice
« src/IceThreading.h ('K') | « src/IceThreading.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698