Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index dbac0f4685e2d0e594014e97410698499d5b84ff..546519caa4c150f2a8c27c93bca441ddc9795953 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -4205,16 +4205,8 @@ InlineCacheState Code::ic_state() { |
ExtraICState Code::extra_ic_state() { |
- ASSERT((is_inline_cache_stub() && !needs_extended_extra_ic_state(kind())) |
- || ic_state() == DEBUG_STUB); |
- return ExtractExtraICStateFromFlags(flags()); |
-} |
- |
- |
-ExtraICState Code::extended_extra_ic_state() { |
ASSERT(is_inline_cache_stub() || ic_state() == DEBUG_STUB); |
- ASSERT(needs_extended_extra_ic_state(kind())); |
- return ExtractExtendedExtraICStateFromFlags(flags()); |
+ return ExtractExtraICStateFromFlags(flags()); |
} |
@@ -4432,7 +4424,7 @@ void Code::set_back_edges_patched_for_osr(bool value) { |
byte Code::to_boolean_state() { |
- return extended_extra_ic_state(); |
+ return extra_ic_state(); |
} |
@@ -4503,17 +4495,16 @@ Code::Flags Code::ComputeFlags(Kind kind, |
InlineCacheState ic_state, |
ExtraICState extra_ic_state, |
StubType type, |
- int argc, |
+ Kind handler_kind, |
InlineCacheHolderFlag holder) { |
- ASSERT(argc <= Code::kMaxArguments); |
// Compute the bit mask. |
unsigned int bits = KindField::encode(kind) |
| ICStateField::encode(ic_state) |
| TypeField::encode(type) |
- | ExtendedExtraICStateField::encode(extra_ic_state) |
+ | ExtraICStateField::encode(extra_ic_state) |
| CacheHolderField::encode(holder); |
- if (!Code::needs_extended_extra_ic_state(kind)) { |
- bits |= (argc << kArgumentsCountShift); |
+ if (handler_kind != STUB) { |
+ bits |= (handler_kind << kArgumentsCountShift); |
Igor Sheludko
2014/02/11 10:35:28
Probably it is worth renaming kArgumentsCountShift
|
} |
return static_cast<Flags>(bits); |
} |
@@ -4523,8 +4514,9 @@ Code::Flags Code::ComputeMonomorphicFlags(Kind kind, |
ExtraICState extra_ic_state, |
InlineCacheHolderFlag holder, |
StubType type, |
- int argc) { |
- return ComputeFlags(kind, MONOMORPHIC, extra_ic_state, type, argc, holder); |
+ Kind handler_kind) { |
+ return ComputeFlags(kind, MONOMORPHIC, extra_ic_state, type, |
+ handler_kind, holder); |
} |
@@ -4543,12 +4535,6 @@ ExtraICState Code::ExtractExtraICStateFromFlags(Flags flags) { |
} |
-ExtraICState Code::ExtractExtendedExtraICStateFromFlags( |
- Flags flags) { |
- return ExtendedExtraICStateField::decode(flags); |
-} |
- |
- |
Code::StubType Code::ExtractTypeFromFlags(Flags flags) { |
return TypeField::decode(flags); |
} |