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

Side by Side Diff: runtime/bin/dartutils.h

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/builtin.dart ('k') | runtime/bin/dartutils.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #ifndef BIN_DARTUTILS_H_ 5 #ifndef BIN_DARTUTILS_H_
6 #define BIN_DARTUTILS_H_ 6 #define BIN_DARTUTILS_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "include/dart_native_api.h" 9 #include "include/dart_native_api.h"
10 10
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 static bool EntropySource(uint8_t* buffer, intptr_t length); 120 static bool EntropySource(uint8_t* buffer, intptr_t length);
121 static Dart_Handle ReadStringFromFile(const char* filename); 121 static Dart_Handle ReadStringFromFile(const char* filename);
122 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, 122 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag,
123 Dart_Handle library, 123 Dart_Handle library,
124 Dart_Handle url); 124 Dart_Handle url);
125 static Dart_Handle LoadScript(const char* script_uri, 125 static Dart_Handle LoadScript(const char* script_uri,
126 Dart_Handle builtin_lib); 126 Dart_Handle builtin_lib);
127 static void PrepareBuiltinLibrary(Dart_Handle builtin_lib, 127 static void PrepareBuiltinLibrary(Dart_Handle builtin_lib,
128 Dart_Handle internal_lib, 128 Dart_Handle internal_lib,
129 bool is_service_isolate, 129 bool is_service_isolate,
130 bool trace_loading,
130 const char* package_root); 131 const char* package_root);
131 static void PrepareCoreLibrary(Dart_Handle core_lib, 132 static void PrepareCoreLibrary(Dart_Handle core_lib,
132 Dart_Handle builtin_lib, 133 Dart_Handle builtin_lib,
133 bool is_service_isolate); 134 bool is_service_isolate);
134 static void PrepareAsyncLibrary(Dart_Handle async_lib, 135 static void PrepareAsyncLibrary(Dart_Handle async_lib,
135 Dart_Handle isolate_lib); 136 Dart_Handle isolate_lib);
136 static void PrepareIOLibrary(Dart_Handle io_lib); 137 static void PrepareIOLibrary(Dart_Handle io_lib);
137 static void PrepareIsolateLibrary(Dart_Handle isolate_lib); 138 static void PrepareIsolateLibrary(Dart_Handle isolate_lib);
138 static Dart_Handle PrepareForScriptLoading(const char* package_root, 139 static Dart_Handle PrepareForScriptLoading(const char* package_root,
139 bool is_service_isolate, 140 bool is_service_isolate,
141 bool trace_loading,
140 Dart_Handle builtin_lib); 142 Dart_Handle builtin_lib);
141 static void SetupIOLibrary(const char* script_uri); 143 static void SetupIOLibrary(const char* script_uri);
142 144
143 static bool PostNull(Dart_Port port_id); 145 static bool PostNull(Dart_Port port_id);
144 static bool PostInt32(Dart_Port port_id, int32_t value); 146 static bool PostInt32(Dart_Port port_id, int32_t value);
145 static bool PostInt64(Dart_Port port_id, int64_t value); 147 static bool PostInt64(Dart_Port port_id, int64_t value);
146 148
147 static Dart_Handle GetDartType(const char* library_url, 149 static Dart_Handle GetDartType(const char* library_url,
148 const char* class_name); 150 const char* class_name);
149 // Create a new Dart OSError object with the current OS error. 151 // Create a new Dart OSError object with the current OS error.
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 581
580 ~ScopedBlockingCall() { 582 ~ScopedBlockingCall() {
581 Dart_IsolateUnblocked(); 583 Dart_IsolateUnblocked();
582 } 584 }
583 }; 585 };
584 586
585 } // namespace bin 587 } // namespace bin
586 } // namespace dart 588 } // namespace dart
587 589
588 #endif // BIN_DARTUTILS_H_ 590 #endif // BIN_DARTUTILS_H_
OLDNEW
« no previous file with comments | « runtime/bin/builtin.dart ('k') | runtime/bin/dartutils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698