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

Unified Diff: src/objects.cc

Issue 132063004: More efficient use of space in AllocationSite. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 6 years, 11 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
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 539d4afb01bac1da3bfd1487e9fe545503531852..5f24920017a4d8e490ed1923de193940c86deaae 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -45,7 +45,6 @@
#include "isolate-inl.h"
#include "log.h"
#include "objects-inl.h"
-#include "objects-visiting.h"
#include "objects-visiting-inl.h"
#include "macro-assembler.h"
#include "mark-compact.h"
@@ -12797,14 +12796,14 @@ void AllocationSite::ResetPretenureDecision() {
dependent_code()->DeoptimizeDependentCodeGroup(
GetIsolate(),
DependentCode::kAllocationSiteTenuringChangedGroup);
- set_pretenure_decision(Smi::FromInt(kUndecided));
- set_memento_found_count(Smi::FromInt(0));
- set_memento_create_count(Smi::FromInt(0));
+ set_pretenure_decision(kUndecided);
+ set_memento_found_count(0);
+ set_memento_create_count(0);
}
PretenureFlag AllocationSite::GetPretenureMode() {
- int mode = pretenure_decision()->value();
+ PretenureDecision mode = pretenure_decision();
// Zombie objects "decide" to be untenured.
return (mode == kTenure && GetHeap()->GetPretenureMode() == TENURED)
? TENURED : NOT_TENURED;
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698