Fixed Code::FindCodeAgeSequence logic, removing a dead method on the way.

Review URL: https://codereview.chromium.org/11364177

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12930 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
svenpanne@chromium.org 2012-11-12 13:27:36 +00:00
parent e8320f4f78
commit 073dfc0a6f
2 changed files with 6 additions and 9 deletions

View File

@ -525,9 +525,6 @@ class Assembler : public AssemblerBase {
Assembler(Isolate* isolate, void* buffer, int buffer_size);
~Assembler();
// Dummy for cross platform compatibility.
void set_predictable_code_size(bool value) { }
// GetCode emits any pending (non-emitted) code and fills the descriptor
// desc. GetCode() is idempotent; it returns the same result if no other
// Assembler functions are invoked in between GetCode() calls.

View File

@ -8834,13 +8834,13 @@ bool Code::IsOld() {
byte* Code::FindCodeAgeSequence() {
if (kind() != FUNCTION && kind() != OPTIMIZED_FUNCTION) return NULL;
if (strlen(FLAG_stop_at) == 0 &&
return FLAG_age_code &&
strlen(FLAG_stop_at) == 0 &&
!ProfileEntryHookStub::HasEntryHook() &&
(kind() == FUNCTION && !has_debug_break_slots())) {
return FindPlatformCodeAgeSequence();
}
return NULL;
(kind() == OPTIMIZED_FUNCTION ||
(kind() == FUNCTION && !has_debug_break_slots()))
? FindPlatformCodeAgeSequence()
: NULL;
}