Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 539d4afb01bac1da3bfd1487e9fe545503531852..638adba73f967148d653ec793b98e9f763a2c3d8 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -12878,22 +12878,16 @@ MaybeObject* AllocationSite::DigestTransitionFeedback(ElementsKind to_kind) { |
} |
-void AllocationSite::AddDependentCompilationInfo(Reason reason, |
+// static |
+void AllocationSite::AddDependentCompilationInfo(Handle<AllocationSite> site, |
+ Reason reason, |
CompilationInfo* info) { |
- DependentCode::DependencyGroup group = ToDependencyGroup(reason); |
- Handle<DependentCode> dep(dependent_code()); |
+ DependentCode::DependencyGroup group = site->ToDependencyGroup(reason); |
+ Handle<DependentCode> dep(site->dependent_code()); |
Handle<DependentCode> codes = |
DependentCode::Insert(dep, group, info->object_wrapper()); |
- if (*codes != dependent_code()) set_dependent_code(*codes); |
- info->dependencies(group)->Add(Handle<HeapObject>(this), info->zone()); |
-} |
- |
- |
-void AllocationSite::AddDependentCode(Reason reason, Handle<Code> code) { |
- DependentCode::DependencyGroup group = ToDependencyGroup(reason); |
- Handle<DependentCode> codes = DependentCode::Insert( |
- Handle<DependentCode>(dependent_code()), group, code); |
- if (*codes != dependent_code()) set_dependent_code(*codes); |
+ if (*codes != site->dependent_code()) site->set_dependent_code(*codes); |
+ info->dependencies(group)->Add(Handle<HeapObject>(site), info->zone()); |
} |
@@ -16663,14 +16657,6 @@ void PropertyCell::AddDependentCompilationInfo(CompilationInfo* info) { |
} |
-void PropertyCell::AddDependentCode(Handle<Code> code) { |
- Handle<DependentCode> codes = DependentCode::Insert( |
- Handle<DependentCode>(dependent_code()), |
- DependentCode::kPropertyCellChangedGroup, code); |
- if (*codes != dependent_code()) set_dependent_code(*codes); |
-} |
- |
- |
const char* GetBailoutReason(BailoutReason reason) { |
ASSERT(reason < kLastErrorMessage); |
#define ERROR_MESSAGES_TEXTS(C, T) T, |