From 4f6e72ce293481576f8974ff1eb6d6b220a1eb74 Mon Sep 17 00:00:00 2001 From: "mstarzinger@chromium.org" Date: Tue, 19 Jun 2012 12:54:24 +0000 Subject: [PATCH] Fix check in r11850 for nosse2 and novfp3 machines. R=ulan@chromium.org TEST=cctest/test-compiler/OptimizedCodeSharing Review URL: https://chromiumcodereview.appspot.com/10573007 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11859 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/cctest/test-compiler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cctest/test-compiler.cc b/test/cctest/test-compiler.cc index e366a06..5e7935c 100644 --- a/test/cctest/test-compiler.cc +++ b/test/cctest/test-compiler.cc @@ -374,8 +374,8 @@ TEST(OptimizedCodeSharing) { *v8::Local::Cast(env->Global()->Get(v8_str("closure1")))); Handle fun2 = v8::Utils::OpenHandle( *v8::Local::Cast(env->Global()->Get(v8_str("closure2")))); - CHECK(fun1->IsOptimized() || !FLAG_crankshaft); - CHECK(fun2->IsOptimized() || !FLAG_crankshaft); + CHECK(fun1->IsOptimized() || !fun1->IsOptimizable()); + CHECK(fun2->IsOptimized() || !fun2->IsOptimizable()); CHECK_EQ(fun1->code(), fun2->code()); } } -- 2.7.4