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

Unified Diff: src/IceGlobalContext.cpp

Issue 1257283004: Iasm and obj lowering for advanced switch lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 5 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 51ca3f08240d49b4252358ef2c62389b2c0f05de..b63bef6ff5404c4b5d8c989de0a1f0bd83f6d910 100644
--- a/src/IceGlobalContext.cpp
+++ b/src/IceGlobalContext.cpp
@@ -385,6 +385,8 @@ void GlobalContext::emitFileHeader() {
void GlobalContext::lowerConstants() { DataLowering->lowerConstants(); }
+void GlobalContext::lowerJumpTables() { DataLowering->lowerJumpTables(); }
+
void GlobalContext::lowerGlobals(const IceString &SectionSuffix) {
TimerMarker T(TimerStack::TT_emitGlobalInitializers, this);
const bool DumpGlobalVariables = BuildDefs::dump() && Flags.getVerbose() &&
@@ -876,6 +878,13 @@ ConstantList GlobalContext::getConstantExternSyms() {
return getConstPool()->ExternRelocatables.getConstantPool();
}
+JumpTableData &GlobalContext::addJumpTable(IceString FuncName, SizeT Id,
+ SizeT NumTargets) {
+ LockedPtr<std::vector<JumpTableData>> JumpTables = getJumpTables();
Jim Stichnoth 2015/07/30 19:21:23 JumpTableDataList Or, use auto, which is already
ascull 2015/07/30 20:39:38 Done.
+ JumpTables->emplace_back(FuncName, Id, NumTargets);
+ return JumpTables->back();
+}
+
TimerStackIdT GlobalContext::newTimerStackID(const IceString &Name) {
if (!BuildDefs::dump())
return 0;
« src/IceGlobalContext.h ('K') | « src/IceGlobalContext.h ('k') | src/IceInst.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698