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

Unified Diff: runtime/vm/bootstrap.cc

Issue 10389150: - Add a math library. Currently it mostly matches the Math class in dart:core. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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
Index: runtime/vm/bootstrap.cc
===================================================================
--- runtime/vm/bootstrap.cc (revision 7858)
+++ runtime/vm/bootstrap.cc (working copy)
@@ -38,6 +38,16 @@
}
+RawScript* Bootstrap::LoadMathScript() {
+ const String& url = String::Handle(String::New("dart:math", Heap::kOld));
+ const String& src = String::Handle(String::New(math_source_, Heap::kOld));
+
+ const Script& result =
+ Script::Handle(Script::New(url, src, RawScript::kSource));
+ return result.raw();
+}
+
+
RawScript* Bootstrap::LoadIsolateScript() {
const String& url = String::Handle(String::New("dart:isolate", Heap::kOld));
const String& src = String::Handle(String::New(isolate_source_, Heap::kOld));
« no previous file with comments | « runtime/vm/bootstrap.h ('k') | runtime/vm/bootstrap_nocorelib.cc » ('j') | tests/lib/lib.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698