6cb995b936
When deleting the most recently added fast property from an object by undoing its last map transition, we must clear any recorded slots. This can only be done in C++, so this functionality must move out of the stub. Also update a CHECK in the JSObject verifier to allow backing stores sticking around after such property deletions. BUG=chromium:716912,chromium:714981 Review-Url: https://codereview.chromium.org/2854373002 Cr-Commit-Position: refs/heads/master@{#45069}
24 lines
490 B
JavaScript
24 lines
490 B
JavaScript
// Copyright 2017 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
// Flags: --expose-gc --invoke-weak-callbacks
|
|
|
|
function __f_6() {
|
|
this.a4 = {};
|
|
}
|
|
__v_6 = new __f_6();
|
|
__v_6.prototype = __v_6;
|
|
__v_6 = new __f_6();
|
|
gc();
|
|
gc();
|
|
|
|
buf = new ArrayBuffer(8);
|
|
__v_8 = new Int32Array(buf);
|
|
__v_9 = new Float64Array(buf);
|
|
|
|
__v_8[0] = 1;
|
|
__v_6.a4 = {a: 0};
|
|
delete __v_6.a4;
|
|
__v_6.boom = __v_9[0];
|