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

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

Issue 1316373002: Remove more GrowableObjectArray usage in parser (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
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"
11 #include "vm/json_stream.h" 11 #include "vm/json_stream.h"
12 #include "vm/bitmap.h" 12 #include "vm/bitmap.h"
13 #include "vm/dart.h" 13 #include "vm/dart.h"
14 #include "vm/globals.h" 14 #include "vm/globals.h"
koda 2015/08/27 20:27:53 Include or forward-declare GrowableArray.
srdjan 2015/08/27 20:39:48 included
15 #include "vm/handles.h" 15 #include "vm/handles.h"
16 #include "vm/heap.h" 16 #include "vm/heap.h"
17 #include "vm/isolate.h" 17 #include "vm/isolate.h"
18 #include "vm/method_recognizer.h" 18 #include "vm/method_recognizer.h"
19 #include "vm/os.h" 19 #include "vm/os.h"
20 #include "vm/raw_object.h" 20 #include "vm/raw_object.h"
21 #include "vm/report.h" 21 #include "vm/report.h"
22 #include "vm/scanner.h" 22 #include "vm/scanner.h"
23 #include "vm/tags.h" 23 #include "vm/tags.h"
24 #include "vm/thread.h" 24 #include "vm/thread.h"
(...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1140 } 1140 }
1141 1141
1142 // Check if this is the top level class. 1142 // Check if this is the top level class.
1143 bool IsTopLevel() const; 1143 bool IsTopLevel() const;
1144 1144
1145 bool IsPrivate() const; 1145 bool IsPrivate() const;
1146 1146
1147 RawArray* fields() const { return raw_ptr()->fields_; } 1147 RawArray* fields() const { return raw_ptr()->fields_; }
1148 void SetFields(const Array& value) const; 1148 void SetFields(const Array& value) const;
1149 void AddField(const Field& field) const; 1149 void AddField(const Field& field) const;
1150 void AddFields(const GrowableObjectArray& fields) const; 1150 void AddFields(const GrowableArray<const Field*>& fields) const;
1151 intptr_t FindFieldIndex(const Field& field) const; 1151 intptr_t FindFieldIndex(const Field& field) const;
1152 RawField* FieldFromIndex(intptr_t idx) const; 1152 RawField* FieldFromIndex(intptr_t idx) const;
1153 1153
1154 // Returns an array of all fields of this class and its superclasses indexed 1154 // Returns an array of all fields of this class and its superclasses indexed
1155 // by offset in words. 1155 // by offset in words.
1156 RawArray* OffsetToFieldMap() const; 1156 RawArray* OffsetToFieldMap() const;
1157 1157
1158 // Returns true if non-static fields are defined. 1158 // Returns true if non-static fields are defined.
1159 bool HasInstanceFields() const; 1159 bool HasInstanceFields() const;
1160 1160
(...skipping 6874 matching lines...) Expand 10 before | Expand all | Expand 10 after
8035 8035
8036 8036
8037 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 8037 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
8038 intptr_t index) { 8038 intptr_t index) {
8039 return array.At((index * kEntryLength) + kTargetFunctionIndex); 8039 return array.At((index * kEntryLength) + kTargetFunctionIndex);
8040 } 8040 }
8041 8041
8042 } // namespace dart 8042 } // namespace dart
8043 8043
8044 #endif // VM_OBJECT_H_ 8044 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698