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

Unified Diff: runtime/bin/dartutils.cc

Issue 2416973003: Reapply "Use a single file for app snapshots." (Closed)
Patch Set: sync Created 4 years, 2 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/bin/extensions_android.cc » ('j') | runtime/bin/main.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/dartutils.cc
diff --git a/runtime/bin/dartutils.cc b/runtime/bin/dartutils.cc
index 1415cb1750f5946497735fe851ed9c5dbd294969..7a6e869769a840de36295ffe9cdae684639b4f9e 100644
--- a/runtime/bin/dartutils.cc
+++ b/runtime/bin/dartutils.cc
@@ -192,17 +192,6 @@ const char* DartUtils::RemoveScheme(const char* url) {
}
-void* DartUtils::MapExecutable(const char* name, intptr_t* len) {
- File* file = File::Open(name, File::kRead);
- if (file == NULL) {
- return NULL;
- }
- void* addr = file->MapExecutable(len);
- file->Release();
- return addr;
-}
-
-
void* DartUtils::OpenFile(const char* name, bool write) {
File* file = File::Open(name, write ? File::kWriteTruncate : File::kRead);
return reinterpret_cast<void*>(file);
« no previous file with comments | « no previous file | runtime/bin/extensions_android.cc » ('j') | runtime/bin/main.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698