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

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

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
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | runtime/vm/parser.cc » ('J')
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 3803 matching lines...) Expand 10 before | Expand all | Expand 10 after
3814 public: 3814 public:
3815 static intptr_t type_class_offset() { 3815 static intptr_t type_class_offset() {
3816 return OFFSET_OF(RawType, type_class_); 3816 return OFFSET_OF(RawType, type_class_);
3817 } 3817 }
3818 virtual bool IsFinalized() const { 3818 virtual bool IsFinalized() const {
3819 return 3819 return
3820 (raw_ptr()->type_state_ == RawType::kFinalizedInstantiated) || 3820 (raw_ptr()->type_state_ == RawType::kFinalizedInstantiated) ||
3821 (raw_ptr()->type_state_ == RawType::kFinalizedUninstantiated); 3821 (raw_ptr()->type_state_ == RawType::kFinalizedUninstantiated);
3822 } 3822 }
3823 void SetIsFinalized() const; 3823 void SetIsFinalized() const;
3824 void ResetIsFinalized() const; // Ignore current state and set again.
3824 virtual bool IsBeingFinalized() const { 3825 virtual bool IsBeingFinalized() const {
3825 return raw_ptr()->type_state_ == RawType::kBeingFinalized; 3826 return raw_ptr()->type_state_ == RawType::kBeingFinalized;
3826 } 3827 }
3827 void set_is_being_finalized() const; 3828 void set_is_being_finalized() const;
3828 virtual bool IsMalformed() const; 3829 virtual bool IsMalformed() const;
3829 virtual RawError* malformed_error() const; 3830 virtual RawError* malformed_error() const;
3830 virtual void set_malformed_error(const Error& value) const; 3831 virtual void set_malformed_error(const Error& value) const;
3831 virtual bool IsResolved() const; // Class and all arguments classes resolved. 3832 virtual bool IsResolved() const; // Class and all arguments classes resolved.
3832 virtual bool HasResolvedTypeClass() const; // Own type class resolved. 3833 virtual bool HasResolvedTypeClass() const; // Own type class resolved.
3833 virtual RawClass* type_class() const; 3834 virtual RawClass* type_class() const;
(...skipping 2199 matching lines...) Expand 10 before | Expand all | Expand 10 after
6033 6034
6034 6035
6035 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6036 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6036 intptr_t index) { 6037 intptr_t index) {
6037 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6038 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6038 } 6039 }
6039 6040
6040 } // namespace dart 6041 } // namespace dart
6041 6042
6042 #endif // VM_OBJECT_H_ 6043 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698