| OLD | NEW |
| 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 22241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22252 "RegExp: pattern=%s flags=%s", str.ToCString(), Flags()); | 22252 "RegExp: pattern=%s flags=%s", str.ToCString(), Flags()); |
| 22253 } | 22253 } |
| 22254 | 22254 |
| 22255 | 22255 |
| 22256 RawWeakProperty* WeakProperty::New(Heap::Space space) { | 22256 RawWeakProperty* WeakProperty::New(Heap::Space space) { |
| 22257 ASSERT(Isolate::Current()->object_store()->weak_property_class() | 22257 ASSERT(Isolate::Current()->object_store()->weak_property_class() |
| 22258 != Class::null()); | 22258 != Class::null()); |
| 22259 RawObject* raw = Object::Allocate(WeakProperty::kClassId, | 22259 RawObject* raw = Object::Allocate(WeakProperty::kClassId, |
| 22260 WeakProperty::InstanceSize(), | 22260 WeakProperty::InstanceSize(), |
| 22261 space); | 22261 space); |
| 22262 return reinterpret_cast<RawWeakProperty*>(raw); | 22262 RawWeakProperty* result = reinterpret_cast<RawWeakProperty*>(raw); |
| 22263 result->ptr()->next_ = 0; // Init the list to NULL. |
| 22264 return result; |
| 22263 } | 22265 } |
| 22264 | 22266 |
| 22265 | 22267 |
| 22266 const char* WeakProperty::ToCString() const { | 22268 const char* WeakProperty::ToCString() const { |
| 22267 return "_WeakProperty"; | 22269 return "_WeakProperty"; |
| 22268 } | 22270 } |
| 22269 | 22271 |
| 22270 | 22272 |
| 22271 RawAbstractType* MirrorReference::GetAbstractTypeReferent() const { | 22273 RawAbstractType* MirrorReference::GetAbstractTypeReferent() const { |
| 22272 ASSERT(Object::Handle(referent()).IsAbstractType()); | 22274 ASSERT(Object::Handle(referent()).IsAbstractType()); |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22455 return UserTag::null(); | 22457 return UserTag::null(); |
| 22456 } | 22458 } |
| 22457 | 22459 |
| 22458 | 22460 |
| 22459 const char* UserTag::ToCString() const { | 22461 const char* UserTag::ToCString() const { |
| 22460 const String& tag_label = String::Handle(label()); | 22462 const String& tag_label = String::Handle(label()); |
| 22461 return tag_label.ToCString(); | 22463 return tag_label.ToCString(); |
| 22462 } | 22464 } |
| 22463 | 22465 |
| 22464 } // namespace dart | 22466 } // namespace dart |
| OLD | NEW |