OLD | NEW |
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 RUNTIME_VM_OBJECT_H_ | 5 #ifndef RUNTIME_VM_OBJECT_H_ |
6 #define RUNTIME_VM_OBJECT_H_ | 6 #define RUNTIME_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 5642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5653 friend class Closure; | 5653 friend class Closure; |
5654 friend class DeferredObject; | 5654 friend class DeferredObject; |
5655 friend class RegExp; | 5655 friend class RegExp; |
5656 friend class SnapshotWriter; | 5656 friend class SnapshotWriter; |
5657 friend class StubCode; | 5657 friend class StubCode; |
5658 friend class TypedDataView; | 5658 friend class TypedDataView; |
5659 friend class InstanceSerializationCluster; | 5659 friend class InstanceSerializationCluster; |
5660 friend class InstanceDeserializationCluster; | 5660 friend class InstanceDeserializationCluster; |
5661 friend class ClassDeserializationCluster; // vtable | 5661 friend class ClassDeserializationCluster; // vtable |
5662 friend class InstanceMorpher; | 5662 friend class InstanceMorpher; |
| 5663 friend class Obfuscator; // RawGetFieldAtOffset, RawSetFieldAtOffset |
5663 }; | 5664 }; |
5664 | 5665 |
5665 class LibraryPrefix : public Instance { | 5666 class LibraryPrefix : public Instance { |
5666 public: | 5667 public: |
5667 RawString* name() const { return raw_ptr()->name_; } | 5668 RawString* name() const { return raw_ptr()->name_; } |
5668 virtual RawString* DictionaryName() const { return name(); } | 5669 virtual RawString* DictionaryName() const { return name(); } |
5669 | 5670 |
5670 RawArray* imports() const { return raw_ptr()->imports_; } | 5671 RawArray* imports() const { return raw_ptr()->imports_; } |
5671 intptr_t num_imports() const { return raw_ptr()->num_imports_; } | 5672 intptr_t num_imports() const { return raw_ptr()->num_imports_; } |
5672 RawLibrary* importer() const { return raw_ptr()->importer_; } | 5673 RawLibrary* importer() const { return raw_ptr()->importer_; } |
(...skipping 3324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8997 | 8998 |
8998 inline void TypeArguments::SetHash(intptr_t value) const { | 8999 inline void TypeArguments::SetHash(intptr_t value) const { |
8999 // This is only safe because we create a new Smi, which does not cause | 9000 // This is only safe because we create a new Smi, which does not cause |
9000 // heap allocation. | 9001 // heap allocation. |
9001 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 9002 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
9002 } | 9003 } |
9003 | 9004 |
9004 } // namespace dart | 9005 } // namespace dart |
9005 | 9006 |
9006 #endif // RUNTIME_VM_OBJECT_H_ | 9007 #endif // RUNTIME_VM_OBJECT_H_ |
OLD | NEW |