| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "bin/vmservice_dartium.h" | 5 #include "bin/vmservice_dartium.h" |
| 6 | 6 |
| 7 #include "bin/builtin.h" | 7 #include "bin/builtin.h" |
| 8 #include "bin/dartutils.h" | 8 #include "bin/dartutils.h" |
| 9 #include "bin/eventhandler.h" | 9 #include "bin/eventhandler.h" |
| 10 #include "bin/platform.h" | 10 #include "bin/platform.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 Thread::InitOnce(); | 36 Thread::InitOnce(); |
| 37 TimerUtils::InitOnce(); | 37 TimerUtils::InitOnce(); |
| 38 EventHandler::Start(); | 38 EventHandler::Start(); |
| 39 } | 39 } |
| 40 | 40 |
| 41 | 41 |
| 42 Dart_Isolate VmServiceServer::CreateIsolate(const uint8_t* snapshot_buffer) { | 42 Dart_Isolate VmServiceServer::CreateIsolate(const uint8_t* snapshot_buffer) { |
| 43 ASSERT(snapshot_buffer != NULL); | 43 ASSERT(snapshot_buffer != NULL); |
| 44 // Create the isolate. | 44 // Create the isolate. |
| 45 IsolateData* isolate_data = | 45 IsolateData* isolate_data = |
| 46 new IsolateData(DART_VM_SERVICE_ISOLATE_NAME, NULL, NULL); | 46 new IsolateData(DART_VM_SERVICE_ISOLATE_NAME, NULL, NULL, NULL); |
| 47 char* error = 0; | 47 char* error = 0; |
| 48 Dart_Isolate isolate = | 48 Dart_Isolate isolate = |
| 49 Dart_CreateIsolate(DART_VM_SERVICE_ISOLATE_NAME, "main", snapshot_buffer, | 49 Dart_CreateIsolate(DART_VM_SERVICE_ISOLATE_NAME, "main", snapshot_buffer, |
| 50 NULL, NULL, isolate_data, &error); | 50 NULL, NULL, isolate_data, &error); |
| 51 if (!isolate) { | 51 if (!isolate) { |
| 52 fprintf(stderr, "Dart_CreateIsolate failed: %s\n", error); | 52 fprintf(stderr, "Dart_CreateIsolate failed: %s\n", error); |
| 53 return 0; | 53 return 0; |
| 54 } | 54 } |
| 55 | 55 |
| 56 Dart_EnterScope(); | 56 Dart_EnterScope(); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 | 140 |
| 141 | 141 |
| 142 /* DISALLOW_ALLOCATION */ | 142 /* DISALLOW_ALLOCATION */ |
| 143 void VmServiceServer::operator delete(void* pointer) { | 143 void VmServiceServer::operator delete(void* pointer) { |
| 144 fprintf(stderr, "unreachable code\n"); | 144 fprintf(stderr, "unreachable code\n"); |
| 145 abort(); | 145 abort(); |
| 146 } | 146 } |
| 147 | 147 |
| 148 } // namespace bin | 148 } // namespace bin |
| 149 } // namespace dart | 149 } // namespace dart |
| OLD | NEW |