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
parent e8320f4f
......@@ -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.
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment