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 11336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11347 for (int i = 0; i < number_of_entries; i++) { | 11347 for (int i = 0; i < number_of_entries; i++) { |
11348 if (object_at(i) == code) return true; | 11348 if (object_at(i) == code) return true; |
11349 } | 11349 } |
11350 return false; | 11350 return false; |
11351 } | 11351 } |
11352 | 11352 |
11353 | 11353 |
11354 void DependentCode::DeoptimizeDependentCodeGroup( | 11354 void DependentCode::DeoptimizeDependentCodeGroup( |
11355 Isolate* isolate, | 11355 Isolate* isolate, |
11356 DependentCode::DependencyGroup group) { | 11356 DependentCode::DependencyGroup group) { |
| 11357 ASSERT(AllowCodeDependencyChange::IsAllowed()); |
11357 DisallowHeapAllocation no_allocation_scope; | 11358 DisallowHeapAllocation no_allocation_scope; |
11358 DependentCode::GroupStartIndexes starts(this); | 11359 DependentCode::GroupStartIndexes starts(this); |
11359 int start = starts.at(group); | 11360 int start = starts.at(group); |
11360 int end = starts.at(group + 1); | 11361 int end = starts.at(group + 1); |
11361 int code_entries = starts.number_of_entries(); | 11362 int code_entries = starts.number_of_entries(); |
11362 if (start == end) return; | 11363 if (start == end) return; |
11363 | 11364 |
11364 // Collect all the code to deoptimize. | 11365 // Collect all the code to deoptimize. |
11365 Zone zone(isolate); | 11366 Zone zone(isolate); |
11366 ZoneList<Code*> codes(end - start, &zone); | 11367 ZoneList<Code*> codes(end - start, &zone); |
(...skipping 4609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15976 #define ERROR_MESSAGES_TEXTS(C, T) T, | 15977 #define ERROR_MESSAGES_TEXTS(C, T) T, |
15977 static const char* error_messages_[] = { | 15978 static const char* error_messages_[] = { |
15978 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 15979 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
15979 }; | 15980 }; |
15980 #undef ERROR_MESSAGES_TEXTS | 15981 #undef ERROR_MESSAGES_TEXTS |
15981 return error_messages_[reason]; | 15982 return error_messages_[reason]; |
15982 } | 15983 } |
15983 | 15984 |
15984 | 15985 |
15985 } } // namespace v8::internal | 15986 } } // namespace v8::internal |
OLD | NEW |