Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Unified Diff: runtime/vm/disassembler_x64.cc

Issue 8760015: Disable x64 disassembler under win32. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/assembler_macros_x64.cc ('k') | runtime/vm/vm_sources.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/disassembler_x64.cc
===================================================================
--- runtime/vm/disassembler_x64.cc (revision 1953)
+++ runtime/vm/disassembler_x64.cc (working copy)
@@ -2,10 +2,12 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+#if !defined(_WIN32) // Disassembler is not yet supported under WIN32.
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#endif
#include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
#if defined(TARGET_ARCH_X64)
@@ -23,6 +25,7 @@
// being disassembled from.
formatter->Print("start: %p end: %p\n", start, end);
+#if !defined(_WIN32) // Disassembler is not yet supported under WIN32.
// Write code block to tmp file.
char tmp[] = "/tmp/codeblock.XXXXXX";
int fd = mkstemp(tmp);
@@ -92,6 +95,7 @@
snprintf(tmp_o, sizeof(tmp_o), "%s.o", tmp);
remove(tmp_o);
#endif
+#endif // !defined(_WIN32)
}
« no previous file with comments | « runtime/vm/assembler_macros_x64.cc ('k') | runtime/vm/vm_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698