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

Unified Diff: runtime/vm/bootstrap.cc

Issue 12318031: Move json, uri, utf and crypto libraries into the VM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/bootstrap.h ('k') | runtime/vm/bootstrap_nocorelib.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
« no previous file with comments | « runtime/vm/bootstrap.h ('k') | runtime/vm/bootstrap_nocorelib.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698