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

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 1538 matching lines...) Expand 10 before | Expand all | Expand 10 after
1549 } 1549 }
1550 1550
1551 void Register() const; 1551 void Register() const;
1552 static RawLibrary* LookupLibrary(const String& url); 1552 static RawLibrary* LookupLibrary(const String& url);
1553 static RawString* CheckForDuplicateDefinition(); 1553 static RawString* CheckForDuplicateDefinition();
1554 static bool IsKeyUsed(intptr_t key); 1554 static bool IsKeyUsed(intptr_t key);
1555 1555
1556 static void InitCoreLibrary(Isolate* isolate); 1556 static void InitCoreLibrary(Isolate* isolate);
1557 static RawLibrary* CoreLibrary(); 1557 static RawLibrary* CoreLibrary();
1558 static RawLibrary* CoreImplLibrary(); 1558 static RawLibrary* CoreImplLibrary();
1559 static void InitNativeFieldsLibrary(Isolate* isolate);
1560 static RawLibrary* NativeFieldsLibrary();
1559 1561
1560 // Eagerly compile all classes and functions in the library. 1562 // Eagerly compile all classes and functions in the library.
1561 static void CompileAll(); 1563 static void CompileAll();
1562 1564
1563 private: 1565 private:
1564 static const int kInitialImportsCapacity = 4; 1566 static const int kInitialImportsCapacity = 4;
1565 static const int kImportsCapacityIncrement = 8; 1567 static const int kImportsCapacityIncrement = 8;
1566 static const int kInitialImportedIntoCapacity = 1; 1568 static const int kInitialImportedIntoCapacity = 1;
1567 static const int kImportedIntoCapacityIncrement = 2; 1569 static const int kImportedIntoCapacityIncrement = 2;
1568 static RawLibrary* New(); 1570 static RawLibrary* New();
(...skipping 1443 matching lines...) Expand 10 before | Expand all | Expand 10 after
3012 } 3014 }
3013 3015
3014 3016
3015 void Context::SetAt(intptr_t index, const Instance& value) const { 3017 void Context::SetAt(intptr_t index, const Instance& value) const {
3016 StorePointer(InstanceAddr(index), value.raw()); 3018 StorePointer(InstanceAddr(index), value.raw());
3017 } 3019 }
3018 3020
3019 } // namespace dart 3021 } // namespace dart
3020 3022
3021 #endif // VM_OBJECT_H_ 3023 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698