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

Side by Side Diff: src/objects.h

Issue 650073002: vector-based ICs did not update type feedback counts correctly. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ports. Created 6 years, 2 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 8072 matching lines...) Expand 10 before | Expand all | Expand 10 after
8083 inline void change_ic_generic_count(int delta); 8083 inline void change_ic_generic_count(int delta);
8084 8084
8085 inline void initialize_storage(); 8085 inline void initialize_storage();
8086 8086
8087 inline void change_own_type_change_checksum(); 8087 inline void change_own_type_change_checksum();
8088 inline int own_type_change_checksum(); 8088 inline int own_type_change_checksum();
8089 8089
8090 inline void set_inlined_type_change_checksum(int checksum); 8090 inline void set_inlined_type_change_checksum(int checksum);
8091 inline bool matches_inlined_type_change_checksum(int checksum); 8091 inline bool matches_inlined_type_change_checksum(int checksum);
8092 8092
8093 8093 DECL_ACCESSORS(feedback_vector, TypeFeedbackVector)
8094 DECLARE_CAST(TypeFeedbackInfo) 8094 DECLARE_CAST(TypeFeedbackInfo)
8095 8095
8096 // Dispatched behavior. 8096 // Dispatched behavior.
8097 DECLARE_PRINTER(TypeFeedbackInfo) 8097 DECLARE_PRINTER(TypeFeedbackInfo)
8098 DECLARE_VERIFIER(TypeFeedbackInfo) 8098 DECLARE_VERIFIER(TypeFeedbackInfo)
8099 8099
8100 static const int kStorage1Offset = HeapObject::kHeaderSize; 8100 static const int kFeedbackVectorOffset = HeapObject::kHeaderSize;
8101 static const int kStorage1Offset = kFeedbackVectorOffset + kPointerSize;
8101 static const int kStorage2Offset = kStorage1Offset + kPointerSize; 8102 static const int kStorage2Offset = kStorage1Offset + kPointerSize;
8102 static const int kStorage3Offset = kStorage2Offset + kPointerSize; 8103 static const int kStorage3Offset = kStorage2Offset + kPointerSize;
8103 static const int kSize = kStorage3Offset + kPointerSize; 8104 static const int kSize = kStorage3Offset + kPointerSize;
8104 8105
8105 private: 8106 private:
8106 static const int kTypeChangeChecksumBits = 7; 8107 static const int kTypeChangeChecksumBits = 7;
8107 8108
8108 class ICTotalCountField: public BitField<int, 0, 8109 class ICTotalCountField: public BitField<int, 0,
8109 kSmiValueSize - kTypeChangeChecksumBits> {}; // NOLINT 8110 kSmiValueSize - kTypeChangeChecksumBits> {}; // NOLINT
8110 class OwnTypeChangeChecksum: public BitField<int, 8111 class OwnTypeChangeChecksum: public BitField<int,
(...skipping 2740 matching lines...) Expand 10 before | Expand all | Expand 10 after
10851 } else { 10852 } else {
10852 value &= ~(1 << bit_position); 10853 value &= ~(1 << bit_position);
10853 } 10854 }
10854 return value; 10855 return value;
10855 } 10856 }
10856 }; 10857 };
10857 10858
10858 } } // namespace v8::internal 10859 } } // namespace v8::internal
10859 10860
10860 #endif // V8_OBJECTS_H_ 10861 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698