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

Side by Side Diff: runtime/bin/vmservice_dartium.cc

Issue 1162033005: Fix http://dartbug.com/23578: (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update to ToT. Created 5 years, 6 months 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 unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/include/dart_api.h » ('j') | runtime/vm/compiler_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698