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

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

Issue 32633006: - Name the enum containing the bootstrap library ids. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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 | « no previous file | runtime/vm/object_store.h » ('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 #include "vm/bootstrap.h" 5 #include "vm/bootstrap.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 8
9 #include "vm/bootstrap_natives.h" 9 #include "vm/bootstrap_natives.h"
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
11 #include "vm/dart_api_impl.h" 11 #include "vm/dart_api_impl.h"
12 #include "vm/object.h" 12 #include "vm/object.h"
13 #include "vm/object_store.h" 13 #include "vm/object_store.h"
14 #include "vm/symbols.h" 14 #include "vm/symbols.h"
15 15
16 namespace dart { 16 namespace dart {
17 17
18 #define INIT_LIBRARY(index, name, source, patch) \ 18 #define INIT_LIBRARY(index, name, source, patch) \
19 { index, \ 19 { index, \
20 "dart:"#name, source, \ 20 "dart:"#name, source, \
21 "dart:"#name"-patch", patch } \ 21 "dart:"#name"-patch", patch } \
22 22
23 typedef struct { 23 typedef struct {
24 intptr_t index_; 24 ObjectStore::BootstrapLibraryId index_;
25 const char* uri_; 25 const char* uri_;
26 const char** source_paths_; 26 const char** source_paths_;
27 const char* patch_uri_; 27 const char* patch_uri_;
28 const char** patch_paths_; 28 const char** patch_paths_;
29 } bootstrap_lib_props; 29 } bootstrap_lib_props;
30 30
31 31
32 static bootstrap_lib_props bootstrap_libraries[] = { 32 static bootstrap_lib_props bootstrap_libraries[] = {
33 INIT_LIBRARY(ObjectStore::kCore, 33 INIT_LIBRARY(ObjectStore::kCore,
34 core, 34 core,
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 // Exit the Dart scope. 320 // Exit the Dart scope.
321 Dart_ExitScope(); 321 Dart_ExitScope();
322 322
323 // Restore the library tag handler for the isolate. 323 // Restore the library tag handler for the isolate.
324 isolate->set_library_tag_handler(saved_tag_handler); 324 isolate->set_library_tag_handler(saved_tag_handler);
325 325
326 return error.raw(); 326 return error.raw();
327 } 327 }
328 328
329 } // namespace dart 329 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698