Fix CompilerHints flag order to match FunctionKind.
The bits in CompilerHints are accessed via FunctionKindBits, and on the other hand, with accessors defined by BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_accessor_function, kIsAccessorFunction) etc. So the bit order in FunctionKind must match CompilerHints. This is not causing problems (yet) because there's no accessor for these two bits, but if somebody adds one, things will go wrong. R=dslomov@chromium.org BUG= Review URL: https://codereview.chromium.org/988413002 Cr-Commit-Position: refs/heads/master@{#27096}
This commit is contained in:
parent
d484d5bc49
commit
3ff7da93d8
@ -7179,8 +7179,8 @@ class SharedFunctionInfo: public HeapObject {
|
||||
kIsConciseMethod,
|
||||
kIsAccessorFunction,
|
||||
kIsDefaultConstructor,
|
||||
kIsBaseConstructor,
|
||||
kIsSubclassConstructor,
|
||||
kIsBaseConstructor,
|
||||
kIsAsmFunction,
|
||||
kDeserialized,
|
||||
kCompilerHintsCount // Pseudo entry
|
||||
|
Loading…
Reference in New Issue
Block a user