6646d73b6f
Don't bother using %_IsJSReceiver, which immediately gets lowered to ObjectIsReceiver anyways (by the JSIntrinsicLowering), but requires some complicated rewiring of effect/control chains. R=mstarzinger@chromium.org BUG=chromium:640369 Review-Url: https://codereview.chromium.org/2271973003 Cr-Commit-Position: refs/heads/master@{#38864}
16 lines
379 B
JavaScript
16 lines
379 B
JavaScript
// 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.
|
|
|
|
// Flags: --allow-natives-syntax
|
|
|
|
function A() {
|
|
this.x = 0;
|
|
for (var i = 0; i < max; ) {}
|
|
}
|
|
function foo() {
|
|
for (var i = 0; i < 1; i = 2) %OptimizeOsr();
|
|
return new A();
|
|
}
|
|
try { foo(); } catch (e) { }
|