Commit d817090f authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

[turbofan] Eliminate a code dependency in Object.create lowering.

The dependency is unnecessary.

Also add a DCHECK that effectively ensures that the instance size can't
change.

NOPRESUBMIT=true

Bug: v8:7790
Change-Id: Ib68ed044f2f87a0b8b83f4110756f3d3ad96c530
Reviewed-on: https://chromium-review.googlesource.com/1110121
Commit-Queue: Georg Neis <neis@chromium.org>
Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53953}
parent 536e12f6
...@@ -1492,7 +1492,7 @@ Reduction JSCreateLowering::ReduceJSCreateObject(Node* node) { ...@@ -1492,7 +1492,7 @@ Reduction JSCreateLowering::ReduceJSCreateObject(Node* node) {
int const instance_size = instance_map->instance_size(); int const instance_size = instance_map->instance_size();
if (instance_size > kMaxRegularHeapObjectSize) return NoChange(); if (instance_size > kMaxRegularHeapObjectSize) return NoChange();
dependencies()->AssumeInitialMapCantChange(instance_map); CHECK(!instance_map->IsInobjectSlackTrackingInProgress());
// Emit code to allocate the JSObject instance for the given // Emit code to allocate the JSObject instance for the given
// {instance_map}. // {instance_map}.
......
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