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

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

Issue 1464593002: Various cleanups (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « runtime/vm/flow_graph_optimizer.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 1854 matching lines...) Expand 10 before | Expand all | Expand 10 after
1865 void AddCheck(const GrowableArray<intptr_t>& class_ids, 1865 void AddCheck(const GrowableArray<intptr_t>& class_ids,
1866 const Function& target) const; 1866 const Function& target) const;
1867 // Adds sorted so that Smi is the first class-id. Use only for 1867 // Adds sorted so that Smi is the first class-id. Use only for
1868 // num_args_tested == 1. 1868 // num_args_tested == 1.
1869 void AddReceiverCheck(intptr_t receiver_class_id, 1869 void AddReceiverCheck(intptr_t receiver_class_id,
1870 const Function& target, 1870 const Function& target,
1871 intptr_t count = 1) const; 1871 intptr_t count = 1) const;
1872 1872
1873 // Retrieving checks. 1873 // Retrieving checks.
1874 1874
1875 // TODO(srdjan): GetCheckAt without target.
1876 void GetCheckAt(intptr_t index, 1875 void GetCheckAt(intptr_t index,
1877 GrowableArray<intptr_t>* class_ids, 1876 GrowableArray<intptr_t>* class_ids,
1878 Function* target) const; 1877 Function* target) const;
1878 void GetClassIdsAt(intptr_t index, GrowableArray<intptr_t>* class_ids) const;
1879
1879 // Only for 'num_args_checked == 1'. 1880 // Only for 'num_args_checked == 1'.
1880 void GetOneClassCheckAt(intptr_t index, 1881 void GetOneClassCheckAt(intptr_t index,
1881 intptr_t* class_id, 1882 intptr_t* class_id,
1882 Function* target) const; 1883 Function* target) const;
1883 // Only for 'num_args_checked == 1'. 1884 // Only for 'num_args_checked == 1'.
1884 intptr_t GetCidAt(intptr_t index) const; 1885 intptr_t GetCidAt(intptr_t index) const;
1885 1886
1886 intptr_t GetReceiverClassIdAt(intptr_t index) const; 1887 intptr_t GetReceiverClassIdAt(intptr_t index) const;
1887 intptr_t GetClassIdAt(intptr_t index, intptr_t arg_nr) const; 1888 intptr_t GetClassIdAt(intptr_t index, intptr_t arg_nr) const;
1888 1889
(...skipping 6313 matching lines...) Expand 10 before | Expand all | Expand 10 after
8202 8203
8203 8204
8204 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 8205 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
8205 intptr_t index) { 8206 intptr_t index) {
8206 return array.At((index * kEntryLength) + kTargetFunctionIndex); 8207 return array.At((index * kEntryLength) + kTargetFunctionIndex);
8207 } 8208 }
8208 8209
8209 } // namespace dart 8210 } // namespace dart
8210 8211
8211 #endif // VM_OBJECT_H_ 8212 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698