| 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 10442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10453 } | 10453 } |
| 10454 } | 10454 } |
| 10455 | 10455 |
| 10456 | 10456 |
| 10457 bool Code::IsOld() { | 10457 bool Code::IsOld() { |
| 10458 byte* sequence = FindCodeAgeSequence(); | 10458 byte* sequence = FindCodeAgeSequence(); |
| 10459 if (sequence == NULL) return false; | 10459 if (sequence == NULL) return false; |
| 10460 Age age; | 10460 Age age; |
| 10461 MarkingParity parity; | 10461 MarkingParity parity; |
| 10462 GetCodeAgeAndParity(sequence, &age, &parity); | 10462 GetCodeAgeAndParity(sequence, &age, &parity); |
| 10463 return age >= kSexagenarianCodeAge; | 10463 return age >= kIsOldCodeAge; |
| 10464 } | 10464 } |
| 10465 | 10465 |
| 10466 | 10466 |
| 10467 byte* Code::FindCodeAgeSequence() { | 10467 byte* Code::FindCodeAgeSequence() { |
| 10468 return FLAG_age_code && | 10468 return FLAG_age_code && |
| 10469 prologue_offset() != kPrologueOffsetNotSet && | 10469 prologue_offset() != kPrologueOffsetNotSet && |
| 10470 (kind() == OPTIMIZED_FUNCTION || | 10470 (kind() == OPTIMIZED_FUNCTION || |
| 10471 (kind() == FUNCTION && !has_debug_break_slots())) | 10471 (kind() == FUNCTION && !has_debug_break_slots())) |
| 10472 ? instruction_start() + prologue_offset() | 10472 ? instruction_start() + prologue_offset() |
| 10473 : NULL; | 10473 : NULL; |
| (...skipping 5606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16080 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16080 #define ERROR_MESSAGES_TEXTS(C, T) T, |
| 16081 static const char* error_messages_[] = { | 16081 static const char* error_messages_[] = { |
| 16082 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16082 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
| 16083 }; | 16083 }; |
| 16084 #undef ERROR_MESSAGES_TEXTS | 16084 #undef ERROR_MESSAGES_TEXTS |
| 16085 return error_messages_[reason]; | 16085 return error_messages_[reason]; |
| 16086 } | 16086 } |
| 16087 | 16087 |
| 16088 | 16088 |
| 16089 } } // namespace v8::internal | 16089 } } // namespace v8::internal |
| OLD | NEW |