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

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

Issue 8394061: Store IC data instead of array of classes in AST node, so that we can easier access targets and f... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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/ic_data.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 "vm/assert.h" 8 #include "vm/assert.h"
9 #include "vm/dart.h" 9 #include "vm/dart.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 1831 matching lines...) Expand 10 before | Expand all | Expand 10 after
1842 1842
1843 // Find pc of patch code buffer. Return 0 if not found. 1843 // Find pc of patch code buffer. Return 0 if not found.
1844 uword GetPatchCodePc() const; 1844 uword GetPatchCodePc() const;
1845 1845
1846 uword GetDeoptPcAtNodeId(intptr_t node_id) const; 1846 uword GetDeoptPcAtNodeId(intptr_t node_id) const;
1847 1847
1848 // Returns true if there is an object in the code between 'start_offset' 1848 // Returns true if there is an object in the code between 'start_offset'
1849 // (inclusive) and 'end_offset' (exclusive). 1849 // (inclusive) and 'end_offset' (exclusive).
1850 bool ObjectExistInArea(intptr_t start_offest, intptr_t end_offset) const; 1850 bool ObjectExistInArea(intptr_t start_offest, intptr_t end_offset) const;
1851 1851
1852 // For each (*token_indices)[i] an array of types (*types)[i] is defined. 1852 // Each (*node_ids)[n] has a an extracted ic data array (*arrays)[n].
1853 void ExtractTypesAtIcCalls( 1853 void ExtractIcDataArraysAtCalls(GrowableArray<intptr_t>* node_ids,
1854 GrowableArray<intptr_t>* token_indices, 1854 GrowableArray<const Array*>* arrays) const;
1855 GrowableArray<ZoneGrowableArray<const Class*>*>* types) const;
1856 1855
1857 private: 1856 private:
1858 static const intptr_t kEntrySize = sizeof(int32_t); // NOLINT 1857 static const intptr_t kEntrySize = sizeof(int32_t); // NOLINT
1859 1858
1860 void set_instructions(RawInstructions* instructions) { 1859 void set_instructions(RawInstructions* instructions) {
1861 raw_ptr()->instructions_ = instructions; 1860 raw_ptr()->instructions_ = instructions;
1862 } 1861 }
1863 void set_pointer_offsets_length(intptr_t value) { 1862 void set_pointer_offsets_length(intptr_t value) {
1864 ASSERT(value >= 0); 1863 ASSERT(value >= 0);
1865 raw_ptr()->pointer_offsets_length_ = value; 1864 raw_ptr()->pointer_offsets_length_ = value;
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
2969 } 2968 }
2970 2969
2971 2970
2972 void Context::SetAt(intptr_t index, const Instance& value) const { 2971 void Context::SetAt(intptr_t index, const Instance& value) const {
2973 StorePointer(InstanceAddr(index), value.raw()); 2972 StorePointer(InstanceAddr(index), value.raw());
2974 } 2973 }
2975 2974
2976 } // namespace dart 2975 } // namespace dart
2977 2976
2978 #endif // VM_OBJECT_H_ 2977 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/ic_data.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698