Index: src/snapshot/natives-external.cc |
diff --git a/src/snapshot/natives-external.cc b/src/snapshot/natives-external.cc |
index 59d4be72dd9e42a65b62b90fee0efe57362d11a5..a97b0a74423f4001de8a4db79f41cca04adf5016 100644 |
--- a/src/snapshot/natives-external.cc |
+++ b/src/snapshot/natives-external.cc |
@@ -93,23 +93,17 @@ class NativesStore { |
return Vector<const char>::cast(name); |
} |
- bool ReadNameAndContentPair(SnapshotByteSource* bytes) { |
+ void ReadNameAndContentPair(SnapshotByteSource* bytes) { |
const byte* id; |
- int id_length; |
const byte* source; |
- int source_length; |
- bool success = bytes->GetBlob(&id, &id_length) && |
- bytes->GetBlob(&source, &source_length); |
- if (success) { |
- Vector<const char> id_vector(reinterpret_cast<const char*>(id), |
- id_length); |
- Vector<const char> source_vector( |
- reinterpret_cast<const char*>(source), source_length); |
- native_ids_.Add(id_vector); |
- native_source_.Add(source_vector); |
- native_names_.Add(NameFromId(id, id_length)); |
- } |
- return success; |
+ int id_length = bytes->GetBlob(&id); |
+ int source_length = bytes->GetBlob(&source); |
+ Vector<const char> id_vector(reinterpret_cast<const char*>(id), id_length); |
+ Vector<const char> source_vector(reinterpret_cast<const char*>(source), |
+ source_length); |
+ native_ids_.Add(id_vector); |
+ native_source_.Add(source_vector); |
+ native_names_.Add(NameFromId(id, id_length)); |
} |
List<Vector<const char> > native_ids_; |