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

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

Issue 23872010: Add metadata for type parameters (TypeVariableMirror). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase + TODOs Created 7 years, 3 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
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 2377 matching lines...) Expand 10 before | Expand all | Expand 10 after
2388 RawArray* LoadedScripts() const; 2388 RawArray* LoadedScripts() const;
2389 2389
2390 void AddAnonymousClass(const Class& cls) const; 2390 void AddAnonymousClass(const Class& cls) const;
2391 2391
2392 void AddExport(const Namespace& ns) const; 2392 void AddExport(const Namespace& ns) const;
2393 2393
2394 void AddClassMetadata(const Class& cls, intptr_t token_pos) const; 2394 void AddClassMetadata(const Class& cls, intptr_t token_pos) const;
2395 void AddFieldMetadata(const Field& field, intptr_t token_pos) const; 2395 void AddFieldMetadata(const Field& field, intptr_t token_pos) const;
2396 void AddFunctionMetadata(const Function& func, intptr_t token_pos) const; 2396 void AddFunctionMetadata(const Function& func, intptr_t token_pos) const;
2397 void AddLibraryMetadata(const Class& cls, intptr_t token_pos) const; 2397 void AddLibraryMetadata(const Class& cls, intptr_t token_pos) const;
2398 void AddTypeParameterMetadata(const TypeParameter& param,
2399 intptr_t token_pos) const;
2398 RawObject* GetMetadata(const Object& obj) const; 2400 RawObject* GetMetadata(const Object& obj) const;
2399 2401
2400 intptr_t num_anonymous_classes() const { return raw_ptr()->num_anonymous_; } 2402 intptr_t num_anonymous_classes() const { return raw_ptr()->num_anonymous_; }
2401 RawArray* anonymous_classes() const { return raw_ptr()->anonymous_classes_; } 2403 RawArray* anonymous_classes() const { return raw_ptr()->anonymous_classes_; }
2402 2404
2403 // Library imports. 2405 // Library imports.
2404 void AddImport(const Namespace& ns) const; 2406 void AddImport(const Namespace& ns) const;
2405 intptr_t num_imports() const { return raw_ptr()->num_imports_; } 2407 intptr_t num_imports() const { return raw_ptr()->num_imports_; }
2406 RawNamespace* ImportAt(intptr_t index) const; 2408 RawNamespace* ImportAt(intptr_t index) const;
2407 RawLibrary* ImportLibraryAt(intptr_t index) const; 2409 RawLibrary* ImportLibraryAt(intptr_t index) const;
(...skipping 3750 matching lines...) Expand 10 before | Expand all | Expand 10 after
6158 6160
6159 6161
6160 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6162 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6161 intptr_t index) { 6163 intptr_t index) {
6162 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6164 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6163 } 6165 }
6164 6166
6165 } // namespace dart 6167 } // namespace dart
6166 6168
6167 #endif // VM_OBJECT_H_ 6169 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/lib/mirrors_impl.dart ('k') | runtime/vm/object.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698