Index: test/cctest/test-compiler.cc |
diff --git a/test/cctest/test-compiler.cc b/test/cctest/test-compiler.cc |
index e366a068281af32d7d421b6992b8aede2684542e..5e7935c4abec8cfcafa3e182f986469cce5dbabd 100644 |
--- a/test/cctest/test-compiler.cc |
+++ b/test/cctest/test-compiler.cc |
@@ -374,8 +374,8 @@ TEST(OptimizedCodeSharing) { |
*v8::Local<v8::Function>::Cast(env->Global()->Get(v8_str("closure1")))); |
Handle<JSFunction> fun2 = v8::Utils::OpenHandle( |
*v8::Local<v8::Function>::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()); |
} |
} |