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

Side by Side Diff: src/type-feedback-vector.h

Issue 2063823006: [turbofan] Fix includes for JSOperatorBuilder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « src/compiler/js-operator.cc ('k') | src/type-feedback-vector-inl.h » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_TYPE_FEEDBACK_VECTOR_H_ 5 #ifndef V8_TYPE_FEEDBACK_VECTOR_H_
6 #define V8_TYPE_FEEDBACK_VECTOR_H_ 6 #define V8_TYPE_FEEDBACK_VECTOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "src/base/logging.h" 10 #include "src/base/logging.h"
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 inline void ComputeCounts(int* with_type_info, int* generic); 194 inline void ComputeCounts(int* with_type_info, int* generic);
195 195
196 inline bool is_empty() const; 196 inline bool is_empty() const;
197 197
198 // Returns number of slots in the vector. 198 // Returns number of slots in the vector.
199 inline int slot_count() const; 199 inline int slot_count() const;
200 200
201 inline TypeFeedbackMetadata* metadata() const; 201 inline TypeFeedbackMetadata* metadata() const;
202 202
203 // Conversion from a slot to an integer index to the underlying array. 203 // Conversion from a slot to an integer index to the underlying array.
204 static inline int GetIndex(FeedbackVectorSlot slot); 204 static int GetIndex(FeedbackVectorSlot slot) {
205 return kReservedIndexCount + slot.ToInt();
206 }
205 static int GetIndexFromSpec(const FeedbackVectorSpec* spec, 207 static int GetIndexFromSpec(const FeedbackVectorSpec* spec,
206 FeedbackVectorSlot slot); 208 FeedbackVectorSlot slot);
207 209
208 // Conversion from an integer index to the underlying array to a slot. 210 // Conversion from an integer index to the underlying array to a slot.
209 static inline FeedbackVectorSlot ToSlot(int index); 211 static inline FeedbackVectorSlot ToSlot(int index);
210 inline Object* Get(FeedbackVectorSlot slot) const; 212 inline Object* Get(FeedbackVectorSlot slot) const;
211 inline void Set(FeedbackVectorSlot slot, Object* value, 213 inline void Set(FeedbackVectorSlot slot, Object* value,
212 WriteBarrierMode mode = UPDATE_WRITE_BARRIER); 214 WriteBarrierMode mode = UPDATE_WRITE_BARRIER);
213 215
214 // Returns slot kind for given slot. 216 // Returns slot kind for given slot.
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 KeyedAccessStoreMode GetKeyedAccessStoreMode() const; 556 KeyedAccessStoreMode GetKeyedAccessStoreMode() const;
555 IcCheckType GetKeyType() const; 557 IcCheckType GetKeyType() const;
556 558
557 InlineCacheState StateFromFeedback() const override; 559 InlineCacheState StateFromFeedback() const override;
558 Name* FindFirstName() const override; 560 Name* FindFirstName() const override;
559 }; 561 };
560 } // namespace internal 562 } // namespace internal
561 } // namespace v8 563 } // namespace v8
562 564
563 #endif // V8_TRANSITIONS_H_ 565 #endif // V8_TRANSITIONS_H_
OLDNEW
« no previous file with comments | « src/compiler/js-operator.cc ('k') | src/type-feedback-vector-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698