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

Unified Diff: runtime/vm/regexp_interpreter.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/regexp_ast.cc ('k') | runtime/vm/regexp_parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/regexp_interpreter.cc
diff --git a/runtime/vm/regexp_interpreter.cc b/runtime/vm/regexp_interpreter.cc
index 956d4baea667ba6946a477cf7a2624c5ec15a2cb..27cc976bbe4138d20eb302e52a090cc59482f659 100644
--- a/runtime/vm/regexp_interpreter.cc
+++ b/runtime/vm/regexp_interpreter.cc
@@ -6,12 +6,12 @@
#include "vm/regexp_interpreter.h"
-#include "vm/regexp_bytecodes.h"
-#include "vm/regexp_assembler.h"
#include "vm/object.h"
-#include "vm/unicode.h"
-#include "vm/unibrow.h"
+#include "vm/regexp_assembler.h"
+#include "vm/regexp_bytecodes.h"
#include "vm/unibrow-inl.h"
+#include "vm/unibrow.h"
+#include "vm/unicode.h"
namespace dart {
@@ -70,7 +70,6 @@ bool BackRefMatchesNoCase<uint8_t>(Canonicalize* interp_canonicalize,
return true;
}
-
#ifdef DEBUG
static void TraceInterpreter(const uint8_t* code_base,
const uint8_t* pc,
@@ -103,7 +102,6 @@ static void TraceInterpreter(const uint8_t* code_base,
}
}
-
#define BYTECODE(name) \
case BC_##name: \
TraceInterpreter(code_base, pc, \
@@ -113,19 +111,16 @@ static void TraceInterpreter(const uint8_t* code_base,
#define BYTECODE(name) case BC_##name:
#endif
-
static int32_t Load32Aligned(const uint8_t* pc) {
ASSERT((reinterpret_cast<intptr_t>(pc) & 3) == 0);
return *reinterpret_cast<const int32_t*>(pc);
}
-
static int32_t Load16Aligned(const uint8_t* pc) {
ASSERT((reinterpret_cast<intptr_t>(pc) & 1) == 0);
return *reinterpret_cast<const uint16_t*>(pc);
}
-
// A simple abstraction over the backtracking stack used by the interpreter.
// This backtracking stack does not grow automatically, but it ensures that the
// the memory held by the stack is released or remembered in a cache if the
@@ -148,7 +143,6 @@ class BacktrackStack {
DISALLOW_COPY_AND_ASSIGN(BacktrackStack);
};
-
template <typename Char>
static IrregexpInterpreter::IrregexpResult RawMatch(const uint8_t* code_base,
const String& subject,
@@ -570,7 +564,6 @@ static IrregexpInterpreter::IrregexpResult RawMatch(const uint8_t* code_base,
}
}
-
IrregexpInterpreter::IrregexpResult IrregexpInterpreter::Match(
const TypedData& bytecode,
const String& subject,
« no previous file with comments | « runtime/vm/regexp_ast.cc ('k') | runtime/vm/regexp_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698