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

Unified Diff: runtime/bin/vmservice_dartium.cc

Issue 2480793002: clang-format runtime/bin (Closed)
Patch Set: 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/bin/vmservice_dartium.h ('k') | runtime/bin/vmservice_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmservice_dartium.cc
diff --git a/runtime/bin/vmservice_dartium.cc b/runtime/bin/vmservice_dartium.cc
index e523dad0d09fc9a62646821a4ed001da8386cc2d..613b005c100361621fce92f03c0ec6b9597666e7 100644
--- a/runtime/bin/vmservice_dartium.cc
+++ b/runtime/bin/vmservice_dartium.cc
@@ -22,8 +22,7 @@ namespace bin {
Dart_ExitScope(); \
Dart_ShutdownIsolate(); \
return 0; \
- } \
-
+ }
static const char* DEFAULT_VM_SERVICE_SERVER_IP = "127.0.0.1";
@@ -43,16 +42,12 @@ void VmServiceServer::Bootstrap() {
Dart_Isolate VmServiceServer::CreateIsolate(const uint8_t* snapshot_buffer) {
ASSERT(snapshot_buffer != NULL);
// Create the isolate.
- IsolateData* isolate_data = new IsolateData(DART_VM_SERVICE_ISOLATE_NAME,
- NULL,
- NULL);
+ IsolateData* isolate_data =
+ new IsolateData(DART_VM_SERVICE_ISOLATE_NAME, NULL, NULL);
char* error = 0;
- Dart_Isolate isolate = Dart_CreateIsolate(DART_VM_SERVICE_ISOLATE_NAME,
- "main",
- snapshot_buffer,
- NULL,
- isolate_data,
- &error);
+ Dart_Isolate isolate =
+ Dart_CreateIsolate(DART_VM_SERVICE_ISOLATE_NAME, "main", snapshot_buffer,
+ NULL, isolate_data, &error);
if (!isolate) {
fprintf(stderr, "Dart_CreateIsolate failed: %s\n", error);
return 0;
@@ -63,12 +58,11 @@ Dart_Isolate VmServiceServer::CreateIsolate(const uint8_t* snapshot_buffer) {
Builtin::SetNativeResolver(Builtin::kIOLibrary);
ASSERT(Dart_IsServiceIsolate(isolate));
- if (!VmService::Setup(DEFAULT_VM_SERVICE_SERVER_IP,
- DEFAULT_VM_SERVICE_SERVER_PORT,
- false /* running_precompiled */,
- false /* disable origin checks */)) {
- fprintf(stderr,
- "Vmservice::Setup failed: %s\n", VmService::GetErrorMessage());
+ if (!VmService::Setup(
+ DEFAULT_VM_SERVICE_SERVER_IP, DEFAULT_VM_SERVICE_SERVER_PORT,
+ false /* running_precompiled */, false /* disable origin checks */)) {
+ fprintf(stderr, "Vmservice::Setup failed: %s\n",
+ VmService::GetErrorMessage());
isolate = NULL;
}
Dart_ExitScope();
@@ -146,7 +140,7 @@ void VmServiceServer::DecompressAssets(const uint8_t* input,
/* DISALLOW_ALLOCATION */
-void VmServiceServer::operator delete(void* pointer) {
+void VmServiceServer::operator delete(void* pointer) {
fprintf(stderr, "unreachable code\n");
abort();
}
« no previous file with comments | « runtime/bin/vmservice_dartium.h ('k') | runtime/bin/vmservice_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698