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

Side by Side Diff: runtime/vm/dart_api_impl.cc

Issue 529203004: Cleanup resource loading of the VM. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Cleanup. Created 6 years, 3 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/vm/unit_test.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 "include/dart_api.h" 5 #include "include/dart_api.h"
6 #include "include/dart_mirrors_api.h" 6 #include "include/dart_mirrors_api.h"
7 #include "include/dart_native_api.h" 7 #include "include/dart_native_api.h"
8 8
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "vm/bigint_operations.h" 10 #include "vm/bigint_operations.h"
(...skipping 28 matching lines...) Expand all
39 #include "vm/version.h" 39 #include "vm/version.h"
40 40
41 namespace dart { 41 namespace dart {
42 42
43 DECLARE_FLAG(bool, print_class_table); 43 DECLARE_FLAG(bool, print_class_table);
44 DECLARE_FLAG(bool, verify_handles); 44 DECLARE_FLAG(bool, verify_handles);
45 DEFINE_FLAG(bool, check_function_fingerprints, false, 45 DEFINE_FLAG(bool, check_function_fingerprints, false,
46 "Check function fingerprints"); 46 "Check function fingerprints");
47 DEFINE_FLAG(bool, trace_api, false, 47 DEFINE_FLAG(bool, trace_api, false,
48 "Trace invocation of API calls (debug mode only)"); 48 "Trace invocation of API calls (debug mode only)");
49 DEFINE_FLAG(bool, load_async, true, "load source code asynchronously");
50 49
51 ThreadLocalKey Api::api_native_key_ = Thread::kUnsetThreadLocalKey; 50 ThreadLocalKey Api::api_native_key_ = Thread::kUnsetThreadLocalKey;
52 Dart_Handle Api::true_handle_ = NULL; 51 Dart_Handle Api::true_handle_ = NULL;
53 Dart_Handle Api::false_handle_ = NULL; 52 Dart_Handle Api::false_handle_ = NULL;
54 Dart_Handle Api::null_handle_ = NULL; 53 Dart_Handle Api::null_handle_ = NULL;
55 Dart_Handle Api::empty_string_handle_ = NULL; 54 Dart_Handle Api::empty_string_handle_ = NULL;
56 55
57 56
58 const char* CanonicalFunction(const char* func) { 57 const char* CanonicalFunction(const char* func) {
59 if (strncmp(func, "dart::", 6) == 0) { 58 if (strncmp(func, "dart::", 6) == 0) {
(...skipping 5296 matching lines...) Expand 10 before | Expand all | Expand 10 after
5356 5355
5357 5356
5358 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( 5357 DART_EXPORT void Dart_RegisterRootServiceRequestCallback(
5359 const char* name, 5358 const char* name,
5360 Dart_ServiceRequestCallback callback, 5359 Dart_ServiceRequestCallback callback,
5361 void* user_data) { 5360 void* user_data) {
5362 Service::RegisterRootEmbedderCallback(name, callback, user_data); 5361 Service::RegisterRootEmbedderCallback(name, callback, user_data);
5363 } 5362 }
5364 5363
5365 } // namespace dart 5364 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/vm/unit_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698