Commit 37f46e28 authored by Sigurd Schneider's avatar Sigurd Schneider Committed by Commit Bot

[mjsunit] Speed up a slow test.

Bug: v8:7783
Change-Id: If351c07735b583816389b77d4077b3494571626f
Reviewed-on: https://chromium-review.googlesource.com/1071441
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53337}
parent c2440725
......@@ -790,7 +790,6 @@
# Slow tests: https://crbug.com/v8/7783
'lexicographic-compare': [SKIP],
'regress/regress-2185': [SKIP],
'regress/regress-deep-proto': [SKIP],
'wasm/grow-memory': [SKIP],
}], # variant == nooptimization and (arch == arm or arch == arm64) and simulator_run
......
......@@ -25,6 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Flags: --allow-natives-syntax
function poly(x) {
return x.foo;
}
......@@ -38,8 +40,12 @@ three.__proto__.__proto__.__proto__ = {};
three.__proto__.__proto__.__proto__.__proto__ = {};
three.__proto__.__proto__.__proto__.__proto__.__proto__ = {};
for (var i = 0; i < 1e6; i++) {
poly(one);
poly(two);
poly(three);
}
poly(one);
poly(two);
poly(three);
%OptimizeFunctionOnNextCall(poly);
poly(one);
poly(two);
poly(three);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment