| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 43a047e78c0cd80c179a3c476c919f6251475362..c510b2889bb766dbd78066bd4a98ac774e08751d 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -10516,6 +10516,12 @@ Object* Code::FindNthObject(int n, Map* match_map) {
|
| }
|
|
|
|
|
| +AllocationSite* Code::FindFirstAllocationSite() {
|
| + Object* result = FindNthObject(1, GetHeap()->allocation_site_map());
|
| + return (result != NULL) ? AllocationSite::cast(result) : NULL;
|
| +}
|
| +
|
| +
|
| Map* Code::FindFirstMap() {
|
| Object* result = FindNthObject(1, GetHeap()->meta_map());
|
| return (result != NULL) ? Map::cast(result) : NULL;
|
|
|