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

Unified Diff: runtime/vm/datastream.h

Issue 2670843006: Encode inlining information in CodeSourceMap and remove inlining interval arrays. (Closed)
Patch Set: . Created 3 years, 10 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/compiler.cc ('k') | runtime/vm/disassembler.cc » ('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 19a33c427dece8b1aa05fb370ef8317b4c6e6e27..3e9a6c0d7e4b9476c3460b3299167905215af4b0 100644
--- a/runtime/vm/datastream.h
+++ b/runtime/vm/datastream.h
@@ -92,12 +92,12 @@ class ReadStream : public ValueObject {
return (end_ - current_);
}
- private:
template <typename T>
T Read() {
return Read<T>(kEndByteMarker);
}
+ private:
int16_t Read16() { return Read16(kEndByteMarker); }
int32_t Read32() { return Read32(kEndByteMarker); }
@@ -390,7 +390,6 @@ class WriteStream : public ValueObject {
VPrint(format, args);
}
- private:
template <typename T>
void Write(T value) {
T v = value;
@@ -401,6 +400,7 @@ class WriteStream : public ValueObject {
WriteByte(static_cast<uint8_t>(v + kEndByteMarker));
}
+ private:
DART_FORCE_INLINE void WriteByte(uint8_t value) {
if (current_ >= end_) {
Resize(1);
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/disassembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698