| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index 3c814f2127a7c3b61e1cdcced83c6a060f7ddf63..e9c7e4990f433f2d59e787f05d8e45e91484b179 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -7200,6 +7200,12 @@ class SharedFunctionInfo: public HeapObject {
|
| // Indicates that this function is an arrow function.
|
| DECL_BOOLEAN_ACCESSORS(is_arrow)
|
|
|
| + // Indicates that this function is a concise method.
|
| + DECL_BOOLEAN_ACCESSORS(is_concise_method)
|
| +
|
| + inline FunctionKind kind();
|
| + inline void set_kind(FunctionKind kind);
|
| +
|
| // Indicates whether or not the code in the shared function support
|
| // deoptimization.
|
| inline bool has_deoptimization_support();
|
| @@ -7394,17 +7400,20 @@ class SharedFunctionInfo: public HeapObject {
|
| kIsFunction,
|
| kDontCache,
|
| kDontFlush,
|
| - kIsGenerator,
|
| kIsArrow,
|
| + kIsGenerator,
|
| + kIsConciseMethod,
|
| kCompilerHintsCount // Pseudo entry
|
| };
|
|
|
| - class DeoptCountBits: public BitField<int, 0, 4> {};
|
| - class OptReenableTriesBits: public BitField<int, 4, 18> {};
|
| - class ICAgeBits: public BitField<int, 22, 8> {};
|
| + class FunctionKindBits : public BitField<FunctionKind, kIsArrow, 3> {};
|
| +
|
| + class DeoptCountBits : public BitField<int, 0, 4> {};
|
| + class OptReenableTriesBits : public BitField<int, 4, 18> {};
|
| + class ICAgeBits : public BitField<int, 22, 8> {};
|
|
|
| - class OptCountBits: public BitField<int, 0, 22> {};
|
| - class DisabledOptimizationReasonBits: public BitField<int, 22, 8> {};
|
| + class OptCountBits : public BitField<int, 0, 22> {};
|
| + class DisabledOptimizationReasonBits : public BitField<int, 22, 8> {};
|
|
|
| private:
|
| #if V8_HOST_ARCH_32_BIT
|
|
|