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

Unified Diff: runtime/vm/assembler_dbc.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/assembler_arm_test.cc ('k') | runtime/vm/assembler_dbc.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_dbc.h
diff --git a/runtime/vm/assembler_dbc.h b/runtime/vm/assembler_dbc.h
index d956f70f22824abbfb2af1a92261f3abff54dfbf..dbe821669f7efbe5667f9e53cbbb59b3168ad097 100644
--- a/runtime/vm/assembler_dbc.h
+++ b/runtime/vm/assembler_dbc.h
@@ -29,7 +29,7 @@ class Address : public ValueObject {
class Label : public ValueObject {
public:
- Label() : position_(0) { }
+ Label() : position_(0) {}
~Label() {
// Assert if label is being destroyed with unresolved branches pending.
@@ -50,9 +50,7 @@ class Label : public ValueObject {
private:
intptr_t position_;
- void Reinitialize() {
- position_ = 0;
- }
+ void Reinitialize() { position_ = 0; }
void BindTo(intptr_t position) {
ASSERT(!IsBound());
@@ -73,12 +71,9 @@ class Label : public ValueObject {
class Assembler : public ValueObject {
public:
- explicit Assembler(bool use_far_branches = false)
- : buffer_(),
- comments_() {
- }
+ explicit Assembler(bool use_far_branches = false) : buffer_(), comments_() {}
- ~Assembler() { }
+ ~Assembler() {}
void Bind(Label* label);
void Jump(Label* label);
@@ -122,20 +117,16 @@ class Assembler : public ValueObject {
static const char* RegisterName(Register reg);
- static const char* FpuRegisterName(FpuRegister reg) {
- return "?";
- }
+ static const char* FpuRegisterName(FpuRegister reg) { return "?"; }
- static uword GetBreakInstructionFiller() {
- return Bytecode::kTrap;
- }
+ static uword GetBreakInstructionFiller() { return Bytecode::kTrap; }
static bool IsSafe(const Object& value) { return true; }
static bool IsSafeSmi(const Object& value) { return false; }
- // Bytecodes.
+// Bytecodes.
-#define DECLARE_EMIT(Name, Signature, Fmt0, Fmt1, Fmt2) \
+#define DECLARE_EMIT(Name, Signature, Fmt0, Fmt1, Fmt2) \
void Name(PARAMS_##Signature);
#define PARAMS_0
@@ -176,7 +167,7 @@ class Assembler : public ValueObject {
class CodeComment : public ZoneAllocated {
public:
CodeComment(intptr_t pc_offset, const String& comment)
- : pc_offset_(pc_offset), comment_(comment) { }
+ : pc_offset_(pc_offset), comment_(comment) {}
intptr_t pc_offset() const { return pc_offset_; }
const String& comment() const { return comment_; }
« no previous file with comments | « runtime/vm/assembler_arm_test.cc ('k') | runtime/vm/assembler_dbc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698