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

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

Issue 2146063004: Remove failing assert in Function::ClearCode. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | 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 2715 matching lines...) Expand 10 before | Expand all | Expand 10 after
2726 2726
2727 RawArray* ic_data_array() const; 2727 RawArray* ic_data_array() const;
2728 void ClearICDataArray() const; 2728 void ClearICDataArray() const;
2729 2729
2730 // Sets deopt reason in all ICData-s with given deopt_id. 2730 // Sets deopt reason in all ICData-s with given deopt_id.
2731 void SetDeoptReasonForAll(intptr_t deopt_id, ICData::DeoptReasonId reason); 2731 void SetDeoptReasonForAll(intptr_t deopt_id, ICData::DeoptReasonId reason);
2732 2732
2733 void set_modifier(RawFunction::AsyncModifier value) const; 2733 void set_modifier(RawFunction::AsyncModifier value) const;
2734 2734
2735 // 'was_compiled' is true if the function was compiled once in this 2735 // 'was_compiled' is true if the function was compiled once in this
2736 // VM instantiation. It independent from presence of type feedback 2736 // VM instantiation. It is independent from presence of type feedback
2737 // (ic_data_array) and code, whihc may be loaded from a snapshot. 2737 // (ic_data_array) and code, which may be loaded from a snapshot.
2738 void set_was_compiled(bool value) const { 2738 void set_was_compiled(bool value) const {
2739 StoreNonPointer(&raw_ptr()->was_compiled_, value ? 1 : 0); 2739 StoreNonPointer(&raw_ptr()->was_compiled_, value ? 1 : 0);
2740 } 2740 }
2741 bool was_compiled() const { return raw_ptr()->was_compiled_ == 1; } 2741 bool was_compiled() const { return raw_ptr()->was_compiled_ == 1; }
2742 2742
2743 // static: Considered during class-side or top-level resolution rather than 2743 // static: Considered during class-side or top-level resolution rather than
2744 // instance-side resolution. 2744 // instance-side resolution.
2745 // const: Valid target of a const constructor call. 2745 // const: Valid target of a const constructor call.
2746 // abstract: Skipped during instance-side resolution. 2746 // abstract: Skipped during instance-side resolution.
2747 // reflectable: Enumerated by mirrors, invocable by mirrors. False for private 2747 // reflectable: Enumerated by mirrors, invocable by mirrors. False for private
(...skipping 5907 matching lines...) Expand 10 before | Expand all | Expand 10 after
8655 8655
8656 inline void TypeArguments::SetHash(intptr_t value) const { 8656 inline void TypeArguments::SetHash(intptr_t value) const {
8657 // This is only safe because we create a new Smi, which does not cause 8657 // This is only safe because we create a new Smi, which does not cause
8658 // heap allocation. 8658 // heap allocation.
8659 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); 8659 StoreSmi(&raw_ptr()->hash_, Smi::New(value));
8660 } 8660 }
8661 8661
8662 } // namespace dart 8662 } // namespace dart
8663 8663
8664 #endif // VM_OBJECT_H_ 8664 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698