2016-05-03 13:40:12 +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
|
|
|
|
|
2016-05-03 14:05:07 +00:00
|
|
|
(function ForInTryCatchContrinueOsr() {
|
|
|
|
var a = [1];
|
2016-05-03 13:40:12 +00:00
|
|
|
|
2016-05-03 14:05:07 +00:00
|
|
|
function g() {
|
|
|
|
for (var x in a) {
|
|
|
|
try {
|
2019-06-18 16:03:44 +00:00
|
|
|
for (var i = 0; i < 10; i++) {
|
|
|
|
%OptimizeOsr();
|
|
|
|
%PrepareFunctionForOptimization(g);
|
|
|
|
}
|
2016-05-03 14:05:07 +00:00
|
|
|
return;
|
|
|
|
} catch(e) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-03 14:32:12 +00:00
|
|
|
%PrepareFunctionForOptimization(g);
|
2016-05-03 14:05:07 +00:00
|
|
|
g();
|
|
|
|
})();
|
|
|
|
|
|
|
|
(function ForInContinueNestedOsr() {
|
|
|
|
var a = [1];
|
|
|
|
|
|
|
|
function g() {
|
|
|
|
for (var x in a) {
|
|
|
|
if (x) {
|
2019-06-18 16:03:44 +00:00
|
|
|
for (var i = 0; i < 10; i++) {
|
|
|
|
%OptimizeOsr();
|
|
|
|
%PrepareFunctionForOptimization(g);
|
|
|
|
}
|
2016-05-03 14:05:07 +00:00
|
|
|
}
|
2016-05-03 13:40:12 +00:00
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-03 14:32:12 +00:00
|
|
|
%PrepareFunctionForOptimization(g);
|
2016-05-03 14:05:07 +00:00
|
|
|
g();
|
|
|
|
})();
|