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

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

Issue 23190003: ClassMirror.mixin (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 7 years, 3 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
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/parser.cc » ('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 2331 matching lines...) Expand 10 before | Expand all | Expand 10 after
2342 void Class::set_is_synthesized_class() const { 2342 void Class::set_is_synthesized_class() const {
2343 set_state_bits(SynthesizedClassBit::update(true, raw_ptr()->state_bits_)); 2343 set_state_bits(SynthesizedClassBit::update(true, raw_ptr()->state_bits_));
2344 } 2344 }
2345 2345
2346 2346
2347 void Class::set_is_const() const { 2347 void Class::set_is_const() const {
2348 set_state_bits(ConstBit::update(true, raw_ptr()->state_bits_)); 2348 set_state_bits(ConstBit::update(true, raw_ptr()->state_bits_));
2349 } 2349 }
2350 2350
2351 2351
2352 void Class::set_is_mixin_typedef() const {
2353 set_state_bits(MixinTypedefBit::update(true, raw_ptr()->state_bits_));
2354 }
2355
2356
2352 void Class::set_is_finalized() const { 2357 void Class::set_is_finalized() const {
2353 ASSERT(!is_finalized()); 2358 ASSERT(!is_finalized());
2354 set_state_bits(StateBits::update(RawClass::kFinalized, 2359 set_state_bits(StateBits::update(RawClass::kFinalized,
2355 raw_ptr()->state_bits_)); 2360 raw_ptr()->state_bits_));
2356 } 2361 }
2357 2362
2358 2363
2359 void Class::set_is_prefinalized() const { 2364 void Class::set_is_prefinalized() const {
2360 ASSERT(!is_finalized()); 2365 ASSERT(!is_finalized());
2361 set_state_bits(StateBits::update(RawClass::kPreFinalized, 2366 set_state_bits(StateBits::update(RawClass::kPreFinalized,
(...skipping 12506 matching lines...) Expand 10 before | Expand all | Expand 10 after
14868 } 14873 }
14869 14874
14870 14875
14871 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { 14876 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const {
14872 stream->OpenObject(); 14877 stream->OpenObject();
14873 stream->CloseObject(); 14878 stream->CloseObject();
14874 } 14879 }
14875 14880
14876 14881
14877 } // namespace dart 14882 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698