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

Unified Diff: runtime/vm/datastream.h

Issue 2754233002: Revert "DWARF and unwind support for AOT assembly output." (Closed)
Patch Set: Created 3 years, 9 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 | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/dwarf.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/datastream.h
diff --git a/runtime/vm/datastream.h b/runtime/vm/datastream.h
index 5a43bd5917c7f469312eb9ccf149f516a991df4b..3e9a6c0d7e4b9476c3460b3299167905215af4b0 100644
--- a/runtime/vm/datastream.h
+++ b/runtime/vm/datastream.h
@@ -388,29 +388,6 @@ class WriteStream : public ValueObject {
va_list args;
va_start(args, format);
VPrint(format, args);
- va_end(args);
- }
-
- void VPrint(const char* format, va_list args) {
- // Measure.
- va_list measure_args;
- va_copy(measure_args, args);
- intptr_t len = OS::VSNPrint(NULL, 0, format, measure_args);
- va_end(measure_args);
-
- // Alloc.
- if ((end_ - current_) < (len + 1)) {
- Resize(len + 1);
- }
- ASSERT((end_ - current_) >= (len + 1));
-
- // Print.
- va_list print_args;
- va_copy(print_args, args);
- OS::VSNPrint(reinterpret_cast<char*>(current_), len + 1, format,
- print_args);
- va_end(print_args);
- current_ += len; // Not len + 1 to swallow the terminating NUL.
}
template <typename T>
@@ -451,6 +428,28 @@ class WriteStream : public ValueObject {
ASSERT(end_ > *buffer_);
}
+ void VPrint(const char* format, va_list args) {
+ // Measure.
+ va_list measure_args;
+ va_copy(measure_args, args);
+ intptr_t len = OS::VSNPrint(NULL, 0, format, measure_args);
+ va_end(measure_args);
+
+ // Alloc.
+ if ((end_ - current_) < (len + 1)) {
+ Resize(len + 1);
+ }
+ ASSERT((end_ - current_) >= (len + 1));
+
+ // Print.
+ va_list print_args;
+ va_copy(print_args, args);
+ OS::VSNPrint(reinterpret_cast<char*>(current_), len + 1, format,
+ print_args);
+ va_end(print_args);
+ current_ += len; // Not len + 1 to swallow the terminating NUL.
+ }
+
private:
uint8_t** const buffer_;
uint8_t* end_;
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/dwarf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698