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

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

Issue 21274007: Set local function type as uninstantiated when applicable (fix issue 12127). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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
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 10486 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/parser.cc » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698