Chromium Code Reviews| Index: src/type-info.cc |
| diff --git a/src/type-info.cc b/src/type-info.cc |
| index 1c08e0cd12cebac22c497309272a87ac1f2a9498..84f9a483d8262abdc21e14954c0a8f99fd62beb5 100644 |
| --- a/src/type-info.cc |
| +++ b/src/type-info.cc |
| @@ -153,30 +153,19 @@ KeyedAccessStoreMode TypeFeedbackOracle::GetStoreMode( |
| Handle<JSFunction> TypeFeedbackOracle::GetCallTarget(int slot) { |
| Handle<Object> info = GetInfo(slot); |
|
Hannes Payer (out of office)
2014/02/11 15:51:23
we can do that in one line
mvstanton
2014/02/17 15:53:08
Done.
|
| - if (info->IsAllocationSite()) { |
| - return Handle<JSFunction>(isolate()->global_context()->array_function()); |
| - } else { |
| - return Handle<JSFunction>::cast(info); |
| - } |
| + return Handle<JSFunction>::cast(info); |
| } |
| Handle<JSFunction> TypeFeedbackOracle::GetCallNewTarget(int slot) { |
| Handle<Object> info = GetInfo(slot); |
|
Hannes Payer (out of office)
2014/02/11 15:51:23
we can do that in one line
mvstanton
2014/02/17 15:53:08
Done.
|
| - if (info->IsAllocationSite()) { |
| - return Handle<JSFunction>(isolate()->global_context()->array_function()); |
| - } else { |
| - return Handle<JSFunction>::cast(info); |
| - } |
| + return Handle<JSFunction>::cast(info); |
| } |
| Handle<AllocationSite> TypeFeedbackOracle::GetCallNewAllocationSite(int slot) { |
| Handle<Object> info = GetInfo(slot); |
|
Hannes Payer (out of office)
2014/02/11 15:51:23
we can do that in one line
mvstanton
2014/02/17 15:53:08
Done.
|
| - if (info->IsAllocationSite()) { |
| - return Handle<AllocationSite>::cast(info); |
| - } |
| - return Handle<AllocationSite>::null(); |
| + return Handle<AllocationSite>::cast(info); |
| } |