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

Unified Diff: runtime/vm/assembler.cc

Issue 1331623002: Uses SNPRINT macro where possible. Otherwise uses #define for format. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 months 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 | runtime/vm/assembler_arm.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler.cc
diff --git a/runtime/vm/assembler.cc b/runtime/vm/assembler.cc
index 489f09040ded130cb94e424b5a49e74d547b0b8d..a75bc22eae92aea00607f62a510cbf6e1bac6a85 100644
--- a/runtime/vm/assembler.cc
+++ b/runtime/vm/assembler.cc
@@ -181,34 +181,6 @@ void AssemblerBuffer::EmitObject(const Object& object) {
}
-// Shared macros are implemented here.
zra 2015/09/08 21:09:24 These weren't used, and have a memory leak.
-void Assembler::Unimplemented(const char* message) {
- const char* format = "Unimplemented: %s";
- const intptr_t len = OS::SNPrint(NULL, 0, format, message);
- char* buffer = reinterpret_cast<char*>(malloc(len + 1));
- OS::SNPrint(buffer, len + 1, format, message);
- Stop(buffer);
-}
-
-
-void Assembler::Untested(const char* message) {
- const char* format = "Untested: %s";
- const intptr_t len = OS::SNPrint(NULL, 0, format, message);
- char* buffer = reinterpret_cast<char*>(malloc(len + 1));
- OS::SNPrint(buffer, len + 1, format, message);
- Stop(buffer);
-}
-
-
-void Assembler::Unreachable(const char* message) {
- const char* format = "Unreachable: %s";
- const intptr_t len = OS::SNPrint(NULL, 0, format, message);
- char* buffer = reinterpret_cast<char*>(malloc(len + 1));
- OS::SNPrint(buffer, len + 1, format, message);
- Stop(buffer);
-}
-
-
void Assembler::Comment(const char* format, ...) {
if (EmittingComments()) {
char buffer[1024];
« no previous file with comments | « no previous file | runtime/vm/assembler_arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698