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

Unified Diff: base/files/memory_mapped_file.cc

Issue 1156873002: Load v8 snapshots directly from APK (and store them uncompressed) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v8initializer
Patch Set: Pass FDs & Regions through to child process (Still has formatting errors) Created 5 years, 7 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: base/files/memory_mapped_file.cc
diff --git a/base/files/memory_mapped_file.cc b/base/files/memory_mapped_file.cc
index 891fcffc4cb434b74729657b7981a400729f2e61..1a22bb03df02ede73606bacd402ed52e953a3f16 100644
--- a/base/files/memory_mapped_file.cc
+++ b/base/files/memory_mapped_file.cc
@@ -16,10 +16,11 @@ const MemoryMappedFile::Region MemoryMappedFile::Region::kWholeFile(
MemoryMappedFile::Region::Region(base::LinkerInitialized) : offset(0), size(0) {
}
+MemoryMappedFile::Region::Region() : offset(0), size(0) {
+}
+
MemoryMappedFile::Region::Region(int64 offset, int64 size)
: offset(offset), size(size) {
- DCHECK_GE(offset, 0);
- DCHECK_GT(size, 0);
}
bool MemoryMappedFile::Region::operator==(
« no previous file with comments | « base/files/memory_mapped_file.h ('k') | build/java_apk.gypi » ('j') | gin/v8_initializer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698