| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index bb98576eaff4464640b90cd20eeb28ee1d2309d9..a40e4be8cf1399a2d7879574b1889278ab33c335 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -5231,14 +5231,10 @@ class Code: public HeapObject {
|
|
|
| // [flags]: Access to specific code flags.
|
| inline Kind kind();
|
| - inline Kind handler_kind() {
|
| - return static_cast<Kind>(arguments_count());
|
| - }
|
| inline InlineCacheState ic_state(); // Only valid for IC stubs.
|
| inline ExtraICState extra_ic_state(); // Only valid for IC stubs.
|
|
|
| inline StubType type(); // Only valid for monomorphic IC stubs.
|
| - inline int arguments_count(); // Only valid for call IC stubs.
|
|
|
| // Testers for IC stub kinds.
|
| inline bool is_inline_cache_stub();
|
| @@ -5392,7 +5388,6 @@ class Code: public HeapObject {
|
| static inline Kind ExtractKindFromFlags(Flags flags);
|
| static inline InlineCacheHolderFlag ExtractCacheHolderFromFlags(Flags flags);
|
| static inline ExtraICState ExtractExtraICStateFromFlags(Flags flags);
|
| - static inline int ExtractArgumentsCountFromFlags(Flags flags);
|
|
|
| static inline Flags RemoveTypeFromFlags(Flags flags);
|
|
|
| @@ -5612,11 +5607,9 @@ class Code: public HeapObject {
|
| class BackEdgesPatchedForOSRField: public BitField<bool,
|
| kIsCrankshaftedBit + 1 + 29, 1> {}; // NOLINT
|
|
|
| - // Signed field cannot be encoded using the BitField class.
|
| - static const int kArgumentsCountShift = 17;
|
| - static const int kArgumentsCountMask = ~((1 << kArgumentsCountShift) - 1);
|
| - static const int kArgumentsBits =
|
| - PlatformSmiTagging::kSmiValueSize - Code::kArgumentsCountShift + 1;
|
| + class HandlerKindField: public BitField<Kind, 17, 4> {};
|
| +
|
| + static const int kArgumentsBits = 16;
|
| static const int kMaxArguments = (1 << kArgumentsBits) - 1;
|
|
|
| // This constant should be encodable in an ARM instruction.
|
|
|