# Copyright 2018 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

[

[ALWAYS, {
  # TODO(v8:10556): Remove sub-typing in the reference-types implementation
  'constructor/instantiate': [FAIL],
  'instance/constructor': [FAIL],
  'proposals/js-types/constructor/instantiate': [FAIL],
  'proposals/js-types/global/constructor': [FAIL],
  'proposals/js-types/global/value-get-set': [FAIL],
  'proposals/js-types/instance/constructor': [FAIL],

  'prototypes': [FAIL],

  # These are slow, and not useful to run for the proposals:
  'proposals/js-types/limits': [SKIP],
  'proposals/simd/limits': [SKIP],
  'proposals/memory64/limits': [SKIP],

  # TODO(v8:11577): investigate this failure.
  'limits': [SKIP],
}], # ALWAYS

['arch == s390 or arch == s390x or system == aix', {
  # https://bugs.chromium.org/p/v8/issues/detail?id=8402
  'instance/constructor': [SKIP],
  'constructor/instantiate': [SKIP],
}],  # 'arch == s390 or arch == s390x or system == aix'

['mode == debug or simulator_run or variant != default or arch == arm or tsan or msan or asan', {
  # Slow, and we always have the same limits anyway.
  # ODroid bots don't have enough memory to run the test.
  'limits': [SKIP],
}],  # mode == debug or simulator_run or variant != default or arch == arm or tsan or msan or asan

##############################################################################
# TODO(v8:7777): Change this once wasm is supported in jitless mode.
['not has_webassembly or variant == jitless', {
  '*': [SKIP],
}],  # not has_webassembly or variant == jitless

################################################################################
['variant == stress_snapshot', {
  '*': [SKIP],  # only relevant for mjsunit tests.
}],

]