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

Unified Diff: runtime/vm/program_visitor.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/vm/profiler_test.cc ('k') | runtime/vm/random.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/program_visitor.cc
diff --git a/runtime/vm/program_visitor.cc b/runtime/vm/program_visitor.cc
index 61288b545eb23a8dbe73d854093218e71df8c9b1..256c9db84f5d8f233c5d0427f1b7b24000492a1a 100644
--- a/runtime/vm/program_visitor.cc
+++ b/runtime/vm/program_visitor.cc
@@ -5,9 +5,9 @@
#include "vm/program_visitor.h"
#include "vm/deopt_instructions.h"
+#include "vm/hash_map.h"
#include "vm/object.h"
#include "vm/object_store.h"
-#include "vm/hash_map.h"
#include "vm/symbols.h"
namespace dart {
@@ -34,7 +34,6 @@ void ProgramVisitor::VisitClasses(ClassVisitor* visitor) {
}
}
-
void ProgramVisitor::VisitFunctions(FunctionVisitor* visitor) {
Thread* thread = Thread::Current();
Isolate* isolate = thread->isolate();
@@ -95,7 +94,6 @@ void ProgramVisitor::VisitFunctions(FunctionVisitor* visitor) {
}
}
-
void ProgramVisitor::ShareMegamorphicBuckets() {
Thread* thread = Thread::Current();
Isolate* isolate = thread->isolate();
@@ -122,7 +120,6 @@ void ProgramVisitor::ShareMegamorphicBuckets() {
}
}
-
class StackMapKeyValueTrait {
public:
// Typedefs needed for the DirectChainedHashMap template.
@@ -143,7 +140,6 @@ class StackMapKeyValueTrait {
typedef DirectChainedHashMap<StackMapKeyValueTrait> StackMapSet;
-
void ProgramVisitor::DedupStackMaps() {
class DedupStackMapsVisitor : public FunctionVisitor {
public:
@@ -192,7 +188,6 @@ void ProgramVisitor::DedupStackMaps() {
ProgramVisitor::VisitFunctions(&visitor);
}
-
class PcDescriptorsKeyValueTrait {
public:
// Typedefs needed for the DirectChainedHashMap template.
@@ -213,7 +208,6 @@ class PcDescriptorsKeyValueTrait {
typedef DirectChainedHashMap<PcDescriptorsKeyValueTrait> PcDescriptorsSet;
-
void ProgramVisitor::DedupPcDescriptors() {
class DedupPcDescriptorsVisitor : public FunctionVisitor {
public:
@@ -257,7 +251,6 @@ void ProgramVisitor::DedupPcDescriptors() {
ProgramVisitor::VisitFunctions(&visitor);
}
-
class TypedDataKeyValueTrait {
public:
// Typedefs needed for the DirectChainedHashMap template.
@@ -280,7 +273,6 @@ class TypedDataKeyValueTrait {
typedef DirectChainedHashMap<TypedDataKeyValueTrait> TypedDataSet;
-
#if !defined(DART_PRECOMPILED_RUNTIME)
void ProgramVisitor::DedupDeoptEntries() {
class DedupDeoptEntriesVisitor : public FunctionVisitor {
@@ -340,7 +332,6 @@ void ProgramVisitor::DedupDeoptEntries() {
}
#endif // !defined(DART_PRECOMPILED_RUNTIME)
-
class CodeSourceMapKeyValueTrait {
public:
// Typedefs needed for the DirectChainedHashMap template.
@@ -361,7 +352,6 @@ class CodeSourceMapKeyValueTrait {
typedef DirectChainedHashMap<CodeSourceMapKeyValueTrait> CodeSourceMapSet;
-
void ProgramVisitor::DedupCodeSourceMaps() {
class DedupCodeSourceMapsVisitor : public FunctionVisitor {
public:
@@ -405,7 +395,6 @@ void ProgramVisitor::DedupCodeSourceMaps() {
ProgramVisitor::VisitFunctions(&visitor);
}
-
class ArrayKeyValueTrait {
public:
// Typedefs needed for the DirectChainedHashMap template.
@@ -434,7 +423,6 @@ class ArrayKeyValueTrait {
typedef DirectChainedHashMap<ArrayKeyValueTrait> ArraySet;
-
void ProgramVisitor::DedupLists() {
class DedupListsVisitor : public FunctionVisitor {
public:
@@ -532,7 +520,6 @@ void ProgramVisitor::DedupLists() {
ProgramVisitor::VisitFunctions(&visitor);
}
-
class InstructionsKeyValueTrait {
public:
// Typedefs needed for the DirectChainedHashMap template.
@@ -553,7 +540,6 @@ class InstructionsKeyValueTrait {
typedef DirectChainedHashMap<InstructionsKeyValueTrait> InstructionsSet;
-
void ProgramVisitor::DedupInstructions() {
class DedupInstructionsVisitor : public FunctionVisitor {
public:
@@ -598,7 +584,6 @@ void ProgramVisitor::DedupInstructions() {
ProgramVisitor::VisitFunctions(&visitor);
}
-
void ProgramVisitor::Dedup() {
Thread* thread = Thread::Current();
StackZone stack_zone(thread);
« no previous file with comments | « runtime/vm/profiler_test.cc ('k') | runtime/vm/random.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698