fix_bug_in_receiver_maps_inference.patch 861 B

12345678910111213141516171819
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: Samuel Attard <[email protected]>
  3. Date: Thu, 27 Feb 2020 11:47:31 -0800
  4. Subject: Fix bug in receiver maps inference
  5. Refs: https://chromium-review.googlesource.com/c/v8/v8/+/2062404
  6. diff --git a/src/compiler/node-properties.cc b/src/compiler/node-properties.cc
  7. index d6528c553a149cb7bcf1543b0e0c3b13d30622b2..92226565ea732d197e582f31d53d28a86236ed2f 100644
  8. --- a/src/compiler/node-properties.cc
  9. +++ b/src/compiler/node-properties.cc
  10. @@ -444,6 +444,7 @@ NodeProperties::InferReceiverMapsResult NodeProperties::InferReceiverMaps(
  11. // We reached the allocation of the {receiver}.
  12. return kNoReceiverMaps;
  13. }
  14. + result = kUnreliableReceiverMaps; // JSCreate can have side-effect.
  15. break;
  16. }
  17. case IrOpcode::kJSCreatePromise: {