Index: src/typing.cc |
diff --git a/src/typing.cc b/src/typing.cc |
index 3cca0f4261efb2be1962d8f77caecad16575226d..55aa5cff4cc11f371b4e89c07e8da820ddd4a17b 100644 |
--- a/src/typing.cc |
+++ b/src/typing.cc |
@@ -39,8 +39,9 @@ namespace internal { |
AstTyper::AstTyper(CompilationInfo* info) |
: info_(info), |
oracle_( |
- Handle<Code>(info->closure()->shared()->code()), |
- Handle<Context>(info->closure()->context()->native_context()), |
+ handle(info->closure()->shared()->code()), |
+ handle(info->closure()->shared()->feedback_vector()), |
+ handle(info->closure()->context()->native_context()), |
info->zone()), |
store_(info->zone()) { |
InitializeAstVisitor(info->zone()); |
@@ -530,7 +531,7 @@ void AstTyper::VisitCall(Call* expr) { |
// Collect type feedback. |
RECURSE(Visit(expr->expression())); |
if (!expr->expression()->IsProperty() && |
- expr->HasCallFeedbackSlot() && |
+ expr->IsUsingCallFeedbackSlot(isolate()) && |
oracle()->CallIsMonomorphic(expr->CallFeedbackSlot())) { |
expr->set_target(oracle()->GetCallTarget(expr->CallFeedbackSlot())); |
} |