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

Side by Side Diff: runtime/vm/object.h

Issue 1134773003: Small cid (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 months 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
« no previous file with comments | « runtime/platform/globals.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define 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 4724 matching lines...) Expand 10 before | Expand all | Expand 10 after
4735 friend class TypedDataView; 4735 friend class TypedDataView;
4736 }; 4736 };
4737 4737
4738 4738
4739 class LibraryPrefix : public Instance { 4739 class LibraryPrefix : public Instance {
4740 public: 4740 public:
4741 RawString* name() const { return raw_ptr()->name_; } 4741 RawString* name() const { return raw_ptr()->name_; }
4742 virtual RawString* DictionaryName() const { return name(); } 4742 virtual RawString* DictionaryName() const { return name(); }
4743 4743
4744 RawArray* imports() const { return raw_ptr()->imports_; } 4744 RawArray* imports() const { return raw_ptr()->imports_; }
4745 int32_t num_imports() const { return raw_ptr()->num_imports_; } 4745 intptr_t num_imports() const { return raw_ptr()->num_imports_; }
4746 RawLibrary* importer() const { return raw_ptr()->importer_; } 4746 RawLibrary* importer() const { return raw_ptr()->importer_; }
4747 4747
4748 RawInstance* LoadError() const; 4748 RawInstance* LoadError() const;
4749 4749
4750 bool ContainsLibrary(const Library& library) const; 4750 bool ContainsLibrary(const Library& library) const;
4751 RawLibrary* GetLibrary(int index) const; 4751 RawLibrary* GetLibrary(int index) const;
4752 void AddImport(const Namespace& import) const; 4752 void AddImport(const Namespace& import) const;
4753 RawObject* LookupObject(const String& name) const; 4753 RawObject* LookupObject(const String& name) const;
4754 RawClass* LookupClass(const String& class_name) const; 4754 RawClass* LookupClass(const String& class_name) const;
4755 4755
(...skipping 3016 matching lines...) Expand 10 before | Expand all | Expand 10 after
7772 7772
7773 7773
7774 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7774 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7775 intptr_t index) { 7775 intptr_t index) {
7776 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7776 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7777 } 7777 }
7778 7778
7779 } // namespace dart 7779 } // namespace dart
7780 7780
7781 #endif // VM_OBJECT_H_ 7781 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/platform/globals.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698