escape-analysis-12.js 381 Bytes
Newer Older
1 2 3 4
// 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.

5
// Flags: --allow-natives-syntax --turbo-escape
6 7 8 9 10 11 12 13

var x = {};
x = {};
function f() {
  var y = {b: -1.5};
  x.b = 1;
  0 <= y.b;
}
14
%PrepareFunctionForOptimization(f);
15 16
f();
f();
17
%OptimizeFunctionOnNextCall(f);
18
f();