Reviewers: Michael Starzinger,
Description:
Skip test for optimized code sharing if flag is disabled by default.
[email protected]
BUG=
TEST=
Please review this at https://chromiumcodereview.appspot.com/10642019/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M test/cctest/test-compiler.cc
Index: test/cctest/test-compiler.cc
diff --git a/test/cctest/test-compiler.cc b/test/cctest/test-compiler.cc
index
5e7935c4abec8cfcafa3e182f986469cce5dbabd..796a37fbc5fc4e0ffb9e47c326896fdda8bed5de
100644
--- a/test/cctest/test-compiler.cc
+++ b/test/cctest/test-compiler.cc
@@ -355,6 +355,9 @@ TEST(GetScriptLineNumber) {
// 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 so
that
+ // FastNewClosureStub that is baked into the snapshot is generated
correctly.
+ 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