[runtime] Fix class literal instantiation.

Class' prototype temporarily got properies backing store inconsistent with
the map which obviously confused heap verifier.

Bug: v8:5799
Change-Id: Ie28b0418daa657763d07c8a928851111680718ed
Reviewed-on: https://chromium-review.googlesource.com/777560
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Commit-Queue: Igor Sheludko <ishell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49460}
This commit is contained in:
Igor Sheludko 2017-11-17 21:07:17 +01:00 committed by Commit Bot
parent 027cecdb21
commit ed53f05c83

View File

@ -468,8 +468,6 @@ bool InitClassPrototype(Isolate* isolate,
map->set_migration_target(false);
map->set_may_have_interesting_symbols(true);
// map->set_construction_counter(Map::kNoSlackTracking);
prototype->set_raw_properties_or_hash(
*isolate->factory()->empty_property_dictionary());
// We care about name property only for class constructor.
const bool install_name_accessor = false;