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

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

Issue 11365196: Move JSSyntaxRegExp to core as a private member. This removes the last refrences to dart:coreimpl. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix two pending TODO's. Created 8 years, 1 month 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
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 16 matching lines...) Expand all
27 27
28 28
29 RawScript* Bootstrap::LoadCoreScript(bool patch) { 29 RawScript* Bootstrap::LoadCoreScript(bool patch) {
30 // TODO(iposva): Use proper library name. 30 // TODO(iposva): Use proper library name.
31 const char* url = patch ? "dart:core-patch" : "bootstrap"; 31 const char* url = patch ? "dart:core-patch" : "bootstrap";
32 const char* source = patch ? corelib_patch_ : corelib_source_; 32 const char* source = patch ? corelib_patch_ : corelib_source_;
33 return LoadScript(url, source, patch); 33 return LoadScript(url, source, patch);
34 } 34 }
35 35
36 36
37 RawScript* Bootstrap::LoadCoreImplScript(bool patch) {
38 // TODO(iposva): Use proper library name.
39 const char* url = patch ? "dart:coreimpl-patch" : "bootstrap_impl";
40 const char* source = patch ? corelib_impl_patch_ : corelib_impl_source_;
41 return LoadScript(url, source, patch);
42 }
43
44
45 RawScript* Bootstrap::LoadCollectionScript(bool patch) { 37 RawScript* Bootstrap::LoadCollectionScript(bool patch) {
46 const char* url = patch ? "dart:collection-patch" : "dart:collection"; 38 const char* url = patch ? "dart:collection-patch" : "dart:collection";
47 const char* source = patch ? collection_source_ : collection_source_; 39 const char* source = patch ? collection_source_ : collection_source_;
48 return LoadScript(url, source, patch); 40 return LoadScript(url, source, patch);
49 } 41 }
50 42
51 43
52 RawScript* Bootstrap::LoadMathScript(bool patch) { 44 RawScript* Bootstrap::LoadMathScript(bool patch) {
53 const char* url = patch ? "dart:math-patch" : "dart:math"; 45 const char* url = patch ? "dart:math-patch" : "dart:math";
54 const char* source = patch ? math_patch_ : math_source_; 46 const char* source = patch ? math_patch_ : math_source_;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 const Error& error = Error::Handle(Compiler::Compile(library, script)); 79 const Error& error = Error::Handle(Compiler::Compile(library, script));
88 if (error.IsNull()) { 80 if (error.IsNull()) {
89 library.SetLoaded(); 81 library.SetLoaded();
90 } else { 82 } else {
91 library.SetLoadError(); 83 library.SetLoadError();
92 } 84 }
93 return error.raw(); 85 return error.raw();
94 } 86 }
95 87
96 } // namespace dart 88 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698