v8/test/cctest/compiler
Benedikt Meurer 15c31fe461 [turbofan] Add support for huge DataViews.
This introduces Word64 support for the CheckBounds operator, which now
lowers to either CheckedUint32Bounds or CheckedUint64Bounds after the
representation selection. The right hand side of CheckBounds can now
be any positive safe integer on 64-bit architectures, whereas it remains
Unsigned31 for 32-bit architectures. We only use the extended Word64
support when the right hand side is outside the Unsigned31 range, so
for everything except DataViews this means that the performance should
remain the same. The typing rule for the CheckBounds operator was
updated to reflect this new behavior.

The CheckBounds with a right hand side outside the Unsigned31 range will
pass a new Signed64 feedback kind, which is handled with newly introduced
CheckedFloat64ToInt64 and CheckedTaggedToInt64 operators in representation
selection.

The JSCallReducer lowering for DataView getType()/setType() methods was
updated to not smi-check the [[ByteLength]] and [[ByteOffset]] anymore,
but instead just use the raw uintptr_t values and operate on any value
(for 64-bit architectures these fields can hold any positive safe
integer, for 32-bit architectures it's limited to Unsigned31 range as
before). This means that V8 can now handle huge DataViews fully, without
falling off a performance cliff.

This refactoring even gave us some performance improvements, on a simple
micro-benchmark just exercising different DataView accesses we go from

  testDataViewGetUint8: 796 ms.
  testDataViewGetUint16: 997 ms.
  testDataViewGetInt32: 994 ms.
  testDataViewGetFloat64: 997 ms.

to

  testDataViewGetUint8: 895 ms.
  testDataViewGetUint16: 889 ms.
  testDataViewGetInt32: 888 ms.
  testDataViewGetFloat64: 890 ms.

meaning we lost around 10% on the single byte case, but gained 10% across
the board for all the other element sizes.

