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

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

Issue 755513003: Hydrogen: fix keyed loads with string keys (Closed) Base URL: gh:v8/v8@master
Patch Set: better fix 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
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/globals.h" 9 #include "src/globals.h"
10 #include "src/types.h" 10 #include "src/types.h"
(...skipping 20 matching lines...) Expand all
31 31
32 // TODO(1571) We can't use ForInStatement::ForInType as the return value due 32 // TODO(1571) We can't use ForInStatement::ForInType as the return value due
33 // to various cycles in our headers. 33 // to various cycles in our headers.
34 // TODO(rossberg): once all oracle access is removed from ast.cc, it should 34 // TODO(rossberg): once all oracle access is removed from ast.cc, it should
35 // be possible. 35 // be possible.
36 byte ForInType(FeedbackVectorSlot feedback_vector_slot); 36 byte ForInType(FeedbackVectorSlot feedback_vector_slot);
37 37
38 void GetStoreModeAndKeyType(TypeFeedbackId id, 38 void GetStoreModeAndKeyType(TypeFeedbackId id,
39 KeyedAccessStoreMode* store_mode, 39 KeyedAccessStoreMode* store_mode,
40 IcCheckType* key_type); 40 IcCheckType* key_type);
41 void GetLoadKeyType(TypeFeedbackId id, IcCheckType* key_type);
41 42
42 void PropertyReceiverTypes(TypeFeedbackId id, Handle<String> name, 43 void PropertyReceiverTypes(TypeFeedbackId id, Handle<String> name,
43 SmallMapList* receiver_types); 44 SmallMapList* receiver_types);
44 void KeyedPropertyReceiverTypes(TypeFeedbackId id, 45 void KeyedPropertyReceiverTypes(TypeFeedbackId id,
45 SmallMapList* receiver_types, 46 SmallMapList* receiver_types,
46 bool* is_string); 47 bool* is_string,
48 IcCheckType* key_type);
47 void AssignmentReceiverTypes(TypeFeedbackId id, 49 void AssignmentReceiverTypes(TypeFeedbackId id,
48 Handle<String> name, 50 Handle<String> name,
49 SmallMapList* receiver_types); 51 SmallMapList* receiver_types);
50 void KeyedAssignmentReceiverTypes(TypeFeedbackId id, 52 void KeyedAssignmentReceiverTypes(TypeFeedbackId id,
51 SmallMapList* receiver_types, 53 SmallMapList* receiver_types,
52 KeyedAccessStoreMode* store_mode, 54 KeyedAccessStoreMode* store_mode,
53 IcCheckType* key_type); 55 IcCheckType* key_type);
54 void CountReceiverTypes(TypeFeedbackId id, 56 void CountReceiverTypes(TypeFeedbackId id,
55 SmallMapList* receiver_types); 57 SmallMapList* receiver_types);
56 58
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 Zone* zone_; 124 Zone* zone_;
123 Handle<UnseededNumberDictionary> dictionary_; 125 Handle<UnseededNumberDictionary> dictionary_;
124 Handle<TypeFeedbackVector> feedback_vector_; 126 Handle<TypeFeedbackVector> feedback_vector_;
125 127
126 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 128 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
127 }; 129 };
128 130
129 } } // namespace v8::internal 131 } } // namespace v8::internal
130 132
131 #endif // V8_TYPE_INFO_H_ 133 #endif // V8_TYPE_INFO_H_
OLDNEW
« src/ic/ic-state.h ('K') | « src/ic/ic-state.h ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698