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

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

Issue 22580005: Implement IsNullCheck for CheckClassInstr. If input is nullable expected type, then check for null … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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 3320 matching lines...) Expand 10 before | Expand all | Expand 10 after
3331 3331
3332 // Retrieving checks. 3332 // Retrieving checks.
3333 3333
3334 void GetCheckAt(intptr_t index, 3334 void GetCheckAt(intptr_t index,
3335 GrowableArray<intptr_t>* class_ids, 3335 GrowableArray<intptr_t>* class_ids,
3336 Function* target) const; 3336 Function* target) const;
3337 // Only for 'num_args_checked == 1'. 3337 // Only for 'num_args_checked == 1'.
3338 void GetOneClassCheckAt(intptr_t index, 3338 void GetOneClassCheckAt(intptr_t index,
3339 intptr_t* class_id, 3339 intptr_t* class_id,
3340 Function* target) const; 3340 Function* target) const;
3341 // Only for 'num_args_checked == 1'.
3342 intptr_t GetCidAt(intptr_t index) const;
3343
3341 intptr_t GetReceiverClassIdAt(intptr_t index) const; 3344 intptr_t GetReceiverClassIdAt(intptr_t index) const;
3342 intptr_t GetClassIdAt(intptr_t index, intptr_t arg_nr) const; 3345 intptr_t GetClassIdAt(intptr_t index, intptr_t arg_nr) const;
3343 3346
3344 RawFunction* GetTargetAt(intptr_t index) const; 3347 RawFunction* GetTargetAt(intptr_t index) const;
3345 RawFunction* GetTargetForReceiverClassId(intptr_t class_id) const; 3348 RawFunction* GetTargetForReceiverClassId(intptr_t class_id) const;
3346 3349
3347 void IncrementCountAt(intptr_t index, intptr_t value) const; 3350 void IncrementCountAt(intptr_t index, intptr_t value) const;
3348 void SetCountAt(intptr_t index, intptr_t value) const; 3351 void SetCountAt(intptr_t index, intptr_t value) const;
3349 intptr_t GetCountAt(intptr_t index) const; 3352 intptr_t GetCountAt(intptr_t index) const;
3350 intptr_t AggregateCount() const; 3353 intptr_t AggregateCount() const;
(...skipping 2697 matching lines...) Expand 10 before | Expand all | Expand 10 after
6048 6051
6049 6052
6050 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6053 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6051 intptr_t index) { 6054 intptr_t index) {
6052 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6055 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6053 } 6056 }
6054 6057
6055 } // namespace dart 6058 } // namespace dart
6056 6059
6057 #endif // VM_OBJECT_H_ 6060 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698