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 11781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11792 for (int i = start; i < end; i++) { | 11792 for (int i = start; i < end; i++) { |
11793 if (object_at(i) == code) return true; | 11793 if (object_at(i) == code) return true; |
11794 } | 11794 } |
11795 return false; | 11795 return false; |
11796 } | 11796 } |
11797 | 11797 |
11798 | 11798 |
11799 bool DependentCode::MarkCodeForDeoptimization( | 11799 bool DependentCode::MarkCodeForDeoptimization( |
11800 Isolate* isolate, | 11800 Isolate* isolate, |
11801 DependentCode::DependencyGroup group) { | 11801 DependentCode::DependencyGroup group) { |
11802 ASSERT(AllowCodeDependencyChange::IsAllowed()); | |
11803 DisallowHeapAllocation no_allocation_scope; | 11802 DisallowHeapAllocation no_allocation_scope; |
11804 DependentCode::GroupStartIndexes starts(this); | 11803 DependentCode::GroupStartIndexes starts(this); |
11805 int start = starts.at(group); | 11804 int start = starts.at(group); |
11806 int end = starts.at(group + 1); | 11805 int end = starts.at(group + 1); |
11807 int code_entries = starts.number_of_entries(); | 11806 int code_entries = starts.number_of_entries(); |
11808 if (start == end) return false; | 11807 if (start == end) return false; |
11809 | 11808 |
11810 // Mark all the code that needs to be deoptimized. | 11809 // Mark all the code that needs to be deoptimized. |
11811 bool marked = false; | 11810 bool marked = false; |
11812 for (int i = start; i < end; i++) { | 11811 for (int i = start; i < end; i++) { |
(...skipping 4789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16602 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16601 #define ERROR_MESSAGES_TEXTS(C, T) T, |
16603 static const char* error_messages_[] = { | 16602 static const char* error_messages_[] = { |
16604 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16603 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
16605 }; | 16604 }; |
16606 #undef ERROR_MESSAGES_TEXTS | 16605 #undef ERROR_MESSAGES_TEXTS |
16607 return error_messages_[reason]; | 16606 return error_messages_[reason]; |
16608 } | 16607 } |
16609 | 16608 |
16610 | 16609 |
16611 } } // namespace v8::internal | 16610 } } // namespace v8::internal |
OLD | NEW |