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

Unified Diff: runtime/vm/assembler.cc

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.h ('k') | runtime/vm/assembler_arm.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler.cc
diff --git a/runtime/vm/assembler.cc b/runtime/vm/assembler.cc
index 8bb29cab1e46aaa983afd3ca62ff88993cf1d995..4edcedd9fd1d150ce4d46ad90129d0bc438ed0c6 100644
--- a/runtime/vm/assembler.cc
+++ b/runtime/vm/assembler.cc
@@ -13,13 +13,19 @@
namespace dart {
-DEFINE_FLAG(bool, check_code_pointer, false,
+DEFINE_FLAG(bool,
+ check_code_pointer,
+ false,
"Verify instructions offset in code object."
"NOTE: This breaks the profiler.");
-DEFINE_FLAG(bool, code_comments, false,
+DEFINE_FLAG(bool,
+ code_comments,
+ false,
"Include comments into code and disassembly");
#if defined(TARGET_ARCH_ARM) || defined(TARGET_ARCH_MIPS)
-DEFINE_FLAG(bool, use_far_branches, false,
+DEFINE_FLAG(bool,
+ use_far_branches,
+ false,
"Enable far branches for ARM and MIPS");
#endif
@@ -82,8 +88,7 @@ AssemblerBuffer::AssemblerBuffer()
}
-AssemblerBuffer::~AssemblerBuffer() {
-}
+AssemblerBuffer::~AssemblerBuffer() {}
void AssemblerBuffer::ProcessFixups(const MemoryRegion& region) {
@@ -120,8 +125,7 @@ void AssemblerBuffer::ExtendCapacity() {
// Allocate the new data area and copy contents of the old one to it.
uword new_contents = NewContents(new_capacity);
memmove(reinterpret_cast<void*>(new_contents),
- reinterpret_cast<void*>(contents_),
- old_size);
+ reinterpret_cast<void*>(contents_), old_size);
// Compute the relocation delta and switch to the new contents area.
intptr_t delta = new_contents - contents_;
@@ -141,8 +145,7 @@ class PatchCodeWithHandle : public AssemblerFixup {
public:
PatchCodeWithHandle(ZoneGrowableArray<intptr_t>* pointer_offsets,
const Object& object)
- : pointer_offsets_(pointer_offsets), object_(object) {
- }
+ : pointer_offsets_(pointer_offsets), object_(object) {}
void Process(const MemoryRegion& region, intptr_t position) {
// Patch the handle into the code. Once the instructions are installed into
@@ -218,9 +221,9 @@ void Assembler::Comment(const char* format, ...) {
OS::VSNPrint(buffer, sizeof(buffer), format, args);
va_end(args);
- comments_.Add(new CodeComment(buffer_.GetPosition(),
- String::ZoneHandle(String::New(buffer,
- Heap::kOld))));
+ comments_.Add(
+ new CodeComment(buffer_.GetPosition(),
+ String::ZoneHandle(String::New(buffer, Heap::kOld))));
}
}
@@ -304,9 +307,9 @@ intptr_t ObjectPoolWrapper::FindImmediate(uword imm) {
intptr_t ObjectPoolWrapper::FindNativeEntry(const ExternalLabel* label,
Patchability patchable) {
- return FindObject(ObjectPoolWrapperEntry(label->address(),
- ObjectPool::kNativeEntry),
- patchable);
+ return FindObject(
+ ObjectPoolWrapperEntry(label->address(), ObjectPool::kNativeEntry),
+ patchable);
}
« no previous file with comments | « runtime/vm/assembler.h ('k') | runtime/vm/assembler_arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698