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

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

Issue 10378093: Adding collected type feedback to the IL nodes (only in optimized mode). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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/isolate.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 2204 matching lines...) Expand 10 before | Expand all | Expand 10 after
2215 uword GetPatchCodePc() const; 2215 uword GetPatchCodePc() const;
2216 2216
2217 uword GetDeoptPcAtNodeId(intptr_t node_id) const; 2217 uword GetDeoptPcAtNodeId(intptr_t node_id) const;
2218 uword GetTypeTestAtNodeId(intptr_t node_id) const; 2218 uword GetTypeTestAtNodeId(intptr_t node_id) const;
2219 2219
2220 // Returns true if there is an object in the code between 'start_offset' 2220 // Returns true if there is an object in the code between 'start_offset'
2221 // (inclusive) and 'end_offset' (exclusive). 2221 // (inclusive) and 'end_offset' (exclusive).
2222 bool ObjectExistInArea(intptr_t start_offest, intptr_t end_offset) const; 2222 bool ObjectExistInArea(intptr_t start_offest, intptr_t end_offset) const;
2223 2223
2224 // Each (*node_ids)[n] has a an extracted ic data array (*arrays)[n]. 2224 // Each (*node_ids)[n] has a an extracted ic data array (*arrays)[n].
2225 void ExtractIcDataArraysAtCalls( 2225 // Returns the maximum id found.
2226 intptr_t ExtractIcDataArraysAtCalls(
2226 GrowableArray<intptr_t>* node_ids, 2227 GrowableArray<intptr_t>* node_ids,
2227 const GrowableObjectArray& ic_data_objs) const; 2228 const GrowableObjectArray& ic_data_objs) const;
2228 2229
2229 private: 2230 private:
2230 static const intptr_t kEntrySize = sizeof(int32_t); // NOLINT 2231 static const intptr_t kEntrySize = sizeof(int32_t); // NOLINT
2231 2232
2232 void set_instructions(RawInstructions* instructions) { 2233 void set_instructions(RawInstructions* instructions) {
2233 raw_ptr()->instructions_ = instructions; 2234 raw_ptr()->instructions_ = instructions;
2234 } 2235 }
2235 void set_pointer_offsets_length(intptr_t value) { 2236 void set_pointer_offsets_length(intptr_t value) {
(...skipping 2654 matching lines...) Expand 10 before | Expand all | Expand 10 after
4890 } 4891 }
4891 4892
4892 4893
4893 intptr_t Stackmap::SizeInBits() const { 4894 intptr_t Stackmap::SizeInBits() const {
4894 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); 4895 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte);
4895 } 4896 }
4896 4897
4897 } // namespace dart 4898 } // namespace dart
4898 4899
4899 #endif // VM_OBJECT_H_ 4900 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698