Index: test/cctest/test-compiler.cc |
diff --git a/test/cctest/test-compiler.cc b/test/cctest/test-compiler.cc |
index 10a5c9ade32135f0d6a857a580c4844c66ffd866..493189cb543ec812905c779748e55470e8518851 100644 |
--- a/test/cctest/test-compiler.cc |
+++ b/test/cctest/test-compiler.cc |
@@ -371,11 +371,9 @@ TEST(FeedbackVectorUnaffectedByScopeChanges) { |
// Test that optimized code for different closures is actually shared |
// immediately by the FastNewClosureStub when run in the same context. |
TEST(OptimizedCodeSharing) { |
- // Skip test if --cache-optimized-code is not activated by default because |
- // FastNewClosureStub that is baked into the snapshot is incorrect. |
- if (!FLAG_cache_optimized_code) return; |
FLAG_stress_compaction = false; |
FLAG_allow_natives_syntax = true; |
+ FLAG_cache_optimized_code = true; |
CcTest::InitializeVM(); |
v8::HandleScope scope(CcTest::isolate()); |
for (int i = 0; i < 10; i++) { |