Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index 96407a897c98b1284a3f9b1dd78bb457c5b08bd7..55d90dd9f00c5c680a9567358d5ec1664a65cd90 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -1568,6 +1568,7 @@ static void SetStandaloneFlagsViaCommandLine() { |
char **fake_argv = new char*[2]; |
fake_argv[0] = NULL; |
fake_argv[1] = strdup("--trace-hydrogen-file=hydrogen.cfg"); |
+ fake_argv[2] = strdup("--redirect-code-traces-to=code.asm"); |
v8::V8::SetFlagsFromCommandLine(&fake_argc, fake_argv, false); |
free(fake_argv[1]); |
delete[] fake_argv; |
@@ -1657,6 +1658,7 @@ int Shell::Main(int argc, char* argv[]) { |
v8::V8::InitializeICU(); |
#ifndef V8_SHARED |
i::FLAG_trace_hydrogen_file = "hydrogen.cfg"; |
+ i::FLAG_redirect_code_traces_to = "code.asm"; |
#else |
SetStandaloneFlagsViaCommandLine(); |
#endif |