You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1.0 KiB

  1. Description: mksnapshot uses too much memory on 32-bit mipsel
  2. Author: Jérémy Lal <kapouer@melix.org>
  3. Last-Update: 2020-06-03
  4. Forwarded: https://bugs.chromium.org/p/v8/issues/detail?id=10586
  5. --- a/deps/v8/src/common/globals.h
  6. +++ b/deps/v8/src/common/globals.h
  7. @@ -206,7 +206,7 @@
  8. constexpr size_t kMinExpectedOSPageSize = 64 * KB; // OS page on PPC Linux
  9. #elif V8_TARGET_ARCH_MIPS
  10. constexpr bool kRequiresCodeRange = false;
  11. -constexpr size_t kMaximalCodeRangeSize = 2048LL * MB;
  12. +constexpr size_t kMaximalCodeRangeSize = 512 * MB;
  13. constexpr size_t kMinimumCodeRangeSize = 0 * MB;
  14. constexpr size_t kMinExpectedOSPageSize = 4 * KB; // OS page.
  15. #else
  16. --- a/deps/v8/src/codegen/mips/constants-mips.h
  17. +++ b/deps/v8/src/codegen/mips/constants-mips.h
  18. @@ -137,7 +137,7 @@
  19. namespace v8 {
  20. namespace internal {
  21. -constexpr size_t kMaxPCRelativeCodeRangeInMB = 4096;
  22. +constexpr size_t kMaxPCRelativeCodeRangeInMB = 1024;
  23. // -----------------------------------------------------------------------------
  24. // Registers and FPURegisters.