v8/test/unittests/torque
Seth Brenith 72d440d97d [torque] Strict verification of weak fields
Now that we can represent specific weak types with Weak<T>, this CL
updates the generated verifier functions so that they permit weak
references only to the specified type. As an example, consider the
verifier emitted for the following field in PrototypeInfo:

  object_create_map: Weak<Map>|Undefined;

We used to emit the following, which allowed any weak reference:

  CHECK(object_create_map__value.IsWeakOrCleared()
      || object_create_map__value.GetHeapObjectOrSmi().IsOddball());

With this change, we emit a stricter check:

  CHECK(object_create_map__value.IsCleared()
      || (!object_create_map__value.IsWeak()
          && object_create_map__value.GetHeapObjectOrSmi().IsOddball())
      || (object_create_map__value.IsWeak()
          && object_create_map__value.GetHeapObjectOrSmi().IsMap()));

Bug: v8:7793
Change-Id: I4be236d97dedbcdd6c98207928aee8bda2a77f00
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1914613
Commit-Queue: Seth Brenith <seth.brenith@microsoft.com>
Reviewed-by: Tobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64965}
2019-11-14 18:24:47 +00:00
..
earley-parser-unittest.cc [torque] generate files per Torque file instead of per namespace 2019-06-05 16:12:27 +00:00
ls-json-unittest.cc Reland^3 "[torque] Throw exception instead of aborting if something goes wrong" 2019-04-16 10:41:20 +00:00
ls-message-unittest.cc [cleanup] Avoid non-const reference arguments in src/torque 2019-07-09 05:14:28 +00:00
ls-server-data-unittest.cc [torque] generate files per Torque file instead of per namespace 2019-06-05 16:12:27 +00:00
torque-unittest.cc [torque] Strict verification of weak fields 2019-11-14 18:24:47 +00:00
torque-utils-unittest.cc [torque-ls] fix Windows file paths 2019-04-24 08:17:07 +00:00