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

Unified Diff: runtime/vm/instructions_x64.h

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month 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/instructions_mips.cc ('k') | runtime/vm/instructions_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/instructions_x64.h
diff --git a/runtime/vm/instructions_x64.h b/runtime/vm/instructions_x64.h
index ba86ee43e1c27455d0f2a0917b3f9f58a4de53d6..56add2e461605434501bc79282acde031f6449f8 100644
--- a/runtime/vm/instructions_x64.h
+++ b/runtime/vm/instructions_x64.h
@@ -27,11 +27,10 @@ intptr_t IndexFromPPLoadDisp8(uword start);
// Template class for all instruction pattern classes.
// P has to specify a static pattern and a pattern length method.
-template<class P> class InstructionPattern : public ValueObject {
+template <class P>
+class InstructionPattern : public ValueObject {
public:
- explicit InstructionPattern(uword pc) : start_(pc) {
- ASSERT(pc != 0);
- }
+ explicit InstructionPattern(uword pc) : start_(pc) { ASSERT(pc != 0); }
// Call to check if the instruction pattern at 'pc' match the instruction.
// 'P::pattern()' returns the expected byte pattern in form of an integer
@@ -71,7 +70,7 @@ class ReturnPattern : public InstructionPattern<ReturnPattern> {
explicit ReturnPattern(uword pc) : InstructionPattern(pc) {}
static const int* pattern() {
- static const int kReturnPattern[kLengthInBytes] = { 0xC3 };
+ static const int kReturnPattern[kLengthInBytes] = {0xC3};
return kReturnPattern;
}
@@ -89,8 +88,8 @@ class ProloguePattern : public InstructionPattern<ProloguePattern> {
explicit ProloguePattern(uword pc) : InstructionPattern(pc) {}
static const int* pattern() {
- static const int kProloguePattern[kLengthInBytes] =
- { 0x55, 0x48, 0x89, 0xe5 };
+ static const int kProloguePattern[kLengthInBytes] = {0x55, 0x48, 0x89,
+ 0xe5};
return kProloguePattern;
}
@@ -102,14 +101,13 @@ class ProloguePattern : public InstructionPattern<ProloguePattern> {
// mov rbp, rsp
-class SetFramePointerPattern :
- public InstructionPattern<SetFramePointerPattern> {
+class SetFramePointerPattern
+ : public InstructionPattern<SetFramePointerPattern> {
public:
explicit SetFramePointerPattern(uword pc) : InstructionPattern(pc) {}
static const int* pattern() {
- static const int kFramePointerPattern[kLengthInBytes] =
- { 0x48, 0x89, 0xe5 };
+ static const int kFramePointerPattern[kLengthInBytes] = {0x48, 0x89, 0xe5};
return kFramePointerPattern;
}
« no previous file with comments | « runtime/vm/instructions_mips.cc ('k') | runtime/vm/instructions_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698