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

Unified Diff: runtime/vm/assembler.cc

Issue 8818001: Add 64-bit stubs to call into the runtime and to call native functions. (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 | runtime/vm/assembler_ia32.h » ('j') | 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 2205)
+++ runtime/vm/assembler.cc (working copy)
@@ -153,17 +153,29 @@
// Shared macros are implemented here.
void Assembler::Unimplemented(const char* message) {
- Stop("unimplemented");
+ const char* format = "Unimplemented: %s";
+ const intptr_t len = snprintf(NULL, 0, format, message);
+ char* buffer = reinterpret_cast<char*>(malloc(len + 1));
+ snprintf(buffer, len + 1, format, message);
+ Stop(buffer);
}
void Assembler::Untested(const char* message) {
- Stop("untested");
+ const char* format = "Untested: %s";
+ const intptr_t len = snprintf(NULL, 0, format, message);
+ char* buffer = reinterpret_cast<char*>(malloc(len + 1));
+ snprintf(buffer, len + 1, format, message);
+ Stop(buffer);
}
void Assembler::Unreachable(const char* message) {
- Stop("unreachable");
+ const char* format = "Unreachable: %s";
+ const intptr_t len = snprintf(NULL, 0, format, message);
+ char* buffer = reinterpret_cast<char*>(malloc(len + 1));
+ snprintf(buffer, len + 1, format, message);
+ Stop(buffer);
}
} // namespace dart
« no previous file with comments | « no previous file | runtime/vm/assembler_ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698