| Index: src/type-info.cc
|
| diff --git a/src/type-info.cc b/src/type-info.cc
|
| index 695b9dd78740ffde654193aac0068e848b508400..4b10f7213c936749945c06887f41d1241680d950 100644
|
| --- a/src/type-info.cc
|
| +++ b/src/type-info.cc
|
| @@ -152,31 +152,17 @@ 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());
|
| - } else {
|
| - return Handle<JSFunction>::cast(info);
|
| - }
|
| + return Handle<JSFunction>::cast(GetInfo(slot));
|
| }
|
|
|
|
|
| Handle<JSFunction> TypeFeedbackOracle::GetCallNewTarget(int slot) {
|
| - Handle<Object> info = GetInfo(slot);
|
| - if (info->IsAllocationSite()) {
|
| - return Handle<JSFunction>(isolate()->global_context()->array_function());
|
| - } else {
|
| - return Handle<JSFunction>::cast(info);
|
| - }
|
| + return Handle<JSFunction>::cast(GetInfo(slot));
|
| }
|
|
|
|
|
| Handle<AllocationSite> TypeFeedbackOracle::GetCallNewAllocationSite(int slot) {
|
| - Handle<Object> info = GetInfo(slot);
|
| - if (info->IsAllocationSite()) {
|
| - return Handle<AllocationSite>::cast(info);
|
| - }
|
| - return Handle<AllocationSite>::null();
|
| + return Handle<AllocationSite>::cast(GetInfo(slot));
|
| }
|
|
|
|
|
|
|