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

Side by Side Diff: src/type-info.h

Issue 1321993004: Vector ICs: ObjectLiteral refactoring for Oracle feedback (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE, turned off flag. Created 5 years, 3 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/hydrogen.cc ('k') | src/type-info.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 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_TYPE_INFO_H_ 5 #ifndef V8_TYPE_INFO_H_
6 #define V8_TYPE_INFO_H_ 6 #define V8_TYPE_INFO_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/contexts.h" 9 #include "src/contexts.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 void KeyedAssignmentReceiverTypes(TypeFeedbackId id, 59 void KeyedAssignmentReceiverTypes(TypeFeedbackId id,
60 SmallMapList* receiver_types, 60 SmallMapList* receiver_types,
61 KeyedAccessStoreMode* store_mode, 61 KeyedAccessStoreMode* store_mode,
62 IcCheckType* key_type); 62 IcCheckType* key_type);
63 void KeyedAssignmentReceiverTypes(FeedbackVectorICSlot slot, 63 void KeyedAssignmentReceiverTypes(FeedbackVectorICSlot slot,
64 SmallMapList* receiver_types, 64 SmallMapList* receiver_types,
65 KeyedAccessStoreMode* store_mode, 65 KeyedAccessStoreMode* store_mode,
66 IcCheckType* key_type); 66 IcCheckType* key_type);
67 void CountReceiverTypes(TypeFeedbackId id, 67 void CountReceiverTypes(TypeFeedbackId id,
68 SmallMapList* receiver_types); 68 SmallMapList* receiver_types);
69 void CountReceiverTypes(FeedbackVectorICSlot slot,
70 SmallMapList* receiver_types);
69 71
70 void CollectReceiverTypes(FeedbackVectorICSlot slot, SmallMapList* types); 72 void CollectReceiverTypes(FeedbackVectorICSlot slot, SmallMapList* types);
71 void CollectReceiverTypes(TypeFeedbackId id, 73 void CollectReceiverTypes(TypeFeedbackId id,
72 SmallMapList* types); 74 SmallMapList* types);
73 template <class T> 75 template <class T>
74 void CollectReceiverTypes(T* obj, SmallMapList* types); 76 void CollectReceiverTypes(T* obj, SmallMapList* types);
75 77
76 static bool IsRelevantFeedback(Map* map, Context* native_context) { 78 static bool IsRelevantFeedback(Map* map, Context* native_context) {
77 Object* constructor = map->GetConstructor(); 79 Object* constructor = map->GetConstructor();
78 return !constructor->IsJSFunction() || 80 return !constructor->IsJSFunction() ||
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 Zone* zone_; 151 Zone* zone_;
150 Handle<UnseededNumberDictionary> dictionary_; 152 Handle<UnseededNumberDictionary> dictionary_;
151 Handle<TypeFeedbackVector> feedback_vector_; 153 Handle<TypeFeedbackVector> feedback_vector_;
152 154
153 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 155 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
154 }; 156 };
155 157
156 } } // namespace v8::internal 158 } } // namespace v8::internal
157 159
158 #endif // V8_TYPE_INFO_H_ 160 #endif // V8_TYPE_INFO_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698