Commit 211cc585 authored by Franziska Hinkelmann's avatar Franziska Hinkelmann Committed by Commit Bot

[cleanup] Return object instead of map.

No need to return an empty map. Return a JSObject instead.

Bug: v8:5933
Change-Id: I9fb727c5e1920ba94fd3d5e7ef2a7d9d602f56d8
Reviewed-on: https://chromium-review.googlesource.com/506194Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
Commit-Queue: Franziska Hinkelmann <franzih@chromium.org>
Cr-Commit-Position: refs/heads/master@{#45350}
parent 4d67e356
......@@ -1014,7 +1014,7 @@ JSObject* CollectTypeProfileNexus::GetTypeProfile() const {
Object* const feedback = GetFeedback();
if (feedback == *FeedbackVector::UninitializedSentinel(isolate)) {
return *isolate->factory()->NewJSMap();
return *isolate->factory()->NewJSObject(isolate->object_function());
}
return *ConvertToJSObject(
......
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