| 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 10628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10639 | 10639 |
| 10640 void Code::ClearInlineCaches(Code::Kind* kind) { | 10640 void Code::ClearInlineCaches(Code::Kind* kind) { |
| 10641 int mask = RelocInfo::ModeMask(RelocInfo::CODE_TARGET) | | 10641 int mask = RelocInfo::ModeMask(RelocInfo::CODE_TARGET) | |
| 10642 RelocInfo::ModeMask(RelocInfo::CONSTRUCT_CALL) | | 10642 RelocInfo::ModeMask(RelocInfo::CONSTRUCT_CALL) | |
| 10643 RelocInfo::ModeMask(RelocInfo::CODE_TARGET_WITH_ID); | 10643 RelocInfo::ModeMask(RelocInfo::CODE_TARGET_WITH_ID); |
| 10644 for (RelocIterator it(this, mask); !it.done(); it.next()) { | 10644 for (RelocIterator it(this, mask); !it.done(); it.next()) { |
| 10645 RelocInfo* info = it.rinfo(); | 10645 RelocInfo* info = it.rinfo(); |
| 10646 Code* target(Code::GetCodeFromTargetAddress(info->target_address())); | 10646 Code* target(Code::GetCodeFromTargetAddress(info->target_address())); |
| 10647 if (target->is_inline_cache_stub()) { | 10647 if (target->is_inline_cache_stub()) { |
| 10648 if (kind == NULL || *kind == target->kind()) { | 10648 if (kind == NULL || *kind == target->kind()) { |
| 10649 IC::Clear(this->GetIsolate(), info->pc()); | 10649 IC::Clear(this->GetIsolate(), info->pc(), |
| 10650 info->host()->constant_pool()); |
| 10650 } | 10651 } |
| 10651 } | 10652 } |
| 10652 } | 10653 } |
| 10653 } | 10654 } |
| 10654 | 10655 |
| 10655 | 10656 |
| 10656 void Code::ClearTypeFeedbackInfo(Heap* heap) { | 10657 void Code::ClearTypeFeedbackInfo(Heap* heap) { |
| 10657 if (kind() != FUNCTION) return; | 10658 if (kind() != FUNCTION) return; |
| 10658 Object* raw_info = type_feedback_info(); | 10659 Object* raw_info = type_feedback_info(); |
| 10659 if (raw_info->IsTypeFeedbackInfo()) { | 10660 if (raw_info->IsTypeFeedbackInfo()) { |
| (...skipping 5841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16501 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16502 #define ERROR_MESSAGES_TEXTS(C, T) T, |
| 16502 static const char* error_messages_[] = { | 16503 static const char* error_messages_[] = { |
| 16503 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16504 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
| 16504 }; | 16505 }; |
| 16505 #undef ERROR_MESSAGES_TEXTS | 16506 #undef ERROR_MESSAGES_TEXTS |
| 16506 return error_messages_[reason]; | 16507 return error_messages_[reason]; |
| 16507 } | 16508 } |
| 16508 | 16509 |
| 16509 | 16510 |
| 16510 } } // namespace v8::internal | 16511 } } // namespace v8::internal |
| OLD | NEW |