Commit 3ff7da93 authored by marja's avatar marja Committed by Commit bot

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}
parent d484d5bc
......@@ -7179,8 +7179,8 @@ class SharedFunctionInfo: public HeapObject {
kIsConciseMethod,
kIsAccessorFunction,
kIsDefaultConstructor,
kIsBaseConstructor,
kIsSubclassConstructor,
kIsBaseConstructor,
kIsAsmFunction,
kDeserialized,
kCompilerHintsCount // Pseudo entry
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment