v8/test/cctest/compiler
Mythri A a9b7830d3a Ensure bytecode isn't flushed when allocating feedback vector
This is a followup of the cl [1] that fixes a bug where bytecode was
getting flushed when allocating feedback vector. The fix added
IsCompiledScope before allocating a new feedback vector. We now pass
IsCompiledScope to JSFunction::EnsureFeedbackVector. This makes it
explicit that EnsureFeedbackVector expects a function that is compiled
and the bytecode shouldn't be flushed during the allocation.Also adds
a test.


[1] https://chromium-review.googlesource.com/c/v8/v8/+/2218066

Bug: v8:10560
Change-Id: I552c449a57555dffa625b2e4efa04c2c276fc0b4
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2222347
Commit-Queue: Mythri Alle <mythria@chromium.org>
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#68142}
2020-06-03 13:50:17 +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 [diagnostics] Support --turbo-profiling for builtins 2020-05-21 16:31:52 +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 [torque][cleanup] Simplify some Torque-defined classes 2020-05-11 17:18:59 +00:00
test-js-typed-lowering.cc [compiler] Hook in compare op builtins with feedback in generic lowering 2020-06-02 12:24:47 +00:00
test-jump-threading.cc [compiler] Replace remaining mutable reference arguments 2019-09-12 08:56:15 +00:00
test-linkage.cc [wasm] Remove test line from TestFPLinkageStubCall 2020-04-22 19:32:13 +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 Ensure bytecode isn't flushed when allocating feedback vector 2020-06-03 13:50:17 +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