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

Unified Diff: runtime/vm/dart_api_message.cc

Issue 2161853002: Remove dead full snapshot support from the recursive descent serializer. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: . Created 4 years, 5 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 | « no previous file | runtime/vm/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_message.cc
diff --git a/runtime/vm/dart_api_message.cc b/runtime/vm/dart_api_message.cc
index 2d4e759a9e96713246c1f5b25b8e654ffbbbe91c..ed04af0f563a13f959885ccf76090623f3aaebda 100644
--- a/runtime/vm/dart_api_message.cc
+++ b/runtime/vm/dart_api_message.cc
@@ -642,8 +642,6 @@ Dart_CObject* ApiMessageReader::ReadInternalVMObject(intptr_t class_id,
}
case kOneByteStringCid: {
intptr_t len = ReadSmiValue();
- intptr_t hash = ReadSmiValue();
- USE(hash);
uint8_t *latin1 =
reinterpret_cast<uint8_t*>(allocator(len * sizeof(uint8_t)));
intptr_t utf8_len = 0;
@@ -663,8 +661,6 @@ Dart_CObject* ApiMessageReader::ReadInternalVMObject(intptr_t class_id,
}
case kTwoByteStringCid: {
intptr_t len = ReadSmiValue();
- intptr_t hash = ReadSmiValue();
- USE(hash);
uint16_t *utf16 = reinterpret_cast<uint16_t*>(
allocator(len * sizeof(uint16_t)));
intptr_t utf8_len = 0;
@@ -1203,9 +1199,8 @@ bool ApiMessageWriter::WriteCObjectInlined(Dart_CObject* object,
WriteIndexedObject(type == Utf8::kLatin1 ? kOneByteStringCid
: kTwoByteStringCid);
WriteTags(0);
- // Write string length, hash and content
+ // Write string length and content.
WriteSmi(len);
- WriteSmi(0); // TODO(sgjesse): Hash - not written.
if (type == Utf8::kLatin1) {
uint8_t* latin1_str =
reinterpret_cast<uint8_t*>(::malloc(len * sizeof(uint8_t)));
« no previous file with comments | « no previous file | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698