Index: src/type-info.cc |
diff --git a/src/type-info.cc b/src/type-info.cc |
index 7372693dfa6a59bdf6b9a2b41bf9fbce993c470d..f17ea0d54ee3f20a2ba0aa495be518c390594e60 100644 |
--- a/src/type-info.cc |
+++ b/src/type-info.cc |
@@ -154,7 +154,7 @@ KeyedAccessStoreMode TypeFeedbackOracle::GetStoreMode( |
Handle<JSFunction> TypeFeedbackOracle::GetCallTarget(int slot) { |
Handle<Object> info = GetInfo(slot); |
if (info->IsAllocationSite()) { |
- return Handle<JSFunction>(isolate()->global_context()->array_function()); |
+ return Handle<JSFunction>(isolate()->native_context()->array_function()); |
} else { |
return Handle<JSFunction>::cast(info); |
} |
@@ -164,7 +164,7 @@ Handle<JSFunction> TypeFeedbackOracle::GetCallTarget(int slot) { |
Handle<JSFunction> TypeFeedbackOracle::GetCallNewTarget(int slot) { |
Handle<Object> info = GetInfo(slot); |
if (info->IsAllocationSite()) { |
- return Handle<JSFunction>(isolate()->global_context()->array_function()); |
+ return Handle<JSFunction>(isolate()->native_context()->array_function()); |
} else { |
return Handle<JSFunction>::cast(info); |
} |