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

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: 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
« no previous file with comments | « runtime/vm/object.h ('k') | tests/lib/lib.status » ('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 #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 14501 matching lines...) Expand 10 before | Expand all | Expand 10 after
14512 const char* WeakProperty::ToCString() const { 14512 const char* WeakProperty::ToCString() const {
14513 return "_WeakProperty"; 14513 return "_WeakProperty";
14514 } 14514 }
14515 14515
14516 14516
14517 void WeakProperty::PrintToJSONStream(JSONStream* stream, bool ref) const { 14517 void WeakProperty::PrintToJSONStream(JSONStream* stream, bool ref) const {
14518 stream->OpenObject(); 14518 stream->OpenObject();
14519 stream->CloseObject(); 14519 stream->CloseObject();
14520 } 14520 }
14521 14521
14522 RawAbstractType* MirrorReference::GetAbstractTypeReferent() const {
14523 ASSERT(Object::Handle(referent()).IsAbstractType());
14524 return AbstractType::Cast(Object::Handle(referent())).raw();
14525 }
14526
14522 14527
14523 RawClass* MirrorReference::GetClassReferent() const { 14528 RawClass* MirrorReference::GetClassReferent() const {
14524 ASSERT(Object::Handle(referent()).IsClass()); 14529 ASSERT(Object::Handle(referent()).IsClass());
14525 return Class::Cast(Object::Handle(referent())).raw(); 14530 return Class::Cast(Object::Handle(referent())).raw();
14526 } 14531 }
14527 14532
14528 14533
14529 RawField* MirrorReference::GetFieldReferent() const { 14534 RawField* MirrorReference::GetFieldReferent() const {
14530 ASSERT(Object::Handle(referent()).IsField()); 14535 ASSERT(Object::Handle(referent()).IsField());
14531 return Field::Cast(Object::Handle(referent())).raw(); 14536 return Field::Cast(Object::Handle(referent())).raw();
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
14572 } 14577 }
14573 14578
14574 14579
14575 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { 14580 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const {
14576 stream->OpenObject(); 14581 stream->OpenObject();
14577 stream->CloseObject(); 14582 stream->CloseObject();
14578 } 14583 }
14579 14584
14580 14585
14581 } // namespace dart 14586 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698