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

Unified Diff: src/serialize.h

Issue 933903002: Version 4.1.0.18 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.1
Patch Set: Created 5 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 | « no previous file | src/version.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/serialize.h
diff --git a/src/serialize.h b/src/serialize.h
index f8290aca467da6aff1c39959eb15338fb082fa96..da750cb3c6dc12bbd776f013c55c935722e0b12a 100644
--- a/src/serialize.h
+++ b/src/serialize.h
@@ -922,9 +922,9 @@ class SerializedCodeData : public SerializedData {
explicit SerializedCodeData(ScriptData* data)
: SerializedData(const_cast<byte*>(data->data()), data->length()) {}
- bool IsSane(String* source);
+ bool IsSane(String* source) const;
- uint32_t SourceHash(String* source) { return source->length(); }
+ static uint32_t SourceHash(String* source) { return source->length(); }
// The data header consists of int-sized entries:
// [0] version hash
@@ -935,6 +935,8 @@ class SerializedCodeData : public SerializedData {
// [5] number of code stub keys
// [6] number of reservation size entries
// [7] payload length
+ // [8] checksum 1
+ // [9] checksum 2
static const int kVersionHashOffset = 0;
static const int kSourceHashOffset = 1;
static const int kCpuFeaturesOffset = 2;
@@ -943,7 +945,9 @@ class SerializedCodeData : public SerializedData {
static const int kReservationsOffset = 5;
static const int kNumCodeStubKeysOffset = 6;
static const int kPayloadLengthOffset = 7;
- static const int kHeaderSize = (kPayloadLengthOffset + 1) * kIntSize;
+ static const int kChecksum1Offset = 8;
+ static const int kChecksum2Offset = 9;
+ static const int kHeaderSize = (kChecksum2Offset + 1) * kIntSize;
};
} } // namespace v8::internal
« no previous file with comments | « no previous file | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698