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

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

Issue 12314132: Fix bad optimization prematurely marking types as instantiated (issue 8710). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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/class_finalizer.cc ('k') | runtime/vm/object.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 #ifndef VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 3485 matching lines...) Expand 10 before | Expand all | Expand 10 after
3496 class Type : public AbstractType { 3496 class Type : public AbstractType {
3497 public: 3497 public:
3498 static intptr_t type_class_offset() { 3498 static intptr_t type_class_offset() {
3499 return OFFSET_OF(RawType, type_class_); 3499 return OFFSET_OF(RawType, type_class_);
3500 } 3500 }
3501 virtual bool IsFinalized() const { 3501 virtual bool IsFinalized() const {
3502 return 3502 return
3503 (raw_ptr()->type_state_ == RawType::kFinalizedInstantiated) || 3503 (raw_ptr()->type_state_ == RawType::kFinalizedInstantiated) ||
3504 (raw_ptr()->type_state_ == RawType::kFinalizedUninstantiated); 3504 (raw_ptr()->type_state_ == RawType::kFinalizedUninstantiated);
3505 } 3505 }
3506 void set_is_finalized_instantiated() const; 3506 void SetIsFinalized() const;
3507 void set_is_finalized_uninstantiated() const;
3508 virtual bool IsBeingFinalized() const { 3507 virtual bool IsBeingFinalized() const {
3509 return raw_ptr()->type_state_ == RawType::kBeingFinalized; 3508 return raw_ptr()->type_state_ == RawType::kBeingFinalized;
3510 } 3509 }
3511 void set_is_being_finalized() const; 3510 void set_is_being_finalized() const;
3512 virtual bool IsMalformed() const; 3511 virtual bool IsMalformed() const;
3513 virtual RawError* malformed_error() const; 3512 virtual RawError* malformed_error() const;
3514 virtual void set_malformed_error(const Error& value) const; 3513 virtual void set_malformed_error(const Error& value) const;
3515 virtual bool IsResolved() const; // Class and all arguments classes resolved. 3514 virtual bool IsResolved() const; // Class and all arguments classes resolved.
3516 virtual bool HasResolvedTypeClass() const; // Own type class resolved. 3515 virtual bool HasResolvedTypeClass() const; // Own type class resolved.
3517 virtual RawClass* type_class() const; 3516 virtual RawClass* type_class() const;
(...skipping 3037 matching lines...) Expand 10 before | Expand all | Expand 10 after
6555 6554
6556 6555
6557 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6556 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6558 intptr_t index) { 6557 intptr_t index) {
6559 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6558 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6560 } 6559 }
6561 6560
6562 } // namespace dart 6561 } // namespace dart
6563 6562
6564 #endif // VM_OBJECT_H_ 6563 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698