| 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 9729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9740 if (i++ == length) return; | 9740 if (i++ == length) return; |
| 9741 RelocInfo* info = it.rinfo(); | 9741 RelocInfo* info = it.rinfo(); |
| 9742 Code* code = Code::GetCodeFromTargetAddress(info->target_address()); | 9742 Code* code = Code::GetCodeFromTargetAddress(info->target_address()); |
| 9743 ASSERT(code->kind() == Code::STUB); | 9743 ASSERT(code->kind() == Code::STUB); |
| 9744 code_list->Add(Handle<Code>(code)); | 9744 code_list->Add(Handle<Code>(code)); |
| 9745 } | 9745 } |
| 9746 UNREACHABLE(); | 9746 UNREACHABLE(); |
| 9747 } | 9747 } |
| 9748 | 9748 |
| 9749 | 9749 |
| 9750 Name* Code::FindFirstName() { |
| 9751 ASSERT(is_inline_cache_stub()); |
| 9752 AssertNoAllocation no_allocation; |
| 9753 int mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT); |
| 9754 for (RelocIterator it(this, mask); !it.done(); it.next()) { |
| 9755 RelocInfo* info = it.rinfo(); |
| 9756 Object* object = info->target_object(); |
| 9757 if (object->IsName()) return Name::cast(object); |
| 9758 } |
| 9759 return NULL; |
| 9760 } |
| 9761 |
| 9762 |
| 9750 void Code::ClearInlineCaches() { | 9763 void Code::ClearInlineCaches() { |
| 9751 int mask = RelocInfo::ModeMask(RelocInfo::CODE_TARGET) | | 9764 int mask = RelocInfo::ModeMask(RelocInfo::CODE_TARGET) | |
| 9752 RelocInfo::ModeMask(RelocInfo::CONSTRUCT_CALL) | | 9765 RelocInfo::ModeMask(RelocInfo::CONSTRUCT_CALL) | |
| 9753 RelocInfo::ModeMask(RelocInfo::CODE_TARGET_WITH_ID) | | 9766 RelocInfo::ModeMask(RelocInfo::CODE_TARGET_WITH_ID) | |
| 9754 RelocInfo::ModeMask(RelocInfo::CODE_TARGET_CONTEXT); | 9767 RelocInfo::ModeMask(RelocInfo::CODE_TARGET_CONTEXT); |
| 9755 for (RelocIterator it(this, mask); !it.done(); it.next()) { | 9768 for (RelocIterator it(this, mask); !it.done(); it.next()) { |
| 9756 RelocInfo* info = it.rinfo(); | 9769 RelocInfo* info = it.rinfo(); |
| 9757 Code* target(Code::GetCodeFromTargetAddress(info->target_address())); | 9770 Code* target(Code::GetCodeFromTargetAddress(info->target_address())); |
| 9758 if (target->is_inline_cache_stub()) { | 9771 if (target->is_inline_cache_stub()) { |
| 9759 IC::Clear(info->pc()); | 9772 IC::Clear(info->pc()); |
| (...skipping 5330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15090 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); | 15103 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); |
| 15091 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); | 15104 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); |
| 15092 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); | 15105 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); |
| 15093 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); | 15106 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); |
| 15094 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); | 15107 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); |
| 15095 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); | 15108 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); |
| 15096 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); | 15109 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); |
| 15097 } | 15110 } |
| 15098 | 15111 |
| 15099 } } // namespace v8::internal | 15112 } } // namespace v8::internal |
| OLD | NEW |