2014-09-05 15:13:44 +00:00
|
|
|
// Copyright 2014 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.
|
|
|
|
|
2015-03-20 11:03:05 +00:00
|
|
|
// Flags: --allow-natives-syntax
|
2014-09-05 15:13:44 +00:00
|
|
|
|
2019-04-30 13:39:53 +00:00
|
|
|
%PrepareFunctionForOptimization(print);
|
2014-09-05 15:13:44 +00:00
|
|
|
try {
|
|
|
|
%OptimizeFunctionOnNextCall(print);
|
|
|
|
} catch(e) { }
|
|
|
|
|
|
|
|
try {
|
|
|
|
function* f() {
|
|
|
|
}
|
2019-04-30 13:39:53 +00:00
|
|
|
%PrepareFunctionForOptimization(f);
|
2014-09-05 15:13:44 +00:00
|
|
|
%OptimizeFunctionOnNextCall(f);
|
|
|
|
} catch(e) { }
|