Index: runtime/vm/bootstrap.cc |
=================================================================== |
--- runtime/vm/bootstrap.cc (revision 18864) |
+++ runtime/vm/bootstrap.cc (working copy) |
@@ -56,9 +56,9 @@ |
} |
-RawScript* Bootstrap::LoadMathScript(bool patch) { |
- const char* url = patch ? "dart:math-patch" : "dart:math"; |
- const char* source = patch ? math_patch_ : math_source_; |
+RawScript* Bootstrap::LoadCryptoScript(bool patch) { |
+ const char* url = patch ? "dart:crypto-patch" : "dart:crypto"; |
+ const char* source = patch ? crypto_source_ : crypto_source_; |
return LoadScript(url, source, patch); |
} |
@@ -70,6 +70,20 @@ |
} |
+RawScript* Bootstrap::LoadJsonScript(bool patch) { |
+ const char* url = patch ? "dart:json-patch" : "dart:json"; |
+ const char* source = patch ? json_source_ : json_source_; |
+ return LoadScript(url, source, patch); |
+} |
+ |
+ |
+RawScript* Bootstrap::LoadMathScript(bool patch) { |
+ const char* url = patch ? "dart:math-patch" : "dart:math"; |
+ const char* source = patch ? math_patch_ : math_source_; |
+ return LoadScript(url, source, patch); |
+} |
+ |
+ |
RawScript* Bootstrap::LoadMirrorsScript(bool patch) { |
const char* url = patch ? "dart:mirrors-patch" : "dart:mirrors"; |
const char* source = patch ? mirrors_patch_ : mirrors_source_; |
@@ -84,6 +98,20 @@ |
} |
+RawScript* Bootstrap::LoadUriScript(bool patch) { |
+ const char* url = patch ? "dart:uri-patch" : "dart:uri"; |
+ const char* source = patch ? uri_source_ : uri_source_; |
+ return LoadScript(url, source, patch); |
+} |
+ |
+ |
+RawScript* Bootstrap::LoadUtfScript(bool patch) { |
+ const char* url = patch ? "dart:utf-patch" : "dart:utf"; |
+ const char* source = patch ? utf_source_ : utf_source_; |
+ return LoadScript(url, source, patch); |
+} |
+ |
+ |
RawError* Bootstrap::Compile(const Library& library, const Script& script) { |
if (FLAG_print_bootstrap) { |
OS::Print("Bootstrap source '%s':\n%s\n", |