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 27 matching lines...) Expand all Loading... |
38 | 38 |
39 | 39 |
40 Dart_Isolate VmServiceServer::CreateIsolate(const uint8_t* snapshot_buffer) { | 40 Dart_Isolate VmServiceServer::CreateIsolate(const uint8_t* snapshot_buffer) { |
41 ASSERT(snapshot_buffer != NULL); | 41 ASSERT(snapshot_buffer != NULL); |
42 // Create the isolate. | 42 // Create the isolate. |
43 char* error = 0; | 43 char* error = 0; |
44 Dart_Isolate isolate = Dart_CreateIsolate(DART_VM_SERVICE_ISOLATE_NAME, | 44 Dart_Isolate isolate = Dart_CreateIsolate(DART_VM_SERVICE_ISOLATE_NAME, |
45 "main", | 45 "main", |
46 snapshot_buffer, | 46 snapshot_buffer, |
47 NULL, | 47 NULL, |
| 48 NULL, |
48 &error); | 49 &error); |
49 if (!isolate) { | 50 if (!isolate) { |
50 fprintf(stderr, "Dart_CreateIsolate failed: %s\n", error); | 51 fprintf(stderr, "Dart_CreateIsolate failed: %s\n", error); |
51 return 0; | 52 return 0; |
52 } | 53 } |
53 | 54 |
54 Dart_EnterScope(); | 55 Dart_EnterScope(); |
55 Builtin::SetNativeResolver(Builtin::kBuiltinLibrary); | 56 Builtin::SetNativeResolver(Builtin::kBuiltinLibrary); |
56 Builtin::SetNativeResolver(Builtin::kIOLibrary); | 57 Builtin::SetNativeResolver(Builtin::kIOLibrary); |
57 | 58 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 91 |
91 | 92 |
92 /* DISALLOW_ALLOCATION */ | 93 /* DISALLOW_ALLOCATION */ |
93 void VmServiceServer::operator delete(void* pointer) { | 94 void VmServiceServer::operator delete(void* pointer) { |
94 fprintf(stderr, "unreachable code\n"); | 95 fprintf(stderr, "unreachable code\n"); |
95 abort(); | 96 abort(); |
96 } | 97 } |
97 | 98 |
98 } // namespace bin | 99 } // namespace bin |
99 } // namespace dart | 100 } // namespace dart |
OLD | NEW |