Chromium Code Reviews| Index: runtime/vm/bootstrap.cc |
| =================================================================== |
| --- runtime/vm/bootstrap.cc (revision 18843) |
| +++ runtime/vm/bootstrap.cc (working copy) |
| @@ -56,6 +56,13 @@ |
| } |
| +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); |
| +} |
| + |
| + |
| RawScript* Bootstrap::LoadMathScript(bool patch) { |
| const char* url = patch ? "dart:math-patch" : "dart:math"; |
| const char* source = patch ? math_patch_ : math_source_; |
| @@ -70,6 +77,13 @@ |
| } |
| +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::LoadMirrorsScript(bool patch) { |
|
Ivan Posva
2013/02/22 00:39:38
Sorting?
siva
2013/02/22 01:01:19
Fixed teh sort order.
On 2013/02/22 00:39:38, Iva
|
| 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", |