| 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 10486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10497 void Type::SetIsFinalized() const { | 10497 void Type::SetIsFinalized() const { |
| 10498 ASSERT(!IsFinalized()); | 10498 ASSERT(!IsFinalized()); |
| 10499 if (IsInstantiated()) { | 10499 if (IsInstantiated()) { |
| 10500 set_type_state(RawType::kFinalizedInstantiated); | 10500 set_type_state(RawType::kFinalizedInstantiated); |
| 10501 } else { | 10501 } else { |
| 10502 set_type_state(RawType::kFinalizedUninstantiated); | 10502 set_type_state(RawType::kFinalizedUninstantiated); |
| 10503 } | 10503 } |
| 10504 } | 10504 } |
| 10505 | 10505 |
| 10506 | 10506 |
| 10507 void Type::ResetIsFinalized() const { |
| 10508 ASSERT(IsFinalized()); |
| 10509 set_type_state(RawType::kBeingFinalized); |
| 10510 SetIsFinalized(); |
| 10511 } |
| 10512 |
| 10513 |
| 10507 void Type::set_is_being_finalized() const { | 10514 void Type::set_is_being_finalized() const { |
| 10508 ASSERT(!IsFinalized() && !IsBeingFinalized()); | 10515 ASSERT(!IsFinalized() && !IsBeingFinalized()); |
| 10509 set_type_state(RawType::kBeingFinalized); | 10516 set_type_state(RawType::kBeingFinalized); |
| 10510 } | 10517 } |
| 10511 | 10518 |
| 10512 | 10519 |
| 10513 bool Type::IsMalformed() const { | 10520 bool Type::IsMalformed() const { |
| 10514 return raw_ptr()->malformed_error_ != Error::null(); | 10521 return raw_ptr()->malformed_error_ != Error::null(); |
| 10515 } | 10522 } |
| 10516 | 10523 |
| (...skipping 3884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14401 } | 14408 } |
| 14402 | 14409 |
| 14403 | 14410 |
| 14404 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { | 14411 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { |
| 14405 stream->OpenObject(); | 14412 stream->OpenObject(); |
| 14406 stream->CloseObject(); | 14413 stream->CloseObject(); |
| 14407 } | 14414 } |
| 14408 | 14415 |
| 14409 | 14416 |
| 14410 } // namespace dart | 14417 } // namespace dart |
| OLD | NEW |