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

Unified Diff: runtime/vm/dart_api_message.cc

Issue 9415043: Port async file operations to be using native ports instead or an isolate (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Implemented all file operations using native ports Created 8 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
Index: runtime/vm/dart_api_message.cc
diff --git a/runtime/vm/dart_api_message.cc b/runtime/vm/dart_api_message.cc
index 9f3bcec9b43e7952cfabb9e12af360cfe4dc2d1e..7f8f62919c5ceb265226fa6c035ba6c355b4354b 100644
--- a/runtime/vm/dart_api_message.cc
+++ b/runtime/vm/dart_api_message.cc
@@ -182,14 +182,17 @@ Dart_CObject* ApiMessageReader::ReadInlinedObject(intptr_t object_id) {
case Object::kTypeArgumentsClass: {
// TODO(sjesse): Remove this when message serialization format is
// updated (currently length is leaked).
- AddBackwardReference(object_id, NULL);
+ Dart_CObject* value = &type_arguments_marker;
+ AddBackwardReference(object_id, value);
Dart_CObject* length = ReadObject();
ASSERT(length->type == Dart_CObject::kInt32);
for (int i = 0; i < length->value.as_int32; i++) {
Dart_CObject* type = ReadObject();
- if (type != &dynamic_type_marker) return NULL;
+ if (type != &dynamic_type_marker) {
+ return NULL;
+ }
}
- return &type_arguments_marker;
+ return value;
}
case ObjectStore::kArrayClass: {
intptr_t len = ReadSmiValue();

Powered by Google App Engine
This is Rietveld 408576698