Code should be retrieved via the AST id, not via the source position. Bugs like
this are a "little bit" hard to find when everything is an int... >:-( Review URL: http://codereview.chromium.org/6970001 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7826 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
40172e6a7b
commit
2fb4556bfe
@ -240,7 +240,7 @@ TypeInfo TypeFeedbackOracle::CompareType(CompareOperation* expr) {
|
||||
|
||||
|
||||
TypeInfo TypeFeedbackOracle::UnaryType(UnaryOperation* expr) {
|
||||
Handle<Object> object = GetInfo(expr->position());
|
||||
Handle<Object> object = GetInfo(expr->id());
|
||||
TypeInfo unknown = TypeInfo::Unknown();
|
||||
if (!object->IsCode()) return unknown;
|
||||
Handle<Code> code = Handle<Code>::cast(object);
|
||||
|
Loading…
Reference in New Issue
Block a user