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