Yeah I like the stateless matcher much better.
https://codereview.chromium.org/704713003/diff/160001/src/compiler/node-matchers.h
File src/compiler/node-matchers.h (right):
https://codereview.chromium.org/704713003/diff/160001/src/compiler/node-matchers.h#newcode184
src/compiler/node-matchers.h:184: bool IsScaledInput(Node* node) const {
You could also have this method return the scaled power of 2, with -1
representing no match.
https://codereview.chromium.org/704713003/diff/160001/src/compiler/node-matchers.h#newcode320
src/compiler/node-matchers.h:320: bool Matches() const { return
matches_; }
Lower case for simple getters.
https://codereview.chromium.org/704713003/diff/160001/src/compiler/x64/instruction-selector-x64.cc
File src/compiler/x64/instruction-selector-x64.cc (right):
https://codereview.chromium.org/704713003/diff/160001/src/compiler/x64/instruction-selector-x64.cc#newcode369
src/compiler/x64/instruction-selector-x64.cc:369: static AddressingMode
ScaleFactorToAddressingMode(
If you use the scale power of 2, then you can just do a linear index
into this array, then you can maybe even inline this method.
https://codereview.chromium.org/704713003/
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.