553d504923
This adds handling of {IrOpcode::kObjectIsReceiver} nodes to the escape status analysis. Such uses are treated as escaping for now until we add dedicated handling to the escape analysis reducer. R=bmeurer@chromium.org TEST=mjsunit/regress/regress-crbug-631027 BUG=chromium:631027 Review-Url: https://codereview.chromium.org/2317623003 Cr-Commit-Position: refs/heads/master@{#39205}
13 lines
361 B
JavaScript
13 lines
361 B
JavaScript
// Copyright 2016 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 --turbo-escape
|
|
|
|
function f() {
|
|
with ({ value:"foo" }) { return value; }
|
|
}
|
|
assertEquals("foo", f());
|
|
%OptimizeFunctionOnNextCall(f);
|
|
assertEquals("foo", f());
|