2015-10-06 08:23:41 +00:00
|
|
|
// Copyright 2015 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.
|
|
|
|
|
2017-07-13 16:26:18 +00:00
|
|
|
// Flags: --allow-natives-syntax
|
2015-10-06 08:23:41 +00:00
|
|
|
|
|
|
|
var foo = (function(stdlib) {
|
|
|
|
"use asm";
|
|
|
|
var bar = stdlib.Symbol;
|
|
|
|
function foo() { return bar("lala"); }
|
|
|
|
return foo;
|
|
|
|
})(this);
|
|
|
|
|
2019-03-01 10:19:54 +00:00
|
|
|
%PrepareFunctionForOptimization(foo);
|
2015-10-06 08:23:41 +00:00
|
|
|
%OptimizeFunctionOnNextCall(foo);
|
|
|
|
foo();
|