248fd5ffe0
This reverts commit 4fd92b252b
.
Reason for revert: Significant tankage on the no-mitigations bots (bad timing on the regular bots)
Original change's description:
> [turbofan] Do not consume SignedSmall feedback in TurboFan anymore.
>
> This changes TurboFan to treat SignedSmall feedback similar to Signed32
> feedback for binary and compare operations, in order to simplify and
> unify the machinery.
>
> This is an experiment. If this turns out to tank performance, we will
> need to revisit and ideally revert this change.
>
> Bug: v8:7094
> Change-Id: I885769c2fe93d8413e59838fbe844650c848c3f1
> Reviewed-on: https://chromium-review.googlesource.com/c/1261442
> Reviewed-by: Jaroslav Sevcik <jarin@chromium.org>
> Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#56411}
TBR=jarin@chromium.org,bmeurer@chromium.org
# Not skipping CQ checks because original CL landed > 1 day ago.
Bug: v8:7094
Change-Id: I9fff3b40e6dc0ceb7611b55e1ca9940089470404
Reviewed-on: https://chromium-review.googlesource.com/c/1267175
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#56427}
49 lines
996 B
JavaScript
49 lines
996 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: --allow-natives-syntax --opt --no-always-opt --deopt-every-n-times=6
|
|
|
|
// Check that stress deopt count resets correctly
|
|
|
|
// Function with two deopt points
|
|
function f(x) {
|
|
return x + 1;
|
|
}
|
|
|
|
f(1);
|
|
%OptimizeFunctionOnNextCall(f);
|
|
|
|
// stress_deopt_count == 6
|
|
|
|
f(1);
|
|
assertOptimized(f, undefined, undefined, false);
|
|
|
|
// stress_deopt_count == 4
|
|
|
|
f(1);
|
|
assertOptimized(f, undefined, undefined, false);
|
|
|
|
// stress_deopt_count == 2
|
|
|
|
f(1);
|
|
// deopt & counter reset
|
|
assertUnoptimized(f, undefined, undefined, false);
|
|
|
|
// stress_deopt_count == 6
|
|
|
|
%OptimizeFunctionOnNextCall(f);
|
|
f(1);
|
|
assertOptimized(f, undefined, undefined, false);
|
|
|
|
// stress_deopt_count == 4
|
|
|
|
f(1);
|
|
assertOptimized(f, undefined, undefined, false);
|
|
|
|
// stress_deopt_count == 2
|
|
|
|
f(1);
|
|
// deopt & counter reset
|
|
assertUnoptimized(f, undefined, undefined, false);
|