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

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

Issue 1138083003: - Add --trace-loading to trace resolution and loading. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/bin/vmservice_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 Builtin::SetNativeResolver(Builtin::kIOLibrary); 60 Builtin::SetNativeResolver(Builtin::kIOLibrary);
61 61
62 Dart_Handle builtin_lib = 62 Dart_Handle builtin_lib =
63 Builtin::LoadAndCheckLibrary(Builtin::kBuiltinLibrary); 63 Builtin::LoadAndCheckLibrary(Builtin::kBuiltinLibrary);
64 CHECK_RESULT(builtin_lib); 64 CHECK_RESULT(builtin_lib);
65 65
66 Dart_Handle result; 66 Dart_Handle result;
67 67
68 // Prepare for script loading by setting up the 'print' and 'timer' 68 // Prepare for script loading by setting up the 'print' and 'timer'
69 // closures and setting up 'package root' for URI resolution. 69 // closures and setting up 'package root' for URI resolution.
70 result = DartUtils::PrepareForScriptLoading(NULL, true, builtin_lib); 70 result = DartUtils::PrepareForScriptLoading(NULL, true, false, builtin_lib);
71 CHECK_RESULT(result); 71 CHECK_RESULT(result);
72 72
73 ASSERT(Dart_IsServiceIsolate(isolate)); 73 ASSERT(Dart_IsServiceIsolate(isolate));
74 if (!VmService::Setup(DEFAULT_VM_SERVICE_SERVER_IP, 74 if (!VmService::Setup(DEFAULT_VM_SERVICE_SERVER_IP,
75 DEFAULT_VM_SERVICE_SERVER_PORT)) { 75 DEFAULT_VM_SERVICE_SERVER_PORT)) {
76 fprintf(stderr, 76 fprintf(stderr,
77 "Vmservice::Setup failed: %s\n", VmService::GetErrorMessage()); 77 "Vmservice::Setup failed: %s\n", VmService::GetErrorMessage());
78 isolate = NULL; 78 isolate = NULL;
79 } 79 }
80 Dart_ExitScope(); 80 Dart_ExitScope();
(...skipping 13 matching lines...) Expand all
94 94
95 95
96 /* DISALLOW_ALLOCATION */ 96 /* DISALLOW_ALLOCATION */
97 void VmServiceServer::operator delete(void* pointer) { 97 void VmServiceServer::operator delete(void* pointer) {
98 fprintf(stderr, "unreachable code\n"); 98 fprintf(stderr, "unreachable code\n");
99 abort(); 99 abort();
100 } 100 }
101 101
102 } // namespace bin 102 } // namespace bin
103 } // namespace dart 103 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/bin/vmservice_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698