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

Unified Diff: runtime/vm/assembler.cc

Issue 8853002: Fix win32 build. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler.cc
===================================================================
--- runtime/vm/assembler.cc (revision 2206)
+++ runtime/vm/assembler.cc (working copy)
@@ -6,6 +6,7 @@
#include "vm/cpu.h"
#include "vm/heap.h"
#include "vm/memory_region.h"
+#include "vm/os.h"
#include "vm/utils.h"
#include "vm/zone.h"
@@ -154,27 +155,27 @@
// Shared macros are implemented here.
void Assembler::Unimplemented(const char* message) {
const char* format = "Unimplemented: %s";
- const intptr_t len = snprintf(NULL, 0, format, message);
+ const intptr_t len = OS::SNPrint(NULL, 0, format, message);
char* buffer = reinterpret_cast<char*>(malloc(len + 1));
- snprintf(buffer, len + 1, format, message);
+ OS::SNPrint(buffer, len + 1, format, message);
Stop(buffer);
}
void Assembler::Untested(const char* message) {
const char* format = "Untested: %s";
- const intptr_t len = snprintf(NULL, 0, format, message);
+ const intptr_t len = OS::SNPrint(NULL, 0, format, message);
char* buffer = reinterpret_cast<char*>(malloc(len + 1));
- snprintf(buffer, len + 1, format, message);
+ OS::SNPrint(buffer, len + 1, format, message);
Stop(buffer);
}
void Assembler::Unreachable(const char* message) {
const char* format = "Unreachable: %s";
- const intptr_t len = snprintf(NULL, 0, format, message);
+ const intptr_t len = OS::SNPrint(NULL, 0, format, message);
char* buffer = reinterpret_cast<char*>(malloc(len + 1));
- snprintf(buffer, len + 1, format, message);
+ OS::SNPrint(buffer, len + 1, format, message);
Stop(buffer);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698