| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 259a55f8996291a08c01de32a9444196aa1d6514..6722c784a97946af5bb1d63c7e49a8bfbcd21d4e 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -1556,7 +1556,8 @@ inline bool AllocationSite::DigestPretenuringFeedback() {
|
| decision_changed = true;
|
| dependent_code()->MarkCodeForDeoptimization(
|
| GetIsolate(),
|
| - DependentCode::kAllocationSiteTenuringChangedGroup);
|
| + DependentCode::kAllocationSiteTenuringChangedGroup,
|
| + true);
|
| }
|
| }
|
|
|
| @@ -4455,6 +4456,21 @@ void Code::set_marked_for_deoptimization(bool flag) {
|
| }
|
|
|
|
|
| +bool Code::marked_for_reoptimization() {
|
| + ASSERT(kind() == OPTIMIZED_FUNCTION);
|
| + return MarkedForReoptimizationField::decode(
|
| + READ_UINT32_FIELD(this, kKindSpecificFlags1Offset));
|
| +}
|
| +
|
| +
|
| +void Code::set_marked_for_reoptimization(bool flag) {
|
| + ASSERT(kind() == OPTIMIZED_FUNCTION);
|
| + int previous = READ_UINT32_FIELD(this, kKindSpecificFlags1Offset);
|
| + int updated = MarkedForReoptimizationField::update(previous, flag);
|
| + WRITE_UINT32_FIELD(this, kKindSpecificFlags1Offset, updated);
|
| +}
|
| +
|
| +
|
| bool Code::is_inline_cache_stub() {
|
| Kind kind = this->kind();
|
| switch (kind) {
|
|
|