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

Unified Diff: src/IceGlobalContext.h

Issue 1030793002: Make compile without ICE_THREAD_LOCAL_HACK (avoid "Type *TLS = TLS;") (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 9 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 | no next file » | 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 a709981dcc646c5db4a840cc70d795e2fab8266a..d81697d2ede5a0dddc67b68a19b665801cd9c869 100644
--- a/src/IceGlobalContext.h
+++ b/src/IceGlobalContext.h
@@ -226,37 +226,37 @@ public:
void statsUpdateEmitted(uint32_t InstCount) {
if (!getFlags().getDumpStats())
return;
- ThreadContext *TLS = ICE_TLS_GET_FIELD(TLS);
- TLS->StatsFunction.update(CodeStats::CS_InstCount, InstCount);
- TLS->StatsCumulative.update(CodeStats::CS_InstCount, InstCount);
+ ThreadContext *Tls = ICE_TLS_GET_FIELD(TLS);
+ Tls->StatsFunction.update(CodeStats::CS_InstCount, InstCount);
+ Tls->StatsCumulative.update(CodeStats::CS_InstCount, InstCount);
}
void statsUpdateRegistersSaved(uint32_t Num) {
if (!getFlags().getDumpStats())
return;
- ThreadContext *TLS = ICE_TLS_GET_FIELD(TLS);
- TLS->StatsFunction.update(CodeStats::CS_RegsSaved, Num);
- TLS->StatsCumulative.update(CodeStats::CS_RegsSaved, Num);
+ ThreadContext *Tls = ICE_TLS_GET_FIELD(TLS);
+ Tls->StatsFunction.update(CodeStats::CS_RegsSaved, Num);
+ Tls->StatsCumulative.update(CodeStats::CS_RegsSaved, Num);
}
void statsUpdateFrameBytes(uint32_t Bytes) {
if (!getFlags().getDumpStats())
return;
- ThreadContext *TLS = ICE_TLS_GET_FIELD(TLS);
- TLS->StatsFunction.update(CodeStats::CS_FrameByte, Bytes);
- TLS->StatsCumulative.update(CodeStats::CS_FrameByte, Bytes);
+ ThreadContext *Tls = ICE_TLS_GET_FIELD(TLS);
+ Tls->StatsFunction.update(CodeStats::CS_FrameByte, Bytes);
+ Tls->StatsCumulative.update(CodeStats::CS_FrameByte, Bytes);
}
void statsUpdateSpills() {
if (!getFlags().getDumpStats())
return;
- ThreadContext *TLS = ICE_TLS_GET_FIELD(TLS);
- TLS->StatsFunction.update(CodeStats::CS_NumSpills);
- TLS->StatsCumulative.update(CodeStats::CS_NumSpills);
+ ThreadContext *Tls = ICE_TLS_GET_FIELD(TLS);
+ Tls->StatsFunction.update(CodeStats::CS_NumSpills);
+ Tls->StatsCumulative.update(CodeStats::CS_NumSpills);
}
void statsUpdateFills() {
if (!getFlags().getDumpStats())
return;
- ThreadContext *TLS = ICE_TLS_GET_FIELD(TLS);
- TLS->StatsFunction.update(CodeStats::CS_NumFills);
- TLS->StatsCumulative.update(CodeStats::CS_NumFills);
+ ThreadContext *Tls = ICE_TLS_GET_FIELD(TLS);
+ Tls->StatsFunction.update(CodeStats::CS_NumFills);
+ Tls->StatsCumulative.update(CodeStats::CS_NumFills);
}
// These are predefined TimerStackIdT values.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698