Iasm and obj lowering for advanced switch lowering.
Jump table emission is delayed until offsets are known. X86 local jumps can be
near or far. Sanboxing is applied to indirect jumps from jump table.
BUG=
R=stichnot@chromium.org, jvoung
Review URL: https://codereview.chromium.org/1257283004.
diff --git a/src/IceCompiler.cpp b/src/IceCompiler.cpp
index 59f18d2..23733ce 100644
--- a/src/IceCompiler.cpp
+++ b/src/IceCompiler.cpp
@@ -154,6 +154,7 @@
Ctx.lowerGlobals("last");
Ctx.lowerProfileData();
Ctx.lowerConstants();
+ Ctx.lowerJumpTables();
if (Ctx.getFlags().getOutFileType() == FT_Elf) {
TimerMarker T1(Ice::TimerStack::TT_emit, &Ctx);