v8/test/cctest/compiler
Clemens Backes e04eb281a3 [base] Fix {StaticCharVector} and add {StaticOneByteVector}
{StaticCharVector}, according to its name, should return a
{Vector<const char>}. For getting a {Vector<const uint8_t>}, the method
should be called {StaticOneByteVector}, analog to the
{OneByteVector} methods that already exist.

Also, {StaticCharVector} is constexpr, but {StaticOneByteVector} cannot
be, since it contains a {reinterpret_cast}. The same holds for
{Vector::cast} in general.

This CL
- changes the return type of {StaticCharVector} to be
  {Vector<const char>},
- introduces a new {StaticOneByteVector} which returns
  {Vector<const uint8_t>},
- fixes constexpr annotations at various methods returning {Vector}s,
- refactors users of {StaticCharVector} to either use
  {StaticOneByteVector} instead, or work on {char} if that makes more
  sense.

R=leszeks@chromium.org

Bug: v8:10426
Change-Id: I71e336097e41ad30f982aa6344ca3d67b3a01fe3
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2154196
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/master@{#67213}
2020-04-17 18:45:32 +00:00
..
c-signature.h [cleanup] Replace simple typedefs by using 2019-05-27 12:39:49 +00:00
call-tester.h Move handles-related files to src/handles 2019-05-23 06:00:15 +00:00
code-assembler-tester.h Move handles-related files to src/handles 2019-05-23 06:00:15 +00:00
codegen-tester.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
codegen-tester.h [turbofan] Simplify handling of calls with saved registers. 2019-08-01 08:59:15 +00:00
function-tester.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
function-tester.h Move handles-related files to src/handles 2019-05-23 06:00:15 +00:00
graph-and-builders.h [cleanup] Removing GraphBuilderTester class 2019-05-07 09:54:51 +00:00
serializer-tester.cc [turbofan] Remove unused --inline-accessors flag 2019-11-26 12:51:16 +00:00
serializer-tester.h [iwyu] Add missing includes of <memory> for std::unique_ptr 2019-09-13 17:13:36 +00:00
test-basic-block-profiler.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-branch-combine.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-code-assembler.cc [compiler] Remove error-prone GotoIfException 2020-02-18 11:45:08 +00:00
test-code-generator.cc [arm64] Use BTI instructions for forward CFI 2020-03-17 17:52:28 +00:00
test-gap-resolver.cc [turbofan][cleanup] Remove dead ExplicitOperand class. 2019-09-10 08:23:40 +00:00
test-graph-visualizer.cc Reland "Introduce StdoutStream which prints to Android log or stdout" 2018-06-14 13:29:01 +00:00
test-instruction-scheduler.cc Reland "[turbofan] Further brokerize BytecodeGraphBuilder" 2019-08-26 08:58:44 +00:00
test-instruction.cc [cleanup] Replace simple typedefs by using 2019-05-27 12:39:49 +00:00
test-js-constant-cache.cc [turbofan] Disable concurrent inlining for OSR 2020-01-09 18:24:12 +00:00
test-js-context-specialization.cc [turbofan] Disable concurrent inlining for OSR 2020-01-09 18:24:12 +00:00
test-js-typed-lowering.cc [turbofan] Disable concurrent inlining for OSR 2020-01-09 18:24:12 +00:00
test-jump-threading.cc [compiler] Replace remaining mutable reference arguments 2019-09-12 08:56:15 +00:00
test-linkage.cc [codegen] Add FP returns to code stub linkage 2020-04-16 16:45:37 +00:00
test-loop-analysis.cc [cleanup] Eliminate non-const reference parameters 2019-09-10 09:31:07 +00:00
test-machine-operator-reducer.cc [turbofan] introduce a deterministic tick measurement and assert optimization doesn't take too long 2019-07-17 07:00:00 +00:00
test-multiple-return.cc [wasm] Turn ValueType from an enum to a class 2020-03-12 17:03:16 +00:00
test-node.cc [node] OwnedBy fix for only one owner check 2020-01-20 16:36:02 +00:00
test-operator.cc Normalize casing of hexadecimal digits 2017-12-02 01:24:40 +00:00
test-representation-change.cc [turbofan] Disable concurrent inlining for OSR 2020-01-09 18:24:12 +00:00
test-run-bytecode-graph-builder.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-run-calls-to-external-references.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-run-deopt.cc Move relevant files to src/execution 2019-05-22 08:36:33 +00:00
test-run-intrinsics.cc Move code generation related files to src/codegen 2019-05-21 10:33:39 +00:00
test-run-jsbranches.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-run-jscalls.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
test-run-jsexceptions.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-run-jsobjects.cc [keys] Handle RangeError in GetKeysWithPrototypeInfoCache 2020-03-04 13:38:10 +00:00
test-run-jsops.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-run-load-store.cc [ptr-compr] Enable pointer compression on s390x 2020-03-31 17:06:17 +00:00
test-run-machops.cc [ptr-compr] Remove Compressed mentions from in the pipeline 2019-11-11 12:23:41 +00:00
test-run-native-calls.cc [roheap] Add Isolate parameter to Code::Disassemble 2019-09-25 10:46:45 +00:00
test-run-retpoline.cc [turbofan] Remove unsafe {CodeAssembler::ReturnRaw}. 2019-11-28 09:39:52 +00:00
test-run-stackcheck.cc Move relevant files to src/execution 2019-05-22 08:36:33 +00:00
test-run-tail-calls.cc [turbofan] Remove unsafe {CodeAssembler::ReturnRaw}. 2019-11-28 09:39:52 +00:00
test-run-unwinding-info.cc Remove --perf-prof flag on non-linux 2020-01-10 13:58:50 +00:00
test-run-variables.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
value-helper.cc Reland "[test] Avoid unnecessary std::vector allocations" 2017-10-19 08:47:31 +00:00
value-helper.h [base] Fix {StaticCharVector} and add {StaticOneByteVector} 2020-04-17 18:45:32 +00:00