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 10632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10643 | 10643 |
10644 | 10644 |
10645 void Code::ClearInlineCaches(Code::Kind kind) { | 10645 void Code::ClearInlineCaches(Code::Kind kind) { |
10646 ClearInlineCaches(&kind); | 10646 ClearInlineCaches(&kind); |
10647 } | 10647 } |
10648 | 10648 |
10649 | 10649 |
10650 void Code::ClearInlineCaches(Code::Kind* kind) { | 10650 void Code::ClearInlineCaches(Code::Kind* kind) { |
10651 int mask = RelocInfo::ModeMask(RelocInfo::CODE_TARGET) | | 10651 int mask = RelocInfo::ModeMask(RelocInfo::CODE_TARGET) | |
10652 RelocInfo::ModeMask(RelocInfo::CONSTRUCT_CALL) | | 10652 RelocInfo::ModeMask(RelocInfo::CONSTRUCT_CALL) | |
10653 RelocInfo::ModeMask(RelocInfo::CODE_TARGET_WITH_ID) | | 10653 RelocInfo::ModeMask(RelocInfo::CODE_TARGET_WITH_ID); |
10654 RelocInfo::ModeMask(RelocInfo::CODE_TARGET_CONTEXT); | |
10655 for (RelocIterator it(this, mask); !it.done(); it.next()) { | 10654 for (RelocIterator it(this, mask); !it.done(); it.next()) { |
10656 RelocInfo* info = it.rinfo(); | 10655 RelocInfo* info = it.rinfo(); |
10657 Code* target(Code::GetCodeFromTargetAddress(info->target_address())); | 10656 Code* target(Code::GetCodeFromTargetAddress(info->target_address())); |
10658 if (target->is_inline_cache_stub()) { | 10657 if (target->is_inline_cache_stub()) { |
10659 if (kind == NULL || *kind == target->kind()) { | 10658 if (kind == NULL || *kind == target->kind()) { |
10660 IC::Clear(this->GetIsolate(), info->pc()); | 10659 IC::Clear(this->GetIsolate(), info->pc()); |
10661 } | 10660 } |
10662 } | 10661 } |
10663 } | 10662 } |
10664 } | 10663 } |
(...skipping 5986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16651 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16650 #define ERROR_MESSAGES_TEXTS(C, T) T, |
16652 static const char* error_messages_[] = { | 16651 static const char* error_messages_[] = { |
16653 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16652 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
16654 }; | 16653 }; |
16655 #undef ERROR_MESSAGES_TEXTS | 16654 #undef ERROR_MESSAGES_TEXTS |
16656 return error_messages_[reason]; | 16655 return error_messages_[reason]; |
16657 } | 16656 } |
16658 | 16657 |
16659 | 16658 |
16660 } } // namespace v8::internal | 16659 } } // namespace v8::internal |
OLD | NEW |