v8/test/cctest
Jakob Gruber 57d985a584 Refactor OptimizationMarker and ConcurrencyMode enums
.. with readability and simplicity in mind.

- Rename OptimizationMarker to the (shorter) TieringState. 'Tiering'
  also matches 'TieringManager' terminology.
- Rename the values:
  kNone -> kNone
  kInOptimizationQueue -> kInProgress
  kCompileFoo_NotConcurrent -> kRequestFoo_Synchronous
  kCompileFoo_Concurrent -> kRequestFoo_Concurrent
- Likewise rename ConcurrencyMode::kNotConcurrent to kSynchronous.
- Add predicates to test enum values.
- Consistent lower case names for accessors on JSFunction and
  FeedbackVector.
- Instead of having to call HasOptimizationMarker() before using any
  other accessor, simply have optimization_marker() return kNone if
  no feedback vector exists.
- Drive-by: Enable the Unreachable() in MaybeOptimizeCode()
  unconditionally - this should never happen, there's no reason not
  to protect against this in release builds as well.

Bug: v8:12161
Change-Id: I67c03e2b7bd0a6b86d0c64f504ad8cb47e9e26ae
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3555774
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Commit-Queue: Jakob Linke <jgruber@chromium.org>
Auto-Submit: Jakob Linke <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/main@{#79669}
2022-03-30 08:37:42 +00:00
..
compiler [maglev] Towards concurrent Maglev compilation 2022-03-16 08:54:23 +00:00
heap [heap] Initialize pages with placement-new 2022-03-28 09:18:55 +00:00
interpreter [ShadowRealm] WrappedFunction properties 2022-03-25 16:00:33 +00:00
libplatform
libsampler Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
parsing [compiler] Introduce ReusableUnoptimizedCompileState 2021-12-08 11:14:27 +00:00
torque [csa, torque, cleanup] Rename CSA_ASSERT to CSA_DCHECK 2021-09-30 08:41:23 +00:00
wasm Revert "[wasm-gc] Implement isorecursive canonicalization" 2022-03-30 07:47:00 +00:00
assembler-helper-arm.cc
assembler-helper-arm.h
BUILD.gn Add ldflags for aix 2022-02-15 09:00:58 +00:00
cctest-utils.h [LOONG64] Add LoongArch64 backend 2021-08-16 13:05:19 +00:00
cctest.cc MockTracingPlatform: Fix uaf with stack-scoped platform 2022-03-23 20:22:42 +00:00
cctest.h MockTracingPlatform: Fix uaf with stack-scoped platform 2022-03-23 20:22:42 +00:00
cctest.status [api] Remove TracedGlobal<> 2022-03-23 21:04:51 +00:00
collector.h [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
DEPS
disasm-regex-helper.cc [ext-code-space] Avoid Code <-> CodeT conversions in runtime, pt.2 2021-12-14 12:19:05 +00:00
disasm-regex-helper.h
expression-type-collector-macros.h
gay-fixed.cc Reland "[base] Move most of src/numbers into base" 2021-06-24 15:00:27 +00:00
gay-fixed.h Reland "[base] Move most of src/numbers into base" 2021-06-24 15:00:27 +00:00
gay-precision.cc Reland "[base] Move most of src/numbers into base" 2021-06-24 15:00:27 +00:00
gay-precision.h Reland "[base] Move most of src/numbers into base" 2021-06-24 15:00:27 +00:00
gay-shortest.cc Reland "[base] Move most of src/numbers into base" 2021-06-24 15:00:27 +00:00
gay-shortest.h Reland "[base] Move most of src/numbers into base" 2021-06-24 15:00:27 +00:00
manually-externalized-buffer.h
OWNERS Update OWNERS in test/* 2021-02-25 14:26:24 +00:00
print-extension.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
print-extension.h Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
profiler-extension.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
profiler-extension.h Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
scope-test-helper.h
setup-isolate-for-tests.cc
setup-isolate-for-tests.h
test-access-checks.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
test-accessor-assembler.cc [ic] Use the Map for hashing in the secondary stub cache 2021-10-15 14:54:28 +00:00
test-accessors.cc [cleanup] Fix Wshadow warnings in cctests 2021-09-27 09:18:00 +00:00
test-allocation.cc MockTracingPlatform: Fix uaf with stack-scoped platform 2022-03-23 20:22:42 +00:00
test-api-accessors.cc [ShadowRealm] WrappedFunction properties 2022-03-25 16:00:33 +00:00
test-api-array-buffer.cc [builtins] DataView should throws on detached buffer 2021-09-14 16:49:36 +00:00
test-api-icu.cc [Intl] Update ICU to 70-1 on v8 2021-11-12 11:35:09 +00:00
test-api-interceptors.cc [runtime] Fix handling of interceptors 2022-03-24 17:50:12 +00:00
test-api-stack-traces.cc Introduce v8::StackTrace::CurrentScriptNameOrSourceURL 2022-01-17 11:34:28 +00:00
test-api-typed-array.cc [rab / gsab] Add tests for the recent DataView bugs 2021-11-24 16:20:29 +00:00
test-api-wasm.cc [wasm][api] Add WasmModuleObject::Compile api function 2021-11-19 22:25:15 +00:00
test-api.cc MockTracingPlatform: Fix uaf with stack-scoped platform 2022-03-23 20:22:42 +00:00
test-api.h Reland "Fix -Wimplicit-int-float-conversions." 2021-06-29 16:36:18 +00:00
test-array-list.cc [runtime] Add ReadOnlyRoots.empty_array_list() 2022-02-16 08:17:06 +00:00
test-assembler-arm64.cc [codegen] Change RegList into a class 2022-03-14 12:59:48 +00:00
test-assembler-arm.cc [codegen] Change RegList into a class 2022-03-14 12:59:48 +00:00
test-assembler-ia32.cc [deoptimizer] Remove non-fixed-size deopts 2022-03-29 12:54:58 +00:00
test-assembler-loong64.cc [loong64] Fix the wrong encoding and usage of maskeqz/masknez instructions 2021-12-24 10:46:06 +00:00
test-assembler-mips64.cc [loong64][mips] Fix safepoint record of CallCFunction 2021-11-04 02:29:29 +00:00
test-assembler-mips.cc [loong64][mips] Fix safepoint record of CallCFunction 2021-11-04 02:29:29 +00:00
test-assembler-ppc.cc [codegen] Change RegList into a class 2022-03-14 12:59:48 +00:00
test-assembler-riscv64.cc [riscv64] Add check_fn before calculating the expected value 2022-02-23 06:31:17 +00:00
test-assembler-s390.cc [cleanup] Rename RelocInfo::NONE to RelocInfo::NO_INFO to fix -Wshadow 2021-11-17 19:11:40 +00:00
test-assembler-x64.cc [x64] Implement 256-bit assembler for vshufps 2022-01-13 08:34:45 +00:00
test-atomicops.cc Add Relaxed_Memcmp 2021-12-03 18:00:48 +00:00
test-bignum-dtoa.cc Reland "[base] Move most of src/numbers into base" 2021-06-24 15:00:27 +00:00
test-bignum.cc Reland "[base] Move most of src/numbers into base" 2021-06-24 15:00:27 +00:00
test-bit-vector.cc [utils] Move BitVector's iterator to STL-like interface. 2022-02-14 13:19:57 +00:00
test-circular-queue.cc
test-code-layout.cc
test-code-pages.cc [sparkplug] Remove BaselineData, use Code directly 2021-09-06 11:52:21 +00:00
test-code-stub-assembler.cc [runtime] Clean up runtime function Arguments accesses 2022-03-09 13:03:15 +00:00
test-compiler.cc [local-isolate] Move worker RCS scope into LocalIsolate 2021-12-10 11:08:01 +00:00
test-concurrent-descriptor-array.cc
test-concurrent-feedback-vector.cc [ic] Fix -Wshadow by making InlineCacheState an enum class 2021-11-19 18:52:15 +00:00
test-concurrent-js-array.cc Reland "[compiler] Direct heap reads for JSArrayRef" 2021-02-22 12:15:50 +00:00
test-concurrent-prototype.cc Plumb Isolate through SetPrototype 2022-02-05 00:21:15 +00:00
test-concurrent-script-context-table.cc [runtime] Use a hashtable in ScriptContextTable 2022-02-07 16:06:15 +00:00
test-concurrent-string.cc [string] Skip concurrent tests if FLAG_single_generation is on 2021-06-09 12:30:28 +00:00
test-concurrent-transition-array.cc Reland "[runtime] Refactor TransitionsAccessor" 2022-02-14 12:05:06 +00:00
test-constantpool.cc
test-conversions.cc [numbers] Rename ConversionFlags:NO_FLAG to NO_CONVERSION_FLAGS 2021-11-11 22:04:22 +00:00
test-cpu-profiler.cc [profiler] Use FilterContext to filter VMState in Samples 2022-02-23 14:47:37 +00:00
test-date.cc
test-debug-helper.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
test-debug.cc [debug] Hold on to promises weakly from the debugger's promise stack. 2022-03-24 08:16:32 +00:00
test-decls.cc [api] V8::Initialize cleanup 2021-11-30 14:30:38 +00:00
test-deoptimization.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
test-descriptor-array.cc Refactor Name::Hash 2022-02-07 11:30:04 +00:00
test-dictionary.cc
test-disasm-arm64.cc [wasm-simd] Remove PrefetchTemporal and PrefetchNonTemporal operations 2021-03-22 17:47:49 +00:00
test-disasm-arm.cc [wasm-simd][arm] Fuse extadd_pairwise and add SIMD on arm. 2021-06-28 14:26:00 +00:00
test-disasm-ia32.cc [cleanup] Rename RelocInfo::NONE to RelocInfo::NO_INFO to fix -Wshadow 2021-11-17 19:11:40 +00:00
test-disasm-loong64.cc [loong64] Fix the wrong encoding and usage of maskeqz/masknez instructions 2021-12-24 10:46:06 +00:00
test-disasm-mips64.cc [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
test-disasm-mips.cc [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
test-disasm-ppc.cc [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
test-disasm-riscv64.cc [riscv64] Add RVV Float-Point Widening Instructions 2022-02-22 10:59:25 +00:00
test-disasm-s390.cc [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
test-disasm-x64.cc [x64] Implement 256-bit assembler for vshufps 2022-01-13 08:34:45 +00:00
test-diy-fp.cc Reland "[base] Move most of src/numbers into base" 2021-06-24 15:00:27 +00:00
test-double.cc Reland "[base] Move most of src/numbers into base" 2021-06-24 15:00:27 +00:00
test-dtoa.cc Reland "[base] Move most of src/numbers into base" 2021-06-24 15:00:27 +00:00
test-elements-kind.cc
test-factory.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
test-fast-dtoa.cc Reland "[base] Move most of src/numbers into base" 2021-06-24 15:00:27 +00:00
test-feedback-vector.cc [ic] name Set/Define/Store property operations more consistently 2022-03-08 18:48:16 +00:00
test-feedback-vector.h Revert "factory: Move FeedbackVector construction to type" 2022-01-21 17:09:16 +00:00
test-field-type-tracking.cc Refactor OptimizationMarker and ConcurrencyMode enums 2022-03-30 08:37:42 +00:00
test-fixed-dtoa.cc Reland "[base] Move most of src/numbers into base" 2021-06-24 15:00:27 +00:00
test-flags.cc [no-wasm][flags] Remove wasm flags 2021-03-16 07:31:25 +00:00
test-func-name-inference.cc [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
test-fuzz-arm64.cc
test-global-handles.cc [api] Remove TracedGlobal<> 2022-03-23 21:04:51 +00:00
test-global-object.cc
test-hashcode.cc [dict-proto] Rename v8_dict_mode_prototypes flag 2021-03-29 11:53:45 +00:00
test-hashmap.cc
test-heap-profiler.cc Refactor OptimizationMarker and ConcurrencyMode enums 2022-03-30 08:37:42 +00:00
test-helper-riscv64.cc
test-helper-riscv64.h [riscv64] Add RVV Float-Point Widening Instructions 2022-02-22 10:59:25 +00:00
test-icache.cc [wasm] Avoid passing nullptr to CodeSpaceWriteScope 2022-02-25 16:49:17 +00:00
test-identity-map.cc [string] Remove FLAG_thin_string and enable it all the time 2021-06-09 09:52:48 +00:00
test-ignition-statistics-extension.cc Fix counting ignition dispatches 2021-06-07 18:47:24 +00:00
test-inobject-slack-tracking.cc [runtime] Use NameToIndexHashTable in ScopeInfo 2022-01-27 18:25:52 +00:00
test-inspector.cc [inspector] Use ephemeron table for exception metadata 2021-09-16 08:45:11 +00:00
test-intl.cc [builtins] add Torque fast-path for String.prototype.localeCompare 2021-11-17 12:55:13 +00:00
test-javascript-arm64.cc
test-js-arm64-variables.cc
test-js-to-wasm.cc Revert "[turbofan] Making OSR concurrent" 2022-02-21 14:02:43 +00:00
test-js-weak-refs.cc heap: Replace WeakObjects Worklist with ::heap::base::Worklist 2021-11-30 11:37:31 +00:00
test-liveedit.cc [cleanup] Fix some -Wshadow warnings 2021-11-02 17:11:48 +00:00
test-local-handles.cc [cleanup] Fix some -Wshadow warnings 2021-11-02 17:11:48 +00:00
test-lockers.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
test-log-stack-tracer.cc [ext-code-space] Use cage-friendly HeapObject::map() in compiler 2021-11-30 13:00:28 +00:00
test-log.cc [init] Install console API to context extras binding 2022-02-08 15:48:33 +00:00
test-macro-assembler-arm64.cc [deoptimizer] Remove non-fixed-size deopts 2022-03-29 12:54:58 +00:00
test-macro-assembler-arm.cc [deoptimizer] Remove non-fixed-size deopts 2022-03-29 12:54:58 +00:00
test-macro-assembler-loong64.cc [deoptimizer] Remove non-fixed-size deopts 2022-03-29 12:54:58 +00:00
test-macro-assembler-mips64.cc [deoptimizer] Remove non-fixed-size deopts 2022-03-29 12:54:58 +00:00
test-macro-assembler-mips.cc [deoptimizer] Remove non-fixed-size deopts 2022-03-29 12:54:58 +00:00
test-macro-assembler-riscv64.cc [deoptimizer] Remove non-fixed-size deopts 2022-03-29 12:54:58 +00:00
test-macro-assembler-x64.cc [deoptimizer] Remove non-fixed-size deopts 2022-03-29 12:54:58 +00:00
test-managed.cc [ext-code-space] Introduce managed-inl.h and global-handles-inl.h 2021-09-20 10:29:29 +00:00
test-mementos.cc [heap] Make creation of NewSpace and NewLargeObjectSpace optional 2021-05-04 06:47:54 +00:00
test-modules.cc Reland "[top-level-await] Remove --harmony-top-level-await" 2021-12-06 23:02:33 +00:00
test-object.cc [runtime] Fix constructors with custom instance types 2021-11-25 10:26:50 +00:00
test-orderedhashtable.cc [objects] Make PropertyKind an enum class to fix -Wshadow 2021-11-15 19:05:14 +00:00
test-parsing.cc [parser] Split AstRawString and Parser zones 2021-12-10 16:03:42 +00:00
test-persistent-handles.cc [cleanup] Fix some -Wshadow warnings 2021-11-02 17:11:48 +00:00
test-platform.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
test-pointer-auth-arm64.cc
test-profile-generator.cc MockTracingPlatform: Fix uaf with stack-scoped platform 2022-03-23 20:22:42 +00:00
test-property-details.cc
test-ptr-compr-cage.cc [ext-code-space] Make the code space external for real 2021-10-20 16:29:51 +00:00
test-random-number-generator.cc
test-regexp.cc [api] V8::Initialize cleanup 2021-11-30 14:30:38 +00:00
test-representation.cc
test-roots.cc
test-sampler-api.cc Add test for builtin stack frames in profile sample 2021-11-24 09:33:30 +00:00
test-serialize.cc [osr] Minor refactors in OSR-related code 2022-03-17 10:09:16 +00:00
test-shared-strings.cc [string] Make String internalization threadsafe for shared strings 2022-01-13 11:32:25 +00:00
test-simple-riscv64.cc [cleanup][test] Remove redundant NOLINT annotations 2021-04-30 11:46:14 +00:00
test-smi-lexicographic-compare.cc
test-stack-unwinding-win64.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
test-strings.cc heap: Young gen cleanups 2022-02-14 16:42:58 +00:00
test-strtod.cc Reland "[base] Move most of src/numbers into base" 2021-06-24 15:00:27 +00:00
test-swiss-name-dictionary-csa.cc [ext-code-space][cleanup] Remove CodeDataContainer table 2021-12-16 17:32:39 +00:00
test-swiss-name-dictionary-infra.cc [runtime] Clean up runtime function Arguments accesses 2022-03-09 13:03:15 +00:00
test-swiss-name-dictionary-infra.h Reland [dict-proto] C++ implementation of SwissNameDictionary, pt. 10 2021-03-24 17:12:21 +00:00
test-swiss-name-dictionary-shared-tests.h [cctest] Fix -Wshadow warnings 2021-11-11 17:20:12 +00:00
test-swiss-name-dictionary.cc Reland "[dict-proto] SIMD support for SwissNameDictionary in Torque" 2021-03-31 13:01:34 +00:00
test-symbols.cc
test-sync-primitives-arm64.cc
test-sync-primitives-arm.cc
test-temporal-parser.cc [Temporal] Part2 Add constructor and simple getters. 2022-01-07 19:18:33 +00:00
test-thread-termination.cc [init] Install console API to context extras binding 2022-02-08 15:48:33 +00:00
test-threads.cc
test-trace-event.cc MockTracingPlatform: Fix uaf with stack-scoped platform 2022-03-23 20:22:42 +00:00
test-traced-value.cc
test-transitions.cc [runtime] Clean up runtime function Arguments accesses 2022-03-09 13:03:15 +00:00
test-transitions.h Reland "[runtime] Refactor TransitionsAccessor" 2022-02-14 12:05:06 +00:00
test-typedarrays.cc [api] Remove deprecated [Shared]ArrayBuffer API 2021-03-12 16:24:42 +00:00
test-types.cc [turbofan] Extend Type system BitsetType to 64 bit. 2021-11-18 10:02:56 +00:00
test-unscopables-hidden-prototype.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
test-unwinder-code-pages.cc Fix typos, intial* -> initial* 2022-03-23 13:20:33 +00:00
test-usecounters.cc
test-utils-arm64.cc [codegen] Change RegList into a class 2022-03-14 12:59:48 +00:00
test-utils-arm64.h [codegen] Change RegList into a class 2022-03-14 12:59:48 +00:00
test-utils.cc [api] V8::Initialize cleanup 2021-11-30 14:30:38 +00:00
test-v8windbg.cc
test-verifiers.cc [cleanup] Remove atomic kRelaxed accessors in favour for non-atomic ones 2021-03-08 10:57:19 +00:00
test-version.cc [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
test-weakmaps.cc heap: Rename compaction flags 2021-11-10 09:01:59 +00:00
test-weaksets.cc heap: Rename compaction flags 2021-11-10 09:01:59 +00:00
test-web-snapshots.cc [web snapshots] Add in-place strings 2022-03-07 09:24:02 +00:00
testcfg.py
trace-extension.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
trace-extension.h Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
unicode-helpers.cc
unicode-helpers.h