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

Side by Side Diff: vm/object.h

Issue 9630003: Use GrowableObjectArray in ic-data. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 9 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 | « vm/compiler.cc ('k') | 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 2179 matching lines...) Expand 10 before | Expand all | Expand 10 after
2190 2190
2191 uword GetDeoptPcAtNodeId(intptr_t node_id) const; 2191 uword GetDeoptPcAtNodeId(intptr_t node_id) const;
2192 2192
2193 // Returns true if there is an object in the code between 'start_offset' 2193 // Returns true if there is an object in the code between 'start_offset'
2194 // (inclusive) and 'end_offset' (exclusive). 2194 // (inclusive) and 'end_offset' (exclusive).
2195 bool ObjectExistInArea(intptr_t start_offest, intptr_t end_offset) const; 2195 bool ObjectExistInArea(intptr_t start_offest, intptr_t end_offset) const;
2196 2196
2197 // Each (*node_ids)[n] has a an extracted ic data array (*arrays)[n]. 2197 // Each (*node_ids)[n] has a an extracted ic data array (*arrays)[n].
2198 void ExtractIcDataArraysAtCalls( 2198 void ExtractIcDataArraysAtCalls(
2199 GrowableArray<intptr_t>* node_ids, 2199 GrowableArray<intptr_t>* node_ids,
2200 GrowableArray<const ICData*>* ic_data_objs) const; 2200 const GrowableObjectArray& ic_data_objs) const;
2201 2201
2202 private: 2202 private:
2203 static const intptr_t kEntrySize = sizeof(int32_t); // NOLINT 2203 static const intptr_t kEntrySize = sizeof(int32_t); // NOLINT
2204 2204
2205 void set_instructions(RawInstructions* instructions) { 2205 void set_instructions(RawInstructions* instructions) {
2206 raw_ptr()->instructions_ = instructions; 2206 raw_ptr()->instructions_ = instructions;
2207 } 2207 }
2208 void set_pointer_offsets_length(intptr_t value) { 2208 void set_pointer_offsets_length(intptr_t value) {
2209 ASSERT(value >= 0); 2209 ASSERT(value >= 0);
2210 raw_ptr()->pointer_offsets_length_ = value; 2210 raw_ptr()->pointer_offsets_length_ = value;
(...skipping 1711 matching lines...) Expand 10 before | Expand all | Expand 10 after
3922 } 3922 }
3923 3923
3924 3924
3925 void Context::SetAt(intptr_t index, const Instance& value) const { 3925 void Context::SetAt(intptr_t index, const Instance& value) const {
3926 StorePointer(InstanceAddr(index), value.raw()); 3926 StorePointer(InstanceAddr(index), value.raw());
3927 } 3927 }
3928 3928
3929 } // namespace dart 3929 } // namespace dart
3930 3930
3931 #endif // VM_OBJECT_H_ 3931 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « vm/compiler.cc ('k') | vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698