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

Unified Diff: runtime/vm/instructions_ia32.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_dbc.cc ('k') | runtime/vm/instructions_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/instructions_ia32.h
diff --git a/runtime/vm/instructions_ia32.h b/runtime/vm/instructions_ia32.h
index 4be887f145d15ae90e9441d710766b903fd49d90..d408a5ace735a42ee022321b3899a9eef931a1dc 100644
--- a/runtime/vm/instructions_ia32.h
+++ b/runtime/vm/instructions_ia32.h
@@ -23,11 +23,10 @@ class RawObject;
// 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
@@ -67,9 +66,8 @@ class CallPattern : public InstructionPattern<CallPattern> {
explicit CallPattern(uword pc) : InstructionPattern(pc) {}
uword TargetAddress() const {
ASSERT(this->IsValid());
- return this->start() +
- CallPattern::pattern_length_in_bytes() +
- *reinterpret_cast<uword*>(this->start() + 1);
+ return this->start() + CallPattern::pattern_length_in_bytes() +
+ *reinterpret_cast<uword*>(this->start() + 1);
}
void SetTargetAddress(uword new_target) const {
@@ -97,7 +95,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;
}
static int pattern_length_in_bytes() { return kLengthInBytes; }
@@ -114,7 +112,7 @@ class ProloguePattern : public InstructionPattern<ProloguePattern> {
explicit ProloguePattern(uword pc) : InstructionPattern(pc) {}
static const int* pattern() {
- static const int kProloguePattern[kLengthInBytes] = { 0x55, 0x89, 0xe5 };
+ static const int kProloguePattern[kLengthInBytes] = {0x55, 0x89, 0xe5};
return kProloguePattern;
}
@@ -126,13 +124,13 @@ class ProloguePattern : public InstructionPattern<ProloguePattern> {
// mov ebp, esp
-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] = { 0x89, 0xe5 };
+ static const int kFramePointerPattern[kLengthInBytes] = {0x89, 0xe5};
return kFramePointerPattern;
}
« no previous file with comments | « runtime/vm/instructions_dbc.cc ('k') | runtime/vm/instructions_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698