Add --jitless to recommended v8 flags.

Now that v8 supports this mode, save some memory and avoid
creating RWX pages in the processes running pdfium.

Change-Id: I7e28331487812abdfef3c9b4fa1a71fb492aba0a
Reviewed-on: https://pdfium-review.googlesource.com/c/49670
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/fpdfsdk/fpdf_view.cpp b/fpdfsdk/fpdf_view.cpp
index d078600..0123035 100644
--- a/fpdfsdk/fpdf_view.cpp
+++ b/fpdfsdk/fpdf_view.cpp
@@ -1062,7 +1062,8 @@
 #ifdef PDF_ENABLE_V8
 FPDF_EXPORT const char* FPDF_CALLCONV FPDF_GetRecommendedV8Flags() {
   // Reduce exposure since no PDF should contain web assembly.
-  return "--no-expose-wasm";
+  // Use interpreted JS only to avoid RWX pages in our address space.
+  return "--no-expose-wasm --jitless";
 }
 #endif  // PDF_ENABLE_V8