2016-11-30 14:03:25 +00:00
|
|
|
// 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
|
|
|
|
|
|
|
|
(function() {
|
|
|
|
"use asm";
|
2019-05-03 14:32:12 +00:00
|
|
|
var f = function() {
|
2016-11-30 14:03:25 +00:00
|
|
|
for (var i = 0; i < 10; i++) {
|
|
|
|
if (i == 5) {
|
|
|
|
%OptimizeOsr();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
with (Object());
|
2019-05-03 14:32:12 +00:00
|
|
|
};
|
|
|
|
%PrepareFunctionForOptimization(f);
|
|
|
|
return f;
|
2016-11-30 14:03:25 +00:00
|
|
|
})()();
|