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

Unified Diff: src/IceGlobalContext.cpp

Issue 2042063002: Created Ice::Instrumentation base class and accompanying hooks. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 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
Index: src/IceGlobalContext.cpp
diff --git a/src/IceGlobalContext.cpp b/src/IceGlobalContext.cpp
index 058825b79dc194647e46f2f937eb674b21d14ea7..4d485b3ec900ba660130ecdf495da10c7ac64bd2 100644
--- a/src/IceGlobalContext.cpp
+++ b/src/IceGlobalContext.cpp
@@ -486,6 +486,10 @@ void GlobalContext::lowerGlobals(const std::string &SectionSuffix) {
RandomShuffle(Globals.begin(), Globals.end(),
[&RNG](int N) { return (uint32_t)RNG.next(N); });
}
+
+ if (Instrumentor)
Karl 2016/06/06 22:27:02 Again, enclose code inside a conditional on BuildD
tlively 2016/06/07 00:43:05 Done.
+ Instrumentor->instrumentGlobals();
+
DataLowering->lowerGlobals(Globals, SectionSuffix);
if (ProfileBlockInfos.empty() && DisposeGlobalVariablesAfterLowering) {
Globals.clearAndPurge();

Powered by Google App Engine
This is Rietveld 408576698