v8/test/unittests/interpreter
danno cbdb373804 [turbofan] Add FixedArray peephole optimizations to CodeStubAssembler
Previously, CodeStubAssembler macros performing FixedArray element accesses had
to compute offsets to elements explicitly with a fair amount of duplicated
code. Furthermore, any peephole optimizations that could produce better code--
like recognizing constant indices or combining array index computation with Smi
untagging--were also duplicated.

This change factors the code to compute FixedArray index offsets into a common
routine in the CodeStubAssembler that applies standard peephole optimizations to
all accesses. In order to do this, it also introduces limited introspection into
the up-until-now opaque Node* type exported from code-assembler.h, allowing
Nodes to be queried whether they are constant and extracting their constant
value in that case.

Review-Url: https://codereview.chromium.org/1989363004
Cr-Commit-Position: refs/heads/master@{#36370}
2016-05-19 15:50:31 +00:00
..
bytecode-array-builder-unittest.cc [Interpreter] Change LogicalNot to ToBooleanLogicalNot and add non-ToBoolean version. 2016-05-17 20:41:04 +00:00
bytecode-array-iterator-unittest.cc [interpreter] Introduce bytecode generation pipeline. 2016-05-12 19:20:04 +00:00
bytecode-array-writer-unittest.cc [interpreter] Introduce bytecode generation pipeline. 2016-05-12 19:20:04 +00:00
bytecode-peephole-optimizer-unittest.cc [Interpreter] Change LogicalNot to ToBooleanLogicalNot and add non-ToBoolean version. 2016-05-17 20:41:04 +00:00
bytecode-pipeline-unittest.cc [interpreter] Introduce bytecode generation pipeline. 2016-05-12 19:20:04 +00:00
bytecode-register-allocator-unittest.cc [interpreter] Add support for scalable operands. 2016-03-21 17:09:49 +00:00
bytecode-utils.h [interpreter] Introduce bytecode generation pipeline. 2016-05-12 19:20:04 +00:00
bytecodes-unittest.cc [interpreter] Introduce bytecode generation pipeline. 2016-05-12 19:20:04 +00:00
constant-array-builder-unittest.cc [interpreter] A few code coverage improvements. 2016-04-01 12:09:10 +00:00
interpreter-assembler-unittest.cc [turbofan] Add FixedArray peephole optimizations to CodeStubAssembler 2016-05-19 15:50:31 +00:00
interpreter-assembler-unittest.h [interpreter] Add accumulator use description to bytecodes. 2016-04-06 07:57:56 +00:00
source-position-table-unittest.cc [interpreter] Introduce bytecode generation pipeline. 2016-05-12 19:20:04 +00:00