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

Unified Diff: runtime/vm/simulator_mips.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/simulator_dbc.cc ('k') | runtime/vm/simulator_mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/simulator_mips.h
diff --git a/runtime/vm/simulator_mips.h b/runtime/vm/simulator_mips.h
index 89b7273baa84794157b10ba30f7fc3a840decb52..d6b532331691bd6b9c4d12863f8068f07955a0aa 100644
--- a/runtime/vm/simulator_mips.h
+++ b/runtime/vm/simulator_mips.h
@@ -58,9 +58,7 @@ class Simulator {
int64_t get_dregister_bits(DRegister freg) const;
double get_dregister(DRegister freg) const;
- int32_t get_sp() const {
- return get_register(SPREG);
- }
+ int32_t get_sp() const { return get_register(SPREG); }
// Accessor for the pc.
void set_pc(int32_t value) { pc_ = value; }
@@ -88,9 +86,7 @@ class Simulator {
}
}
- bool test_fcsr_bit(uint32_t cc) {
- return fcsr_ & (1 << cc);
- }
+ bool test_fcsr_bit(uint32_t cc) { return fcsr_ & (1 << cc); }
// Accessors to the internal simulator stack base and top.
uword StackBase() const { return reinterpret_cast<uword>(stack_); }
@@ -178,9 +174,7 @@ class Simulator {
int32_t break_instr_;
// Illegal memory access support.
- static bool IsIllegalAddress(uword addr) {
- return addr < 64*1024;
- }
+ static bool IsIllegalAddress(uword addr) { return addr < 64 * 1024; }
void HandleIllegalAccess(uword addr, Instr* instr);
// Read and write memory.
@@ -196,7 +190,7 @@ class Simulator {
inline int8_t ReadB(uword addr);
inline uint8_t ReadBU(uword addr);
inline int16_t ReadH(uword addr, Instr* instr);
- inline uint16_t ReadHU(uword addr, Instr *instr);
+ inline uint16_t ReadHU(uword addr, Instr* instr);
inline intptr_t ReadW(uword addr, Instr* instr);
inline void WriteB(uword addr, uint8_t value);
@@ -238,7 +232,7 @@ class Simulator {
static bool HasExclusiveAccessAndOpen(uword addr);
void DoBranch(Instr* instr, bool taken, bool likely);
- void DoBreak(Instr *instr);
+ void DoBreak(Instr* instr);
void DecodeSpecial(Instr* instr);
void DecodeSpecial2(Instr* instr);
@@ -253,9 +247,7 @@ class Simulator {
bool IsTracingExecution() const;
// Longjmp support for exceptions.
- SimulatorSetjmpBuffer* last_setjmp_buffer() {
- return last_setjmp_buffer_;
- }
+ SimulatorSetjmpBuffer* last_setjmp_buffer() { return last_setjmp_buffer_; }
void set_last_setjmp_buffer(SimulatorSetjmpBuffer* buffer) {
last_setjmp_buffer_ = buffer;
}
« no previous file with comments | « runtime/vm/simulator_dbc.cc ('k') | runtime/vm/simulator_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698