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

Unified Diff: src/IceCfg.h

Issue 1776473007: Subzero. Allocate global initializers from a dedicated arena. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Removes global variable (and initializer) allocation methods from GlobalContext. Created 4 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 | src/IceCfg.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceCfg.h
diff --git a/src/IceCfg.h b/src/IceCfg.h
index c24319c72d8e7eda8f5432ce67102260d7ed3514..55b1de9b0e2bbc4d3a4dc08c838a39a249013024 100644
--- a/src/IceCfg.h
+++ b/src/IceCfg.h
@@ -158,6 +158,12 @@ public:
}
GlobalInits->push_back(Global);
}
+ VariableDeclarationList *getGlobalPool() {
+ if (GlobalInits == nullptr) {
+ GlobalInits.reset(new VariableDeclarationList);
+ }
+ return GlobalInits.get();
+ }
/// @}
/// \name Miscellaneous accessors.
@@ -261,6 +267,11 @@ private:
/// code needs to be defined.
void profileBlocks();
+ void createNodeNameDeclaration(const IceString &NodeAsmName);
+ void
+ createBlockProfilingInfoDeclaration(const IceString &NodeAsmName,
+ VariableDeclaration *NodeNameDeclaration);
+
/// Delete registered jump table placeholder instructions. This should only be
/// called once all repointing has taken place.
void deleteJumpTableInsts();
« no previous file with comments | « no previous file | src/IceCfg.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698