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

Unified Diff: runtime/vm/isolate_test.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/isolate_reload_test.cc ('k') | runtime/vm/jit_optimizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate_test.cc
diff --git a/runtime/vm/isolate_test.cc b/runtime/vm/isolate_test.cc
index 4e39113248baf3453607832aa13aba4dc8fc6ffc..5e71ed7fa95d547429fcbbece69f81f439b42b9b 100644
--- a/runtime/vm/isolate_test.cc
+++ b/runtime/vm/isolate_test.cc
@@ -49,9 +49,8 @@ TEST_CASE(IsolateSpawn) {
Dart_Handle internal_lib = Dart_LookupLibrary(url);
DART_CHECK_VALID(internal_lib);
Dart_Handle print = Dart_GetField(test_lib, NewString("_nullPrintClosure"));
- Dart_Handle result = Dart_SetField(internal_lib,
- NewString("_printClosure"),
- print);
+ Dart_Handle result =
+ Dart_SetField(internal_lib, NewString("_printClosure"), print);
DART_CHECK_VALID(result);
@@ -60,9 +59,8 @@ TEST_CASE(IsolateSpawn) {
DART_CHECK_VALID(url);
Dart_Handle isolate_lib = Dart_LookupLibrary(url);
DART_CHECK_VALID(isolate_lib);
- Dart_Handle schedule_immediate_closure =
- Dart_Invoke(isolate_lib, NewString("_getIsolateScheduleImmediateClosure"),
- 0, NULL);
+ Dart_Handle schedule_immediate_closure = Dart_Invoke(
+ isolate_lib, NewString("_getIsolateScheduleImmediateClosure"), 0, NULL);
Dart_Handle args[1];
args[0] = schedule_immediate_closure;
url = NewString("dart:async");
@@ -90,9 +88,7 @@ class InterruptChecker : public ThreadPool::Task {
static const intptr_t kIterations;
InterruptChecker(Thread* thread, ThreadBarrier* barrier)
- : thread_(thread),
- barrier_(barrier) {
- }
+ : thread_(thread), barrier_(barrier) {}
virtual void Run() {
Thread::EnterIsolateAsHelper(thread_->isolate(), Thread::kUnknownTask);
@@ -104,9 +100,9 @@ class InterruptChecker : public ThreadPool::Task {
do {
limit = AtomicOperations::LoadRelaxed(
reinterpret_cast<uword*>(thread_->stack_limit_address()));
- } while ((limit == thread_->saved_stack_limit_) ||
- (((limit & Thread::kInterruptsMask) &
- Thread::kVMInterrupt) == 0));
+ } while (
+ (limit == thread_->saved_stack_limit_) ||
+ (((limit & Thread::kInterruptsMask) & Thread::kVMInterrupt) == 0));
// Tell main thread that we observed the interrupt.
barrier_->Sync();
}
@@ -157,9 +153,7 @@ TEST_CASE(StackLimitInterrupts) {
class IsolateTestHelper {
public:
- static uword GetStackLimit(Thread* thread) {
- return thread->stack_limit_;
- }
+ static uword GetStackLimit(Thread* thread) { return thread->stack_limit_; }
static uword GetSavedStackLimit(Thread* thread) {
return thread->saved_stack_limit_;
}
« no previous file with comments | « runtime/vm/isolate_reload_test.cc ('k') | runtime/vm/jit_optimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698