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

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

Issue 22292002: Reflection on generics. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address generic equality Created 7 years, 4 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 #include "vm/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 14493 matching lines...) Expand 10 before | Expand all | Expand 10 after
14504 const char* WeakProperty::ToCString() const { 14504 const char* WeakProperty::ToCString() const {
14505 return "_WeakProperty"; 14505 return "_WeakProperty";
14506 } 14506 }
14507 14507
14508 14508
14509 void WeakProperty::PrintToJSONStream(JSONStream* stream, bool ref) const { 14509 void WeakProperty::PrintToJSONStream(JSONStream* stream, bool ref) const {
14510 stream->OpenObject(); 14510 stream->OpenObject();
14511 stream->CloseObject(); 14511 stream->CloseObject();
14512 } 14512 }
14513 14513
14514 RawAbstractType* MirrorReference::GetAbstractTypeReferent() const {
14515 ASSERT(Object::Handle(referent()).IsAbstractType());
14516 return AbstractType::Cast(Object::Handle(referent())).raw();
14517 }
14518
14514 14519
14515 RawClass* MirrorReference::GetClassReferent() const { 14520 RawClass* MirrorReference::GetClassReferent() const {
14516 ASSERT(Object::Handle(referent()).IsClass()); 14521 ASSERT(Object::Handle(referent()).IsClass());
14517 return Class::Cast(Object::Handle(referent())).raw(); 14522 return Class::Cast(Object::Handle(referent())).raw();
14518 } 14523 }
14519 14524
14520 14525
14521 RawField* MirrorReference::GetFieldReferent() const { 14526 RawField* MirrorReference::GetFieldReferent() const {
14522 ASSERT(Object::Handle(referent()).IsField()); 14527 ASSERT(Object::Handle(referent()).IsField());
14523 return Field::Cast(Object::Handle(referent())).raw(); 14528 return Field::Cast(Object::Handle(referent())).raw();
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
14564 } 14569 }
14565 14570
14566 14571
14567 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { 14572 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const {
14568 stream->OpenObject(); 14573 stream->OpenObject();
14569 stream->CloseObject(); 14574 stream->CloseObject();
14570 } 14575 }
14571 14576
14572 14577
14573 } // namespace dart 14578 } // namespace dart
OLDNEW
« runtime/lib/mirrors_impl.dart ('K') | « runtime/vm/object.h ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698