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

Unified Diff: runtime/vm/dart_api_message.h

Issue 10829444: Avoid trusting the length encoded in the Snapshot if there is an (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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/dart_api_message.h
===================================================================
--- runtime/vm/dart_api_message.h (revision 10993)
+++ runtime/vm/dart_api_message.h (working copy)
@@ -124,12 +124,9 @@
// Writes a message of integers.
void WriteMessage(intptr_t field_count, intptr_t *data);
+ // Writes a message with a single object.
void WriteCMessage(Dart_CObject* object);
- void FinalizeBuffer() {
- BaseWriter::FinalizeBuffer(Snapshot::kMessage);
- }
-
private:
static const intptr_t kDartCObjectTypeBits = 4;
static const intptr_t kDartCObjectTypeMask = (1 << kDartCObjectTypeBits) - 1;

Powered by Google App Engine
This is Rietveld 408576698