Revert "Add --jitless to recommended v8 flags."
This reverts commit 33cc9c60892a0d527bf7aee95c8be8d298119efd.
Reason for revert: V8 is not ready yet.
The PDF from https://crbug.com/306123 triggers a DCHECK failure in V8.
Original change's description:
> 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>
TBR=thestig@chromium.org,tsepez@chromium.org
# Not skipping CQ checks because original CL landed > 1 day ago.
Change-Id: I28f378a2b54d068a4c7f2a015e1a3767ac738b89
Reviewed-on: https://pdfium-review.googlesource.com/c/49890
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/fpdfsdk/fpdf_view.cpp b/fpdfsdk/fpdf_view.cpp
index 0123035..d078600 100644
--- a/fpdfsdk/fpdf_view.cpp
+++ b/fpdfsdk/fpdf_view.cpp
@@ -1062,8 +1062,7 @@
#ifdef PDF_ENABLE_V8
FPDF_EXPORT const char* FPDF_CALLCONV FPDF_GetRecommendedV8Flags() {
// Reduce exposure since no PDF should contain web assembly.
- // Use interpreted JS only to avoid RWX pages in our address space.
- return "--no-expose-wasm --jitless";
+ return "--no-expose-wasm";
}
#endif // PDF_ENABLE_V8