Revision: 11906
Author:   [email protected]
Date:     Fri Jun 22 05:47:11 2012
Log: Skip test for optimized code sharing if flag is disabled by default.

[email protected]
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10642019
http://code.google.com/p/v8/source/detail?r=11906

Modified:
 /branches/bleeding_edge/test/cctest/test-compiler.cc

=======================================
--- /branches/bleeding_edge/test/cctest/test-compiler.cc Tue Jun 19 05:54:24 2012 +++ /branches/bleeding_edge/test/cctest/test-compiler.cc Fri Jun 22 05:47:11 2012
@@ -355,6 +355,9 @@
 // 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_allow_natives_syntax = true;
   InitializeVM();
   v8::HandleScope scope;

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to