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

Unified Diff: runtime/bin/snapshot_utils.cc

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 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 | « runtime/bin/security_context_win.cc ('k') | runtime/bin/socket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/snapshot_utils.cc
diff --git a/runtime/bin/snapshot_utils.cc b/runtime/bin/snapshot_utils.cc
index e6776ef662e821c617063825ce991834aa65abc0..e6ea9c7ceb9e70177753cdcd9e11c2e1d1676b47 100644
--- a/runtime/bin/snapshot_utils.cc
+++ b/runtime/bin/snapshot_utils.cc
@@ -71,7 +71,6 @@ class MappedAppSnapshot : public AppSnapshot {
MappedMemory* isolate_instructions_mapping_;
};
-
static AppSnapshot* TryReadAppSnapshotBlobs(const char* script_name) {
File* file = File::Open(script_name, File::kRead);
if (file == NULL) {
@@ -154,7 +153,6 @@ static AppSnapshot* TryReadAppSnapshotBlobs(const char* script_name) {
isolate_data_mapping, isolate_instr_mapping);
}
-
#if defined(DART_PRECOMPILED_RUNTIME)
class DylibAppSnapshot : public AppSnapshot {
public:
@@ -189,7 +187,6 @@ class DylibAppSnapshot : public AppSnapshot {
const uint8_t* isolate_snapshot_instructions_;
};
-
static AppSnapshot* TryReadAppSnapshotDynamicLibrary(const char* script_name) {
void* library = Extensions::LoadExtensionLibrary(script_name);
if (library == NULL) {
@@ -228,7 +225,6 @@ static AppSnapshot* TryReadAppSnapshotDynamicLibrary(const char* script_name) {
}
#endif // defined(DART_PRECOMPILED_RUNTIME)
-
AppSnapshot* Snapshot::TryReadAppSnapshot(const char* script_name) {
if (File::GetType(script_name, true) != File::kIsFile) {
// If 'script_name' refers to a pipe, don't read to check for an app
@@ -251,7 +247,6 @@ AppSnapshot* Snapshot::TryReadAppSnapshot(const char* script_name) {
return NULL;
}
-
static void WriteSnapshotFile(const char* filename,
bool write_magic_number,
const uint8_t* buffer,
@@ -274,12 +269,10 @@ static void WriteSnapshotFile(const char* filename,
file->Release();
}
-
static bool WriteInt64(File* file, int64_t size) {
return file->WriteFully(&size, sizeof(size));
}
-
static void WriteAppSnapshot(const char* filename,
uint8_t* vm_data_buffer,
intptr_t vm_data_size,
@@ -332,7 +325,6 @@ static void WriteAppSnapshot(const char* filename,
file->Release();
}
-
void Snapshot::GenerateScript(const char* snapshot_filename) {
// First create a snapshot.
uint8_t* buffer = NULL;
@@ -345,7 +337,6 @@ void Snapshot::GenerateScript(const char* snapshot_filename) {
WriteSnapshotFile(snapshot_filename, true, buffer, size);
}
-
void Snapshot::GenerateAppJIT(const char* snapshot_filename) {
#if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_DBC)
// Snapshots with code are not supported on IA32 or DBC.
@@ -377,7 +368,6 @@ void Snapshot::GenerateAppJIT(const char* snapshot_filename) {
#endif
}
-
void Snapshot::GenerateAppAOTAsBlobs(const char* snapshot_filename) {
uint8_t* vm_data_buffer = NULL;
intptr_t vm_data_size = 0;
@@ -400,7 +390,6 @@ void Snapshot::GenerateAppAOTAsBlobs(const char* snapshot_filename) {
isolate_instructions_buffer, isolate_instructions_size);
}
-
void Snapshot::GenerateAppAOTAsAssembly(const char* snapshot_filename) {
uint8_t* assembly_buffer = NULL;
intptr_t assembly_size = 0;
« no previous file with comments | « runtime/bin/security_context_win.cc ('k') | runtime/bin/socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698