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

Side by Side Diff: vm/object.h

Issue 8537023: Implement automatic loading of dart:core_native_fields library (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years, 1 month 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_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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698