Speed up test/mjsunit/compiler/regress-or

Review URL: https://codereview.chromium.org/10969063

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12593 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
jkummerow@chromium.org 2012-09-24 10:08:01 +00:00
parent 6dc2af06dc
commit 1e1470fca0
2 changed files with 6 additions and 4 deletions

View File

@ -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
// Test deoptimization inside short-circuited expressions.
function f1(x) {
var c = "fail";
@ -36,7 +38,8 @@ function f1(x) {
function g1() { try { return 1; } finally {} }
for (var i=0; i<10000000; i++) f1(42);
for (var i = 0; i < 5; i++) f1(42);
%OptimizeFunctionOnNextCall(f1);
assertEquals(-1, f1(0));
assertEquals(-43, f1(42));
@ -52,6 +55,7 @@ function f2(x) {
function g2() { try { return 0; } finally {} }
for (var i=0; i<10000000; i++) f2(42);
for (var i = 0; i < 5; i++) f2(42);
%OptimizeFunctionOnNextCall(f2);
assertEquals(-1, f2(""));

View File

@ -106,7 +106,6 @@ compiler/regress-funcaller: SKIP
compiler/regress-rep-change: SKIP
compiler/regress-arguments: SKIP
compiler/regress-funarguments: SKIP
compiler/regress-or: SKIP
compiler/regress-3249650: SKIP
compiler/simple-deopt: SKIP
regress/regress-490: SKIP
@ -163,7 +162,6 @@ compiler/regress-funcaller: SKIP
compiler/regress-rep-change: SKIP
compiler/regress-arguments: SKIP
compiler/regress-funarguments: SKIP
compiler/regress-or: SKIP
compiler/regress-3249650: SKIP
compiler/simple-deopt: SKIP
regress/regress-490: SKIP