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

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

Issue 20755004: Make sure that ICData always contains valid data (non-null values). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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
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 3304 matching lines...) Expand 10 before | Expand all | Expand 10 after
3315 // num_args_tested == 1. 3315 // num_args_tested == 1.
3316 void AddReceiverCheck(intptr_t receiver_class_id, 3316 void AddReceiverCheck(intptr_t receiver_class_id,
3317 const Function& target, 3317 const Function& target,
3318 intptr_t count = 1) const; 3318 intptr_t count = 1) const;
3319 3319
3320 // Retrieving checks. 3320 // Retrieving checks.
3321 3321
3322 void GetCheckAt(intptr_t index, 3322 void GetCheckAt(intptr_t index,
3323 GrowableArray<intptr_t>* class_ids, 3323 GrowableArray<intptr_t>* class_ids,
3324 Function* target) const; 3324 Function* target) const;
3325 // Only for 'num_args_checked == 1'.
3325 void GetOneClassCheckAt(intptr_t index, 3326 void GetOneClassCheckAt(intptr_t index,
3326 intptr_t* class_id, 3327 intptr_t* class_id,
3327 Function* target) const; 3328 Function* target) const;
3328 intptr_t GetReceiverClassIdAt(intptr_t index) const; 3329 intptr_t GetReceiverClassIdAt(intptr_t index) const;
3329 intptr_t GetClassIdAt(intptr_t index, intptr_t arg_nr) const; 3330 intptr_t GetClassIdAt(intptr_t index, intptr_t arg_nr) const;
3330 3331
3331 RawFunction* GetTargetAt(intptr_t index) const; 3332 RawFunction* GetTargetAt(intptr_t index) const;
3332 RawFunction* GetTargetForReceiverClassId(intptr_t class_id) const; 3333 RawFunction* GetTargetForReceiverClassId(intptr_t class_id) const;
3333 3334
3334 void IncrementCountAt(intptr_t index, intptr_t value) const; 3335 void IncrementCountAt(intptr_t index, intptr_t value) const;
(...skipping 2695 matching lines...) Expand 10 before | Expand all | Expand 10 after
6030 6031
6031 6032
6032 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6033 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6033 intptr_t index) { 6034 intptr_t index) {
6034 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6035 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6035 } 6036 }
6036 6037
6037 } // namespace dart 6038 } // namespace dart
6038 6039
6039 #endif // VM_OBJECT_H_ 6040 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/object.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698