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

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

Issue 19780002: Convert MethodMirror.returnType to native calls (and more) (Closed) Base URL: https://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 14208 matching lines...) Expand 10 before | Expand all | Expand 10 after
14219 const char* WeakProperty::ToCString() const { 14219 const char* WeakProperty::ToCString() const {
14220 return "_WeakProperty"; 14220 return "_WeakProperty";
14221 } 14221 }
14222 14222
14223 14223
14224 void WeakProperty::PrintToJSONStream(JSONStream* stream, bool ref) const { 14224 void WeakProperty::PrintToJSONStream(JSONStream* stream, bool ref) const {
14225 stream->OpenObject(); 14225 stream->OpenObject();
14226 stream->CloseObject(); 14226 stream->CloseObject();
14227 } 14227 }
14228 14228
14229
14230 RawFunction* MirrorReference::GetFunctionReferent() const {
14231 ASSERT(Object::Handle(referent()).IsFunction());
14232 return Function::Cast(Object::Handle(referent())).raw();
14233 }
14234
14235
14229 RawMirrorReference* MirrorReference::New(Heap::Space space) { 14236 RawMirrorReference* MirrorReference::New(Heap::Space space) {
14230 ASSERT(Isolate::Current()->object_store()->mirror_reference_class() 14237 ASSERT(Isolate::Current()->object_store()->mirror_reference_class()
14231 != Class::null()); 14238 != Class::null());
14232 RawObject* raw = Object::Allocate(MirrorReference::kClassId, 14239 RawObject* raw = Object::Allocate(MirrorReference::kClassId,
14233 MirrorReference::InstanceSize(), 14240 MirrorReference::InstanceSize(),
14234 space); 14241 space);
14235 return reinterpret_cast<RawMirrorReference*>(raw); 14242 return reinterpret_cast<RawMirrorReference*>(raw);
14236 } 14243 }
14237 14244
14238 14245
14239 const char* MirrorReference::ToCString() const { 14246 const char* MirrorReference::ToCString() const {
14240 return "_MirrorReference"; 14247 return "_MirrorReference";
14241 } 14248 }
14242 14249
14243 14250
14244 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { 14251 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const {
14245 stream->OpenObject(); 14252 stream->OpenObject();
14246 stream->CloseObject(); 14253 stream->CloseObject();
14247 } 14254 }
14248 14255
14249 14256
14250 } // namespace dart 14257 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698