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

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

Issue 2001713002: - Removed the kWatchedBit and the associated weak property handling (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Remove residual watched bit. Created 4 years, 7 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
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 22396 matching lines...) Expand 10 before | Expand all | Expand 10 after
22407 "RegExp: pattern=%s flags=%s", str.ToCString(), Flags()); 22407 "RegExp: pattern=%s flags=%s", str.ToCString(), Flags());
22408 } 22408 }
22409 22409
22410 22410
22411 RawWeakProperty* WeakProperty::New(Heap::Space space) { 22411 RawWeakProperty* WeakProperty::New(Heap::Space space) {
22412 ASSERT(Isolate::Current()->object_store()->weak_property_class() 22412 ASSERT(Isolate::Current()->object_store()->weak_property_class()
22413 != Class::null()); 22413 != Class::null());
22414 RawObject* raw = Object::Allocate(WeakProperty::kClassId, 22414 RawObject* raw = Object::Allocate(WeakProperty::kClassId,
22415 WeakProperty::InstanceSize(), 22415 WeakProperty::InstanceSize(),
22416 space); 22416 space);
22417 return reinterpret_cast<RawWeakProperty*>(raw); 22417 RawWeakProperty* result = reinterpret_cast<RawWeakProperty*>(raw);
22418 result->ptr()->next_ = 0; // Init the list to NULL.
22419 return result;
22418 } 22420 }
22419 22421
22420 22422
22421 const char* WeakProperty::ToCString() const { 22423 const char* WeakProperty::ToCString() const {
22422 return "_WeakProperty"; 22424 return "_WeakProperty";
22423 } 22425 }
22424 22426
22425 22427
22426 RawAbstractType* MirrorReference::GetAbstractTypeReferent() const { 22428 RawAbstractType* MirrorReference::GetAbstractTypeReferent() const {
22427 ASSERT(Object::Handle(referent()).IsAbstractType()); 22429 ASSERT(Object::Handle(referent()).IsAbstractType());
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
22610 return UserTag::null(); 22612 return UserTag::null();
22611 } 22613 }
22612 22614
22613 22615
22614 const char* UserTag::ToCString() const { 22616 const char* UserTag::ToCString() const {
22615 const String& tag_label = String::Handle(label()); 22617 const String& tag_label = String::Handle(label());
22616 return tag_label.ToCString(); 22618 return tag_label.ToCString();
22617 } 22619 }
22618 22620
22619 } // namespace dart 22621 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698