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

Unified Diff: runtime/vm/assembler_ia32.cc

Issue 10458027: Started new compiler for ia32. Getters and setters can be intrinsified within the new compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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
Index: runtime/vm/assembler_ia32.cc
===================================================================
--- runtime/vm/assembler_ia32.cc (revision 8082)
+++ runtime/vm/assembler_ia32.cc (working copy)
@@ -1562,10 +1562,17 @@
}
-void Assembler::Comment(const char* comment) {
+void Assembler::Comment(const char* format, ...) {
if (FLAG_code_comments) {
+ char buffer[1024];
+
+ va_list args;
+ va_start(args, format);
+ OS::VSNPrint(buffer, sizeof(buffer), format, args);
+ va_end(args);
+
comments_.Add(new CodeComment(buffer_.GetPosition(),
- String::Handle(String::New(comment))));
+ String::Handle(String::New(buffer))));
}
}

Powered by Google App Engine
This is Rietveld 408576698