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

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

Issue 14426006: Rename dart:typeddata to dart:typed_data. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « runtime/vm/bootstrap.h ('k') | runtime/vm/class_finalizer.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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 86
87 RawScript* Bootstrap::LoadMirrorsScript(bool patch) { 87 RawScript* Bootstrap::LoadMirrorsScript(bool patch) {
88 const char* url = patch ? "dart:mirrors-patch" : "dart:mirrors"; 88 const char* url = patch ? "dart:mirrors-patch" : "dart:mirrors";
89 const char* source = patch ? mirrors_patch_ : mirrors_source_; 89 const char* source = patch ? mirrors_patch_ : mirrors_source_;
90 return LoadScript(url, source, patch); 90 return LoadScript(url, source, patch);
91 } 91 }
92 92
93 93
94 RawScript* Bootstrap::LoadTypedDataScript(bool patch) { 94 RawScript* Bootstrap::LoadTypedDataScript(bool patch) {
95 const char* url = patch ? "dart:typeddata_patch" : "dart:typeddata"; 95 const char* url = patch ? "dart:typed_data_patch" : "dart:typed_data";
96 const char* source = patch ? typeddata_patch_ : typeddata_source_; 96 const char* source = patch ? typed_data_patch_ : typed_data_source_;
97 return LoadScript(url, source, patch); 97 return LoadScript(url, source, patch);
98 } 98 }
99 99
100 100
101 RawScript* Bootstrap::LoadUriScript(bool patch) { 101 RawScript* Bootstrap::LoadUriScript(bool patch) {
102 const char* url = patch ? "dart:uri-patch" : "dart:uri"; 102 const char* url = patch ? "dart:uri-patch" : "dart:uri";
103 const char* source = patch ? uri_source_ : uri_source_; 103 const char* source = patch ? uri_source_ : uri_source_;
104 return LoadScript(url, source, patch); 104 return LoadScript(url, source, patch);
105 } 105 }
106 106
(...skipping 15 matching lines...) Expand all
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 | « runtime/vm/bootstrap.h ('k') | runtime/vm/class_finalizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698