OLD | NEW |
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_OBJECT_H_ | 5 #ifndef VM_OBJECT_H_ |
6 #define VM_OBJECT_H_ | 6 #define VM_OBJECT_H_ |
7 | 7 |
8 #include "vm/assert.h" | 8 #include "vm/assert.h" |
9 #include "vm/dart.h" | 9 #include "vm/dart.h" |
10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
(...skipping 1551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1562 } | 1562 } |
1563 | 1563 |
1564 void Register() const; | 1564 void Register() const; |
1565 static RawLibrary* LookupLibrary(const String& url); | 1565 static RawLibrary* LookupLibrary(const String& url); |
1566 static RawString* CheckForDuplicateDefinition(); | 1566 static RawString* CheckForDuplicateDefinition(); |
1567 static bool IsKeyUsed(intptr_t key); | 1567 static bool IsKeyUsed(intptr_t key); |
1568 | 1568 |
1569 static void InitCoreLibrary(Isolate* isolate); | 1569 static void InitCoreLibrary(Isolate* isolate); |
1570 static RawLibrary* CoreLibrary(); | 1570 static RawLibrary* CoreLibrary(); |
1571 static RawLibrary* CoreImplLibrary(); | 1571 static RawLibrary* CoreImplLibrary(); |
| 1572 static void InitNativeWrappersLibrary(Isolate* isolate); |
| 1573 static RawLibrary* NativeWrappersLibrary(); |
1572 | 1574 |
1573 // Eagerly compile all classes and functions in the library. | 1575 // Eagerly compile all classes and functions in the library. |
1574 static void CompileAll(); | 1576 static void CompileAll(); |
1575 | 1577 |
1576 private: | 1578 private: |
1577 static const int kInitialImportsCapacity = 4; | 1579 static const int kInitialImportsCapacity = 4; |
1578 static const int kImportsCapacityIncrement = 8; | 1580 static const int kImportsCapacityIncrement = 8; |
1579 static const int kInitialImportedIntoCapacity = 1; | 1581 static const int kInitialImportedIntoCapacity = 1; |
1580 static const int kImportedIntoCapacityIncrement = 2; | 1582 static const int kImportedIntoCapacityIncrement = 2; |
1581 static RawLibrary* New(); | 1583 static RawLibrary* New(); |
(...skipping 1507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3089 } | 3091 } |
3090 | 3092 |
3091 | 3093 |
3092 void Context::SetAt(intptr_t index, const Instance& value) const { | 3094 void Context::SetAt(intptr_t index, const Instance& value) const { |
3093 StorePointer(InstanceAddr(index), value.raw()); | 3095 StorePointer(InstanceAddr(index), value.raw()); |
3094 } | 3096 } |
3095 | 3097 |
3096 } // namespace dart | 3098 } // namespace dart |
3097 | 3099 |
3098 #endif // VM_OBJECT_H_ | 3100 #endif // VM_OBJECT_H_ |
OLD | NEW |