OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 10496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10507 | 10507 |
10508 void Code::FindAllTypes(TypeHandleList* types) { | 10508 void Code::FindAllTypes(TypeHandleList* types) { |
10509 ASSERT(is_inline_cache_stub()); | 10509 ASSERT(is_inline_cache_stub()); |
10510 DisallowHeapAllocation no_allocation; | 10510 DisallowHeapAllocation no_allocation; |
10511 int mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT); | 10511 int mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT); |
10512 for (RelocIterator it(this, mask); !it.done(); it.next()) { | 10512 for (RelocIterator it(this, mask); !it.done(); it.next()) { |
10513 RelocInfo* info = it.rinfo(); | 10513 RelocInfo* info = it.rinfo(); |
10514 Object* object = info->target_object(); | 10514 Object* object = info->target_object(); |
10515 if (object->IsMap()) { | 10515 if (object->IsMap()) { |
10516 Handle<Map> map(Map::cast(object)); | 10516 Handle<Map> map(Map::cast(object)); |
10517 types->Add(IC::MapToType(map)); | 10517 types->Add(IC::MapToType<HeapType>(map, map->GetIsolate())); |
10518 } | 10518 } |
10519 } | 10519 } |
10520 } | 10520 } |
10521 | 10521 |
10522 | 10522 |
10523 void Code::ReplaceFirstMap(Map* replace_with) { | 10523 void Code::ReplaceFirstMap(Map* replace_with) { |
10524 ReplaceNthObject(1, GetHeap()->meta_map(), replace_with); | 10524 ReplaceNthObject(1, GetHeap()->meta_map(), replace_with); |
10525 } | 10525 } |
10526 | 10526 |
10527 | 10527 |
(...skipping 5958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16486 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16486 #define ERROR_MESSAGES_TEXTS(C, T) T, |
16487 static const char* error_messages_[] = { | 16487 static const char* error_messages_[] = { |
16488 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16488 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
16489 }; | 16489 }; |
16490 #undef ERROR_MESSAGES_TEXTS | 16490 #undef ERROR_MESSAGES_TEXTS |
16491 return error_messages_[reason]; | 16491 return error_messages_[reason]; |
16492 } | 16492 } |
16493 | 16493 |
16494 | 16494 |
16495 } } // namespace v8::internal | 16495 } } // namespace v8::internal |
OLD | NEW |