Commit 3b336a2e authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

[turbofan] Remove now-dead JSFunctionRef::EnsureHasInitialMap.

R=jarin@chromium.org

Bug: v8:7790
Change-Id: I06ace1a150d7c9a7eff1cd49e7eb38596bf0a188
Reviewed-on: https://chromium-review.googlesource.com/1180895Reviewed-by: 's avatarMaya Lekova <mslekova@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55206}
parent 62b894b6
......@@ -600,16 +600,6 @@ base::Optional<MapRef> HeapObjectRef::TryGetObjectCreateMap() const {
}
}
void JSFunctionRef::EnsureHasInitialMap() const {
AllowHandleAllocation handle_allocation;
AllowHandleDereference allow_handle_dereference;
AllowHeapAllocation heap_allocation;
// TODO(jarin) Eventually, we will prepare initial maps for resumable
// functions (i.e., generators).
DCHECK(IsResumableFunction(object<JSFunction>()->shared()->kind()));
JSFunction::EnsureHasInitialMap(object<JSFunction>());
}
base::Optional<MapRef> MapRef::AsElementsKind(ElementsKind kind) const {
if (broker()->mode() == JSHeapBroker::kDisabled) {
AllowHandleAllocation handle_allocation;
......
......@@ -176,7 +176,6 @@ class JSFunctionRef : public JSObjectRef {
JSGlobalProxyRef global_proxy() const;
int InitialMapInstanceSizeWithMinSlack() const;
SharedFunctionInfoRef shared() const;
void EnsureHasInitialMap() const;
};
class JSRegExpRef : public JSObjectRef {
......
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