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:
parent
d1155a1f09
commit
e84649d85e
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user