Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1555)

Side by Side Diff: src/objects.cc

Issue 677043002: Flush code faster when doing emergency GCs. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <sstream> 5 #include <sstream>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/accessors.h" 9 #include "src/accessors.h"
10 #include "src/allocation-site-scopes.h" 10 #include "src/allocation-site-scopes.h"
(...skipping 10513 matching lines...) Expand 10 before | Expand all | Expand 10 after
10524 if (age != kLastCodeAge && code_parity != current_parity) { 10524 if (age != kLastCodeAge && code_parity != current_parity) {
10525 PatchPlatformCodeAge(isolate, 10525 PatchPlatformCodeAge(isolate,
10526 sequence, 10526 sequence,
10527 static_cast<Age>(age + 1), 10527 static_cast<Age>(age + 1),
10528 current_parity); 10528 current_parity);
10529 } 10529 }
10530 } 10530 }
10531 } 10531 }
10532 10532
10533 10533
10534 bool Code::IsOld() { 10534 bool Code::IsOld(Heap* heap) {
10535 return GetAge() >= kIsOldCodeAge; 10535 return heap->flush_eagerly() || GetAge() >= kIsOldCodeAge;
10536 } 10536 }
10537 10537
10538 10538
10539 byte* Code::FindCodeAgeSequence() { 10539 byte* Code::FindCodeAgeSequence() {
10540 return FLAG_age_code && 10540 return FLAG_age_code &&
10541 prologue_offset() != Code::kPrologueOffsetNotSet && 10541 prologue_offset() != Code::kPrologueOffsetNotSet &&
10542 (kind() == OPTIMIZED_FUNCTION || 10542 (kind() == OPTIMIZED_FUNCTION ||
10543 (kind() == FUNCTION && !has_debug_break_slots())) 10543 (kind() == FUNCTION && !has_debug_break_slots()))
10544 ? instruction_start() + prologue_offset() 10544 ? instruction_start() + prologue_offset()
10545 : NULL; 10545 : NULL;
(...skipping 5937 matching lines...) Expand 10 before | Expand all | Expand 10 after
16483 Handle<DependentCode> codes = 16483 Handle<DependentCode> codes =
16484 DependentCode::Insert(handle(cell->dependent_code(), info->isolate()), 16484 DependentCode::Insert(handle(cell->dependent_code(), info->isolate()),
16485 DependentCode::kPropertyCellChangedGroup, 16485 DependentCode::kPropertyCellChangedGroup,
16486 info->object_wrapper()); 16486 info->object_wrapper());
16487 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); 16487 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes);
16488 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( 16488 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add(
16489 cell, info->zone()); 16489 cell, info->zone());
16490 } 16490 }
16491 16491
16492 } } // namespace v8::internal 16492 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698