Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index c916fc2be680ea91eddaf8ca80d21fc81747e3f7..a59eea653d8e1f63036e18f6cdcfc3277e11d021 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -4204,12 +4204,6 @@ Code::StubType Code::type() { |
} |
-int Code::arguments_count() { |
- ASSERT(kind() == STUB || is_handler()); |
- return ExtractArgumentsCountFromFlags(flags()); |
-} |
- |
- |
// For initialization. |
void Code::set_raw_kind_specific_flags1(int value) { |
WRITE_INT_FIELD(this, kKindSpecificFlags1Offset, value); |
@@ -4492,8 +4486,9 @@ Code::Flags Code::ComputeFlags(Kind kind, |
| TypeField::encode(type) |
| ExtraICStateField::encode(extra_ic_state) |
| CacheHolderField::encode(holder); |
+ // TODO(verwaest): Move to the valid uses of |handler_kind|. |
if (handler_kind != STUB) { |
- bits |= (handler_kind << kArgumentsCountShift); |
+ bits |= HandlerKindField::encode(handler_kind); |
} |
return static_cast<Flags>(bits); |
} |
@@ -4529,11 +4524,6 @@ Code::StubType Code::ExtractTypeFromFlags(Flags flags) { |
} |
-int Code::ExtractArgumentsCountFromFlags(Flags flags) { |
- return (flags & kArgumentsCountMask) >> kArgumentsCountShift; |
-} |
- |
- |
InlineCacheHolderFlag Code::ExtractCacheHolderFromFlags(Flags flags) { |
return CacheHolderField::decode(flags); |
} |