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

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

Issue 804933002: Make sure we don't accidentially serialize type feedback (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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/serialize.cc ('k') | src/type-feedback-vector.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 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/checks.h" 10 #include "src/checks.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 static Handle<TypeFeedbackVector> Allocate(Isolate* isolate, 160 static Handle<TypeFeedbackVector> Allocate(Isolate* isolate,
161 const FeedbackVectorSpec& spec); 161 const FeedbackVectorSpec& spec);
162 162
163 static Handle<TypeFeedbackVector> Copy(Isolate* isolate, 163 static Handle<TypeFeedbackVector> Copy(Isolate* isolate,
164 Handle<TypeFeedbackVector> vector); 164 Handle<TypeFeedbackVector> vector);
165 165
166 // Clears the vector slots and the vector ic slots. 166 // Clears the vector slots and the vector ic slots.
167 void ClearSlots(SharedFunctionInfo* shared); 167 void ClearSlots(SharedFunctionInfo* shared);
168 168
169 // Returns true if all slots are clear.
170 bool IsCleared();
171
169 // The object that indicates an uninitialized cache. 172 // The object that indicates an uninitialized cache.
170 static inline Handle<Object> UninitializedSentinel(Isolate* isolate); 173 static inline Handle<Object> UninitializedSentinel(Isolate* isolate);
171 174
172 // The object that indicates a megamorphic state. 175 // The object that indicates a megamorphic state.
173 static inline Handle<Object> MegamorphicSentinel(Isolate* isolate); 176 static inline Handle<Object> MegamorphicSentinel(Isolate* isolate);
174 177
175 // The object that indicates a premonomorphic state. 178 // The object that indicates a premonomorphic state.
176 static inline Handle<Object> PremonomorphicSentinel(Isolate* isolate); 179 static inline Handle<Object> PremonomorphicSentinel(Isolate* isolate);
177 180
178 // The object that indicates a generic state. 181 // The object that indicates a generic state.
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 int ExtractMaps(MapHandleList* maps) const OVERRIDE; 364 int ExtractMaps(MapHandleList* maps) const OVERRIDE;
362 MaybeHandle<Code> FindHandlerForMap(Handle<Map> map) const OVERRIDE; 365 MaybeHandle<Code> FindHandlerForMap(Handle<Map> map) const OVERRIDE;
363 virtual bool FindHandlers(CodeHandleList* code_list, 366 virtual bool FindHandlers(CodeHandleList* code_list,
364 int length = -1) const OVERRIDE; 367 int length = -1) const OVERRIDE;
365 Name* FindFirstName() const OVERRIDE; 368 Name* FindFirstName() const OVERRIDE;
366 }; 369 };
367 } 370 }
368 } // namespace v8::internal 371 } // namespace v8::internal
369 372
370 #endif // V8_TRANSITIONS_H_ 373 #endif // V8_TRANSITIONS_H_
OLDNEW
« no previous file with comments | « src/serialize.cc ('k') | src/type-feedback-vector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698