Commit c6183298 authored by Santiago Aboy Solanes's avatar Santiago Aboy Solanes Committed by Commit Bot

[compiler] Remove unused CompilationDependencies' methods

Change-Id: Icd1d9fa59fac714673a264839006e74fc4dfeac3
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2676147Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
Commit-Queue: Santiago Aboy Solanes <solanes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#72563}
parent 2dc8934d
......@@ -404,10 +404,6 @@ void CompilationDependencies::DependOnStableMap(const MapRef& map) {
}
}
void CompilationDependencies::DependOnTransition(const MapRef& target_map) {
RecordDependency(TransitionDependencyOffTheRecord(target_map));
}
AllocationType CompilationDependencies::DependOnPretenureMode(
const AllocationSiteRef& site) {
DCHECK(!site.IsNeverSerializedHeapObject());
......@@ -441,16 +437,6 @@ PropertyConstness CompilationDependencies::DependOnFieldConstness(
return PropertyConstness::kConst;
}
void CompilationDependencies::DependOnFieldRepresentation(
const MapRef& map, InternalIndex descriptor) {
RecordDependency(FieldRepresentationDependencyOffTheRecord(map, descriptor));
}
void CompilationDependencies::DependOnFieldType(const MapRef& map,
InternalIndex descriptor) {
RecordDependency(FieldTypeDependencyOffTheRecord(map, descriptor));
}
void CompilationDependencies::DependOnGlobalProperty(
const PropertyCellRef& cell) {
DCHECK(!cell.IsNeverSerializedHeapObject());
......@@ -514,13 +500,6 @@ void CompilationDependencies::DependOnElementsKind(
}
}
bool CompilationDependencies::AreValid() const {
for (auto dep : dependencies_) {
if (!dep->IsValid()) return false;
}
return true;
}
bool CompilationDependencies::Commit(Handle<Code> code) {
// Dependencies are context-dependent. In the future it may be possible to
// restore them in the consumer native context, but for now they are
......
......@@ -45,22 +45,10 @@ class V8_EXPORT_PRIVATE CompilationDependencies : public ZoneObject {
// Record the assumption that {map} stays stable.
void DependOnStableMap(const MapRef& map);
// Record the assumption that {target_map} can be transitioned to, i.e., that
// it does not become deprecated.
void DependOnTransition(const MapRef& target_map);
// Return the pretenure mode of {site} and record the assumption that it does
// not change.
AllocationType DependOnPretenureMode(const AllocationSiteRef& site);
// Record the assumption that the field representation of a field does not
// change. The field is identified by the arguments.
void DependOnFieldRepresentation(const MapRef& map, InternalIndex descriptor);
// Record the assumption that the field type of a field does not change. The
// field is identified by the arguments.
void DependOnFieldType(const MapRef& map, InternalIndex descriptor);
// Return a field's constness and, if kConst, record the assumption that it
// remains kConst. The field is identified by the arguments.
//
......@@ -110,23 +98,28 @@ class V8_EXPORT_PRIVATE CompilationDependencies : public ZoneObject {
SlackTrackingPrediction DependOnInitialMapInstanceSizePrediction(
const JSFunctionRef& function);
// The methods below allow for gathering dependencies without actually
// recording them. They can be recorded at a later time (or they can be
// ignored). For example,
// DependOnTransition(map);
// is equivalent to:
// RecordDependency(TransitionDependencyOffTheRecord(map));
// Records {dependency} if not null.
void RecordDependency(CompilationDependency const* dependency);
// The methods below allow for gathering dependencies without actually
// recording them. They can be recorded at a later time via RecordDependency
// (or they can be ignored).
// Gather the assumption that {target_map} can be transitioned to, i.e., that
// it does not become deprecated.
CompilationDependency const* TransitionDependencyOffTheRecord(
const MapRef& target_map) const;
// Gather the assumption that the field representation of a field does not
// change. The field is identified by the arguments.
CompilationDependency const* FieldRepresentationDependencyOffTheRecord(
const MapRef& map, InternalIndex descriptor) const;
// Gather the assumption that the field type of a field does not change. The
// field is identified by the arguments.
CompilationDependency const* FieldTypeDependencyOffTheRecord(
const MapRef& map, InternalIndex descriptor) const;
// Exposed only for testing purposes.
bool AreValid() const;
private:
Zone* const zone_;
JSHeapBroker* const broker_;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment