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

Side by Side Diff: runtime/vm/object.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) 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 #ifndef VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 1756 matching lines...) Expand 10 before | Expand all | Expand 10 after
1767 1767
1768 RawLibrary* next_registered() const { return raw_ptr()->next_registered_; } 1768 RawLibrary* next_registered() const { return raw_ptr()->next_registered_; }
1769 1769
1770 RawString* DuplicateDefineErrorString(const String& entry_name, 1770 RawString* DuplicateDefineErrorString(const String& entry_name,
1771 const Library& conflicting_lib) const; 1771 const Library& conflicting_lib) const;
1772 static RawLibrary* LookupLibrary(const String& url); 1772 static RawLibrary* LookupLibrary(const String& url);
1773 static RawString* CheckForDuplicateDefinition(); 1773 static RawString* CheckForDuplicateDefinition();
1774 static bool IsKeyUsed(intptr_t key); 1774 static bool IsKeyUsed(intptr_t key);
1775 1775
1776 static void InitCoreLibrary(Isolate* isolate); 1776 static void InitCoreLibrary(Isolate* isolate);
1777 static void InitMathLibrary(Isolate* isolate);
1777 static void InitIsolateLibrary(Isolate* isolate); 1778 static void InitIsolateLibrary(Isolate* isolate);
1778 static void InitMirrorsLibrary(Isolate* isolate); 1779 static void InitMirrorsLibrary(Isolate* isolate);
1779 static RawLibrary* CoreLibrary(); 1780 static RawLibrary* CoreLibrary();
1780 static RawLibrary* CoreImplLibrary(); 1781 static RawLibrary* CoreImplLibrary();
1782 static RawLibrary* MathLibrary();
1781 static RawLibrary* IsolateLibrary(); 1783 static RawLibrary* IsolateLibrary();
1782 static RawLibrary* MirrorsLibrary(); 1784 static RawLibrary* MirrorsLibrary();
1783 static void InitNativeWrappersLibrary(Isolate* isolate); 1785 static void InitNativeWrappersLibrary(Isolate* isolate);
1784 static RawLibrary* NativeWrappersLibrary(); 1786 static RawLibrary* NativeWrappersLibrary();
1785 1787
1786 // Eagerly compile all classes and functions in the library. 1788 // Eagerly compile all classes and functions in the library.
1787 static RawError* CompileAll(); 1789 static RawError* CompileAll();
1788 1790
1789 private: 1791 private:
1790 static const int kInitialImportsCapacity = 4; 1792 static const int kInitialImportsCapacity = 4;
(...skipping 3102 matching lines...) Expand 10 before | Expand all | Expand 10 after
4893 } 4895 }
4894 4896
4895 4897
4896 intptr_t Stackmap::SizeInBits() const { 4898 intptr_t Stackmap::SizeInBits() const {
4897 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); 4899 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte);
4898 } 4900 }
4899 4901
4900 } // namespace dart 4902 } // namespace dart
4901 4903
4902 #endif // VM_OBJECT_H_ 4904 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698