Index: test/cctest/test-compiler.cc |
diff --git a/test/cctest/test-compiler.cc b/test/cctest/test-compiler.cc |
index ef09891cb7d7eee60fdc8cef6d514f28ed78dd30..57704f9c1ee023364c00eed7eda6aa7a2beda1f0 100644 |
--- a/test/cctest/test-compiler.cc |
+++ b/test/cctest/test-compiler.cc |
@@ -395,10 +395,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() |
- || !CcTest::i_isolate()->use_crankshaft() || !fun1->IsOptimizable()); |
- CHECK(fun2->IsOptimized() |
- || !CcTest::i_isolate()->use_crankshaft() || !fun2->IsOptimizable()); |
+ CHECK(fun1->IsOptimized() || !CcTest::i_isolate()->use_crankshaft()); |
+ CHECK(fun2->IsOptimized() || !CcTest::i_isolate()->use_crankshaft()); |
CHECK_EQ(fun1->code(), fun2->code()); |
} |
} |