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

Unified Diff: src/objects-inl.h

Issue 159783002: Re-optimize faster after making a pretenuring decision. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« src/objects.cc ('K') | « src/objects.cc ('k') | src/runtime-profiler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« src/objects.cc ('K') | « src/objects.cc ('k') | src/runtime-profiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698