Commit 407aaa98 authored by ricow@chromium.org's avatar ricow@chromium.org

Only perform code flusing test if we actually do code flushing.

Puts a check into the code flushing test to only perform this if the
flush_code flag is set to true. 


Review URL: http://codereview.chromium.org/2734006

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4842 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 7b956716
...@@ -960,6 +960,8 @@ TEST(Regression39128) { ...@@ -960,6 +960,8 @@ TEST(Regression39128) {
TEST(TestCodeFlushing) { TEST(TestCodeFlushing) {
i::FLAG_allow_natives_syntax = true; i::FLAG_allow_natives_syntax = true;
// If we do not flush code this test is invalid.
if (!FLAG_flush_code) return;
InitializeVM(); InitializeVM();
v8::HandleScope scope; v8::HandleScope scope;
const char* source = "function foo() {" const char* source = "function foo() {"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment