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

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

Issue 19512003: Implement VariableMirror creation with non-API code. To break circular initialization, have them fi… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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 14238 matching lines...) Expand 10 before | Expand all | Expand 10 after
14249 stream->CloseObject(); 14249 stream->CloseObject();
14250 } 14250 }
14251 14251
14252 14252
14253 RawClass* MirrorReference::GetClassReferent() const { 14253 RawClass* MirrorReference::GetClassReferent() const {
14254 ASSERT(Object::Handle(referent()).IsClass()); 14254 ASSERT(Object::Handle(referent()).IsClass());
14255 return Class::Cast(Object::Handle(referent())).raw(); 14255 return Class::Cast(Object::Handle(referent())).raw();
14256 } 14256 }
14257 14257
14258 14258
14259 RawField* MirrorReference::GetFieldReferent() const {
14260 ASSERT(Object::Handle(referent()).IsField());
14261 return Field::Cast(Object::Handle(referent())).raw();
14262 }
14263
14264
14259 RawFunction* MirrorReference::GetFunctionReferent() const { 14265 RawFunction* MirrorReference::GetFunctionReferent() const {
14260 ASSERT(Object::Handle(referent()).IsFunction()); 14266 ASSERT(Object::Handle(referent()).IsFunction());
14261 return Function::Cast(Object::Handle(referent())).raw(); 14267 return Function::Cast(Object::Handle(referent())).raw();
14262 } 14268 }
14263 14269
14264 14270
14265 RawLibrary* MirrorReference::GetLibraryReferent() const { 14271 RawLibrary* MirrorReference::GetLibraryReferent() const {
14266 ASSERT(Object::Handle(referent()).IsLibrary()); 14272 ASSERT(Object::Handle(referent()).IsLibrary());
14267 return Library::Cast(Object::Handle(referent())).raw(); 14273 return Library::Cast(Object::Handle(referent())).raw();
14268 } 14274 }
(...skipping 14 matching lines...) Expand all
14283 } 14289 }
14284 14290
14285 14291
14286 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { 14292 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const {
14287 stream->OpenObject(); 14293 stream->OpenObject();
14288 stream->CloseObject(); 14294 stream->CloseObject();
14289 } 14295 }
14290 14296
14291 14297
14292 } // namespace dart 14298 } // namespace dart
OLDNEW
« runtime/lib/mirrors_impl.dart ('K') | « runtime/vm/object.h ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698