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 1534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1545 } | 1545 } |
1546 | 1546 |
1547 void Register() const; | 1547 void Register() const; |
1548 static RawLibrary* LookupLibrary(const String& url); | 1548 static RawLibrary* LookupLibrary(const String& url); |
1549 static RawString* CheckForDuplicateDefinition(); | 1549 static RawString* CheckForDuplicateDefinition(); |
1550 static bool IsKeyUsed(intptr_t key); | 1550 static bool IsKeyUsed(intptr_t key); |
1551 | 1551 |
1552 static void InitCoreLibrary(Isolate* isolate); | 1552 static void InitCoreLibrary(Isolate* isolate); |
1553 static RawLibrary* CoreLibrary(); | 1553 static RawLibrary* CoreLibrary(); |
1554 static RawLibrary* CoreImplLibrary(); | 1554 static RawLibrary* CoreImplLibrary(); |
| 1555 static void InitNativeFieldsLibrary(Isolate* isolate); |
| 1556 static RawLibrary* NativeFieldsLibrary(); |
1555 | 1557 |
1556 // Eagerly compile all classes and functions in the library. | 1558 // Eagerly compile all classes and functions in the library. |
1557 static void CompileAll(); | 1559 static void CompileAll(); |
1558 | 1560 |
1559 private: | 1561 private: |
1560 static const int kInitialImportsCapacity = 4; | 1562 static const int kInitialImportsCapacity = 4; |
1561 static const int kImportsCapacityIncrement = 8; | 1563 static const int kImportsCapacityIncrement = 8; |
1562 static const int kInitialImportedIntoCapacity = 1; | 1564 static const int kInitialImportedIntoCapacity = 1; |
1563 static const int kImportedIntoCapacityIncrement = 2; | 1565 static const int kImportedIntoCapacityIncrement = 2; |
1564 static RawLibrary* New(); | 1566 static RawLibrary* New(); |
(...skipping 1435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3000 } | 3002 } |
3001 | 3003 |
3002 | 3004 |
3003 void Context::SetAt(intptr_t index, const Instance& value) const { | 3005 void Context::SetAt(intptr_t index, const Instance& value) const { |
3004 StorePointer(InstanceAddr(index), value.raw()); | 3006 StorePointer(InstanceAddr(index), value.raw()); |
3005 } | 3007 } |
3006 | 3008 |
3007 } // namespace dart | 3009 } // namespace dart |
3008 | 3010 |
3009 #endif // VM_OBJECT_H_ | 3011 #endif // VM_OBJECT_H_ |
OLD | NEW |