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

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 1764 matching lines...) Expand 10 before | Expand all | Expand 10 after
1775 1775
1776 RawLibrary* next_registered() const { return raw_ptr()->next_registered_; } 1776 RawLibrary* next_registered() const { return raw_ptr()->next_registered_; }
1777 1777
1778 RawString* DuplicateDefineErrorString(const String& entry_name, 1778 RawString* DuplicateDefineErrorString(const String& entry_name,
1779 const Library& conflicting_lib) const; 1779 const Library& conflicting_lib) const;
1780 static RawLibrary* LookupLibrary(const String& url); 1780 static RawLibrary* LookupLibrary(const String& url);
1781 static RawString* CheckForDuplicateDefinition(); 1781 static RawString* CheckForDuplicateDefinition();
1782 static bool IsKeyUsed(intptr_t key); 1782 static bool IsKeyUsed(intptr_t key);
1783 1783
1784 static void InitCoreLibrary(Isolate* isolate); 1784 static void InitCoreLibrary(Isolate* isolate);
1785 static void InitMathLibrary(Isolate* isolate);
1785 static void InitIsolateLibrary(Isolate* isolate); 1786 static void InitIsolateLibrary(Isolate* isolate);
1786 static void InitMirrorsLibrary(Isolate* isolate); 1787 static void InitMirrorsLibrary(Isolate* isolate);
1787 static RawLibrary* CoreLibrary(); 1788 static RawLibrary* CoreLibrary();
1788 static RawLibrary* CoreImplLibrary(); 1789 static RawLibrary* CoreImplLibrary();
1790 static RawLibrary* MathLibrary();
1789 static RawLibrary* IsolateLibrary(); 1791 static RawLibrary* IsolateLibrary();
1790 static RawLibrary* MirrorsLibrary(); 1792 static RawLibrary* MirrorsLibrary();
1791 static void InitNativeWrappersLibrary(Isolate* isolate); 1793 static void InitNativeWrappersLibrary(Isolate* isolate);
1792 static RawLibrary* NativeWrappersLibrary(); 1794 static RawLibrary* NativeWrappersLibrary();
1793 1795
1794 // Eagerly compile all classes and functions in the library. 1796 // Eagerly compile all classes and functions in the library.
1795 static RawError* CompileAll(); 1797 static RawError* CompileAll();
1796 1798
1797 private: 1799 private:
1798 static const int kInitialImportsCapacity = 4; 1800 static const int kInitialImportsCapacity = 4;
(...skipping 3147 matching lines...) Expand 10 before | Expand all | Expand 10 after
4946 } 4948 }
4947 4949
4948 4950
4949 intptr_t Stackmap::SizeInBits() const { 4951 intptr_t Stackmap::SizeInBits() const {
4950 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); 4952 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte);
4951 } 4953 }
4952 4954
4953 } // namespace dart 4955 } // namespace dart
4954 4956
4955 #endif // VM_OBJECT_H_ 4957 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/bootstrap_nocorelib.cc ('k') | runtime/vm/object.cc » ('j') | tests/lib/lib.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698