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

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

Issue 10702195: Equality compare should record two arguments in IC data. INline double equality comparison. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
« no previous file with comments | « runtime/vm/intermediate_language_x64.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 2646 matching lines...) Expand 10 before | Expand all | Expand 10 after
2657 void GetCheckAt(intptr_t index, 2657 void GetCheckAt(intptr_t index,
2658 GrowableArray<intptr_t>* class_ids, 2658 GrowableArray<intptr_t>* class_ids,
2659 Function* target) const; 2659 Function* target) const;
2660 void GetOneClassCheckAt( 2660 void GetOneClassCheckAt(
2661 int index, intptr_t* class_id, Function* target) const; 2661 int index, intptr_t* class_id, Function* target) const;
2662 2662
2663 intptr_t GetReceiverClassIdAt(intptr_t index) const; 2663 intptr_t GetReceiverClassIdAt(intptr_t index) const;
2664 RawFunction* GetTargetAt(intptr_t index) const; 2664 RawFunction* GetTargetAt(intptr_t index) const;
2665 RawFunction* GetTargetForReceiverClassId(intptr_t class_id) const; 2665 RawFunction* GetTargetForReceiverClassId(intptr_t class_id) const;
2666 2666
2667 // Returns this->raw() if num_args_tested == 1, otherwise returns a new
2668 // ICData object containing only unique arg0 checks.
2669 RawICData* AsUnaryClassChecks() const;
2670
2667 static RawICData* New(const Function& caller_function, 2671 static RawICData* New(const Function& caller_function,
2668 const String& target_name, 2672 const String& target_name,
2669 intptr_t id, 2673 intptr_t id,
2670 intptr_t num_args_tested); 2674 intptr_t num_args_tested);
2671 2675
2672 private: 2676 private:
2673 RawArray* ic_data() const { 2677 RawArray* ic_data() const {
2674 return raw_ptr()->ic_data_; 2678 return raw_ptr()->ic_data_;
2675 } 2679 }
2676 2680
(...skipping 2453 matching lines...) Expand 10 before | Expand all | Expand 10 after
5130 } 5134 }
5131 5135
5132 5136
5133 intptr_t Stackmap::SizeInBits() const { 5137 intptr_t Stackmap::SizeInBits() const {
5134 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); 5138 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte);
5135 } 5139 }
5136 5140
5137 } // namespace dart 5141 } // namespace dart
5138 5142
5139 #endif // VM_OBJECT_H_ 5143 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698