Fix unary op type feedback.

BUG=
R=danno@chromium.org

Review URL: https://codereview.chromium.org/18526003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15605 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
olivf@chromium.org 2013-07-10 16:03:00 +00:00
parent d1155a1f09
commit e84649d85e
2 changed files with 3 additions and 2 deletions

View File

@ -3745,7 +3745,8 @@ InlineCacheState Code::ic_state() {
Code::ExtraICState Code::extra_ic_state() {
ASSERT(is_inline_cache_stub() || ic_state() == DEBUG_STUB);
ASSERT((is_inline_cache_stub() && !needs_extended_extra_ic_state(kind()))
|| ic_state() == DEBUG_STUB);
return ExtractExtraICStateFromFlags(flags());
}

View File

@ -394,7 +394,7 @@ Handle<Type> TypeFeedbackOracle::UnaryType(TypeFeedbackId id) {
}
Handle<Code> code = Handle<Code>::cast(object);
ASSERT(code->is_unary_op_stub());
return UnaryOpStub(code->extra_ic_state()).GetType(isolate());
return UnaryOpStub(code->extended_extra_ic_state()).GetType(isolate());
}