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

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

Issue 71693003: Rename mixin typedef to mixin application alias in VM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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') | runtime/vm/parser.h » ('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 2595 matching lines...) Expand 10 before | Expand all | Expand 10 after
2606 void Class::set_is_synthesized_class() const { 2606 void Class::set_is_synthesized_class() const {
2607 set_state_bits(SynthesizedClassBit::update(true, raw_ptr()->state_bits_)); 2607 set_state_bits(SynthesizedClassBit::update(true, raw_ptr()->state_bits_));
2608 } 2608 }
2609 2609
2610 2610
2611 void Class::set_is_const() const { 2611 void Class::set_is_const() const {
2612 set_state_bits(ConstBit::update(true, raw_ptr()->state_bits_)); 2612 set_state_bits(ConstBit::update(true, raw_ptr()->state_bits_));
2613 } 2613 }
2614 2614
2615 2615
2616 void Class::set_is_mixin_typedef() const { 2616 void Class::set_is_mixin_app_alias() const {
2617 set_state_bits(MixinTypedefBit::update(true, raw_ptr()->state_bits_)); 2617 set_state_bits(MixinAppAliasBit::update(true, raw_ptr()->state_bits_));
2618 } 2618 }
2619 2619
2620 2620
2621 void Class::set_is_mixin_type_applied() const { 2621 void Class::set_is_mixin_type_applied() const {
2622 set_state_bits(MixinTypeAppliedBit::update(true, raw_ptr()->state_bits_)); 2622 set_state_bits(MixinTypeAppliedBit::update(true, raw_ptr()->state_bits_));
2623 } 2623 }
2624 2624
2625 2625
2626 void Class::set_is_finalized() const { 2626 void Class::set_is_finalized() const {
2627 ASSERT(!is_finalized()); 2627 ASSERT(!is_finalized());
(...skipping 30 matching lines...) Expand all
2658 ASSERT(!value.IsNull()); 2658 ASSERT(!value.IsNull());
2659 StorePointer(&raw_ptr()->mixin_, value.raw()); 2659 StorePointer(&raw_ptr()->mixin_, value.raw());
2660 } 2660 }
2661 2661
2662 2662
2663 bool Class::IsMixinApplication() const { 2663 bool Class::IsMixinApplication() const {
2664 return mixin() != Type::null(); 2664 return mixin() != Type::null();
2665 } 2665 }
2666 2666
2667 bool Class::IsAnonymousMixinApplication() const { 2667 bool Class::IsAnonymousMixinApplication() const {
2668 return IsMixinApplication() && !is_mixin_typedef(); 2668 return IsMixinApplication() && !is_mixin_app_alias();
2669 } 2669 }
2670 2670
2671 void Class::set_patch_class(const Class& cls) const { 2671 void Class::set_patch_class(const Class& cls) const {
2672 ASSERT(patch_class() == Class::null()); 2672 ASSERT(patch_class() == Class::null());
2673 StorePointer(&raw_ptr()->patch_class_, cls.raw()); 2673 StorePointer(&raw_ptr()->patch_class_, cls.raw());
2674 } 2674 }
2675 2675
2676 2676
2677 void Class::AddDirectSubclass(const Class& subclass) const { 2677 void Class::AddDirectSubclass(const Class& subclass) const {
2678 ASSERT(!subclass.IsNull()); 2678 ASSERT(!subclass.IsNull());
(...skipping 13110 matching lines...) Expand 10 before | Expand all | Expand 10 after
15789 return "_MirrorReference"; 15789 return "_MirrorReference";
15790 } 15790 }
15791 15791
15792 15792
15793 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { 15793 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const {
15794 JSONObject jsobj(stream); 15794 JSONObject jsobj(stream);
15795 } 15795 }
15796 15796
15797 15797
15798 } // namespace dart 15798 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698