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

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

Issue 10592028: Improve inlining of bit_and operation for Mint and Smi in new compilers. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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 2580 matching lines...) Expand 10 before | Expand all | Expand 10 after
2591 void AddReceiverCheck(intptr_t receiver_class_id, 2591 void AddReceiverCheck(intptr_t receiver_class_id,
2592 const Function& target) const; 2592 const Function& target) const;
2593 void GetCheckAt(intptr_t index, 2593 void GetCheckAt(intptr_t index,
2594 GrowableArray<intptr_t>* class_ids, 2594 GrowableArray<intptr_t>* class_ids,
2595 Function* target) const; 2595 Function* target) const;
2596 void GetOneClassCheckAt( 2596 void GetOneClassCheckAt(
2597 int index, intptr_t* class_id, Function* target) const; 2597 int index, intptr_t* class_id, Function* target) const;
2598 2598
2599 intptr_t GetReceiverClassIdAt(intptr_t index) const; 2599 intptr_t GetReceiverClassIdAt(intptr_t index) const;
2600 RawFunction* GetTargetAt(intptr_t index) const; 2600 RawFunction* GetTargetAt(intptr_t index) const;
2601 RawFunction* GetTargetForReceiverClassId(intptr_t class_id) const;
2601 2602
2602 static RawICData* New(const Function& caller_function, 2603 static RawICData* New(const Function& caller_function,
2603 const String& target_name, 2604 const String& target_name,
2604 intptr_t id, 2605 intptr_t id,
2605 intptr_t num_args_tested); 2606 intptr_t num_args_tested);
2606 2607
2607 private: 2608 private:
2608 RawArray* ic_data() const { 2609 RawArray* ic_data() const {
2609 return raw_ptr()->ic_data_; 2610 return raw_ptr()->ic_data_;
2610 } 2611 }
(...skipping 2461 matching lines...) Expand 10 before | Expand all | Expand 10 after
5072 } 5073 }
5073 5074
5074 5075
5075 intptr_t Stackmap::SizeInBits() const { 5076 intptr_t Stackmap::SizeInBits() const {
5076 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); 5077 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte);
5077 } 5078 }
5078 5079
5079 } // namespace dart 5080 } // namespace dart
5080 5081
5081 #endif // VM_OBJECT_H_ 5082 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698