Design-Document: http://bit.ly/turbofan-word64
Bug: chromium:225811, v8:4153, v8:7881, v8:8171, v8:8383
Change-Id: Ic9d1bf152e47802c04dcfd679372e5c85e4abc83
Reviewed-on: https://chromium-review.googlesource.com/c/1303732
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57095}
2018-10-29 15:17:57 +00:00
..
c-signature.h [test] Fix usages of std::array initializer lists. 2018-01-16 17:14:29 +00:00
call-tester.h [cleanup] Refactor compiler to use default members. 2018-09-17 12:12:21 +00:00
code-assembler-tester.h [cctest] Improve test coverage for calls to embedded builtins 2018-08-02 12:38:46 +00:00
codegen-tester.cc Enable clang's -Wunreachable-code warning. 2017-12-04 13:09:25 +00:00
codegen-tester.h [wasm,test] Pass correct code kind in Wasm tests 2018-10-02 14:21:53 +00:00
function-tester.cc [turbofan] Put some tests under a canonical handle scope. 2018-07-31 18:20:53 +00:00
function-tester.h [turbofan] Put some tests under a canonical handle scope. 2018-07-31 18:20:53 +00:00
graph-builder-tester.h [cleanup] Refactor compiler to use default members. 2018-09-17 12:12:21 +00:00
test-basic-block-profiler.cc [wasm] Share BasicBlockProfiler instance in process 2018-07-26 13:54:57 +00:00
test-branch-combine.cc [cleanup] Mark compiler methods in subclasses with override. 2018-09-17 08:51:47 +00:00
test-code-assembler.cc [cleanup] Move enum Heap::RootListIndex to enum class RootIndex 2018-09-20 11:16:05 +00:00
test-code-generator.cc Reland "[ia32] Remove poisoning logic on ia32" 2018-10-25 12:45:55 +00:00
test-gap-resolver.cc [ia32,root] Remove ebx from ALLOCATABLE_GENERAL_REGISTERS 2018-10-26 08:33:48 +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 Replace array index masking with the poisoning approach. 2018-04-30 13:22:44 +00:00
test-instruction.cc [turbofan] Change handling of empty basic blocks 2018-06-12 15:10:26 +00:00
test-js-constant-cache.cc [cleanup] Remove unused Isolate parameters 2018-07-18 16:47:22 +00:00
test-js-context-specialization.cc Remove on-by-default flag --concurrent-typed-lowering. 2018-10-25 11:37:07 +00:00
test-js-typed-lowering.cc [turbofan] Remove redundant isolate argument from typers. 2018-09-25 13:00:05 +00:00
test-jump-threading.cc [turbofan] Make {JumpThreading} independent of Isolate. 2018-07-12 12:00:47 +00:00
test-linkage.cc [cleanup] Split off api-inl.h from api.h to make latter self contained 2018-07-23 16:03:49 +00:00
test-loop-analysis.cc Reland "Introduce StdoutStream which prints to Android log or stdout" 2018-06-14 13:29:01 +00:00
test-machine-operator-reducer.cc Normalize casing of hexadecimal digits 2017-12-02 01:24:40 +00:00
test-multiple-return.cc [wasm] Do not store ModuleEnv 2018-10-23 12:47:14 +00:00
test-node.cc Use nullptr instead of NULL where possible 2017-10-13 17:21:49 +00:00
test-operator.cc Normalize casing of hexadecimal digits 2017-12-02 01:24:40 +00:00
test-representation-change.cc [turbofan] Add support for huge DataViews. 2018-10-29 15:17:57 +00:00
test-run-bytecode-graph-builder.cc [cleanup] Refactor compiler to use default members. 2018-09-17 12:12:21 +00:00
test-run-calls-to-external-references.cc Reland: [refactoring] Remove the isolate from signatures of ExternalReferences 2018-04-25 09:47:30 +00:00
test-run-deopt.cc [fullcodegen] Remove --stress-fullcodegen flag. 2017-08-10 09:52:49 +00:00
test-run-intrinsics.cc [cleanup] Don't declare inline runtime functions by default 2018-10-05 13:10:56 +00:00
test-run-jsbranches.cc [turbofan] Remove for-in support from the AstGraphBuilder. 2017-02-08 06:41:42 +00:00
test-run-jscalls.cc [iwyu] api.h iwyu 2018-07-20 11:49:02 +00:00
test-run-jsexceptions.cc [fullcodegen] Remove --stress-fullcodegen flag. 2017-08-10 09:52:49 +00:00
test-run-jsobjects.cc [explicit isolates] Remove various GetIsolates 2018-07-17 11:56:37 +00:00
test-run-jsops.cc Normalize casing of hexadecimal digits 2017-12-02 01:24:40 +00:00
test-run-load-store.cc [iwyu] Fix some cctest IWYU violations. 2018-06-27 15:25:57 +00:00
test-run-machops.cc [turbofan] Initial support to compute NumberAdd/NumberSubtract in Word64. 2018-09-17 08:32:04 +00:00
test-run-native-calls.cc [ia32,root] Use root register config in tests 2018-10-02 15:53:03 +00:00
test-run-retpoline.cc [turbofan] Put some tests under a canonical handle scope. 2018-07-31 18:20:53 +00:00
test-run-stackcheck.cc [fullcodegen] Remove --stress-fullcodegen flag. 2017-08-10 09:52:49 +00:00
test-run-stubs.cc Reland: [iwyu] Remove sfi-inl.h -> wasm include 2018-07-25 14:54:37 +00:00
test-run-tail-calls.cc [turbofan] Put some tests under a canonical handle scope. 2018-07-31 18:20:53 +00:00
test-run-unwinding-info.cc [turbofan] Replace uninitialized JSCall nodes with SOFT deopt. 2017-06-27 03:57:13 +00:00
test-run-variables.cc [cleanup] Split off api-inl.h from api.h to make latter self contained 2018-07-23 16:03:49 +00:00
value-helper.cc Reland "[test] Avoid unnecessary std::vector allocations" 2017-10-19 08:47:31 +00:00
value-helper.h ppc64, aix: eliminate cctest failures due to gcc bug on Aix 2018-09-27 17:35:41 +00:00