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

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

Issue 14173005: Update dart:mirrors to use Symbol. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Also use _symbol_dev.Symbol.getName in dart2js Created 7 years, 8 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 | « dart/runtime/vm/bootstrap.h ('k') | dart/runtime/vm/object.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 #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"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 RawScript* Bootstrap::LoadCollectionScript(bool patch) { 44 RawScript* Bootstrap::LoadCollectionScript(bool patch) {
45 const char* url = patch ? "dart:collection-patch" : "dart:collection"; 45 const char* url = patch ? "dart:collection-patch" : "dart:collection";
46 const char* source = patch ? collection_patch_ : collection_source_; 46 const char* source = patch ? collection_patch_ : collection_source_;
47 return LoadScript(url, source, patch); 47 return LoadScript(url, source, patch);
48 } 48 }
49 49
50 50
51 RawScript* Bootstrap::LoadCollectionDevScript(bool patch) { 51 RawScript* Bootstrap::LoadCollectionDevScript(bool patch) {
52 const char* url = 52 const char* url =
53 patch ? "dart:_collection-dev-patch" : "dart:_collection-dev"; 53 patch ? "dart:_collection-dev-patch" : "dart:_collection-dev";
54 const char* source = patch ? collection_dev_source_ : collection_dev_source_; 54 const char* source = patch ? collection_dev_patch_ : collection_dev_source_;
55 return LoadScript(url, source, patch); 55 return LoadScript(url, source, patch);
56 } 56 }
57 57
58 58
59 RawScript* Bootstrap::LoadCryptoScript(bool patch) { 59 RawScript* Bootstrap::LoadCryptoScript(bool patch) {
60 const char* url = patch ? "dart:crypto-patch" : "dart:crypto"; 60 const char* url = patch ? "dart:crypto-patch" : "dart:crypto";
61 const char* source = patch ? crypto_source_ : crypto_source_; 61 const char* source = patch ? crypto_source_ : crypto_source_;
62 return LoadScript(url, source, patch); 62 return LoadScript(url, source, patch);
63 } 63 }
64 64
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 const Error& error = Error::Handle(Compiler::Compile(library, script)); 122 const Error& error = Error::Handle(Compiler::Compile(library, script));
123 if (error.IsNull()) { 123 if (error.IsNull()) {
124 library.SetLoaded(); 124 library.SetLoaded();
125 } else { 125 } else {
126 library.SetLoadError(); 126 library.SetLoadError();
127 } 127 }
128 return error.raw(); 128 return error.raw();
129 } 129 }
130 130
131 } // namespace dart 131 } // namespace dart
OLDNEW
« no previous file with comments | « dart/runtime/vm/bootstrap.h ('k') | dart/runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698