bbefaeb5cc
GC may change heap state and make this dependency fail. That's okay - it passed once before, meaning that compilation saw a self-consistent JSFunctionRef state. Bug: chromium:1230930 Change-Id: I367b10e4aa88101f1ca83a46f596c5f289f6cab2 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3040838 Auto-Submit: Jakob Gruber <jgruber@chromium.org> Commit-Queue: Georg Neis <neis@chromium.org> Reviewed-by: Georg Neis <neis@chromium.org> Cr-Commit-Position: refs/heads/master@{#75802}
20 lines
475 B
JavaScript
20 lines
475 B
JavaScript
// Copyright 2021 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: --allow-natives-syntax --stress-gc-during-compilation
|
|
|
|
const __v_0 = class __c_0 extends Array {
|
|
constructor() {
|
|
super();
|
|
this.y = 1;
|
|
}
|
|
};
|
|
function __f_1() {
|
|
var __v_2 = new __v_0();
|
|
}
|
|
%PrepareFunctionForOptimization(__f_1);
|
|
__f_1();
|
|
%OptimizeFunctionOnNextCall(__f_1);
|
|
__f_1();
|