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

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

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 #ifndef VM_BOOTSTRAP_H_ 5 #ifndef VM_BOOTSTRAP_H_
6 #define VM_BOOTSTRAP_H_ 6 #define VM_BOOTSTRAP_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 9
10 namespace dart { 10 namespace dart {
11 11
12 // Forward declarations. 12 // Forward declarations.
13 class Library; 13 class Library;
14 class RawError; 14 class RawError;
15 class RawScript; 15 class RawScript;
16 class Script; 16 class Script;
17 17
18 class Bootstrap : public AllStatic { 18 class Bootstrap : public AllStatic {
19 public: 19 public:
20 static RawScript* LoadScript(); 20 static RawScript* LoadScript();
21 static RawScript* LoadImplScript(); 21 static RawScript* LoadImplScript();
22 static RawScript* LoadMathScript();
22 static RawScript* LoadIsolateScript(); 23 static RawScript* LoadIsolateScript();
23 static RawScript* LoadMirrorsScript(); 24 static RawScript* LoadMirrorsScript();
24 static RawError* Compile(const Library& library, const Script& script); 25 static RawError* Compile(const Library& library, const Script& script);
25 static void SetupNativeResolver(); 26 static void SetupNativeResolver();
26 27
27 private: 28 private:
28 static const char corelib_source_[]; 29 static const char corelib_source_[];
29 static const char corelib_impl_source_[]; 30 static const char corelib_impl_source_[];
31 static const char math_source_[];
30 static const char isolate_source_[]; 32 static const char isolate_source_[];
31 static const char mirrors_source_[]; 33 static const char mirrors_source_[];
32 }; 34 };
33 35
34 } // namespace dart 36 } // namespace dart
35 37
36 #endif // VM_BOOTSTRAP_H_ 38 #endif // VM_BOOTSTRAP_H_
OLDNEW
« no previous file with comments | « lib/math/random.dart ('k') | runtime/vm/bootstrap.cc » ('j') | tests/lib/lib.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698