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

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: rebase again 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 22 matching lines...) Expand all
33 33
34 // TODO(1571) We can't use ForInStatement::ForInType as the return value due 34 // TODO(1571) We can't use ForInStatement::ForInType as the return value due
35 // to various cycles in our headers. 35 // to various cycles in our headers.
36 // TODO(rossberg): once all oracle access is removed from ast.cc, it should 36 // TODO(rossberg): once all oracle access is removed from ast.cc, it should
37 // be possible. 37 // be possible.
38 byte ForInType(FeedbackVectorSlot feedback_vector_slot); 38 byte ForInType(FeedbackVectorSlot feedback_vector_slot);
39 39
40 void GetStoreModeAndKeyType(TypeFeedbackId id, 40 void GetStoreModeAndKeyType(TypeFeedbackId id,
41 KeyedAccessStoreMode* store_mode, 41 KeyedAccessStoreMode* store_mode,
42 IcCheckType* key_type); 42 IcCheckType* key_type);
43 void GetLoadKeyType(TypeFeedbackId id, IcCheckType* key_type);
43 44
44 void PropertyReceiverTypes(TypeFeedbackId id, Handle<String> name, 45 void PropertyReceiverTypes(TypeFeedbackId id, Handle<String> name,
45 SmallMapList* receiver_types); 46 SmallMapList* receiver_types);
46 void PropertyReceiverTypes(FeedbackVectorICSlot slot, Handle<String> name, 47 void PropertyReceiverTypes(FeedbackVectorICSlot slot, Handle<String> name,
47 SmallMapList* receiver_types); 48 SmallMapList* receiver_types);
48 void KeyedPropertyReceiverTypes(TypeFeedbackId id, 49 void KeyedPropertyReceiverTypes(TypeFeedbackId id,
49 SmallMapList* receiver_types, 50 SmallMapList* receiver_types,
50 bool* is_string); 51 bool* is_string,
52 IcCheckType* key_type);
51 void KeyedPropertyReceiverTypes(FeedbackVectorICSlot slot, 53 void KeyedPropertyReceiverTypes(FeedbackVectorICSlot slot,
52 SmallMapList* receiver_types, 54 SmallMapList* receiver_types,
53 bool* is_string); 55 bool* is_string);
54 void AssignmentReceiverTypes(TypeFeedbackId id, 56 void AssignmentReceiverTypes(TypeFeedbackId id,
55 Handle<String> name, 57 Handle<String> name,
56 SmallMapList* receiver_types); 58 SmallMapList* receiver_types);
57 void KeyedAssignmentReceiverTypes(TypeFeedbackId id, 59 void KeyedAssignmentReceiverTypes(TypeFeedbackId id,
58 SmallMapList* receiver_types, 60 SmallMapList* receiver_types,
59 KeyedAccessStoreMode* store_mode, 61 KeyedAccessStoreMode* store_mode,
60 IcCheckType* key_type); 62 IcCheckType* key_type);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 Zone* zone_; 140 Zone* zone_;
139 Handle<UnseededNumberDictionary> dictionary_; 141 Handle<UnseededNumberDictionary> dictionary_;
140 Handle<TypeFeedbackVector> feedback_vector_; 142 Handle<TypeFeedbackVector> feedback_vector_;
141 143
142 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 144 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
143 }; 145 };
144 146
145 } } // namespace v8::internal 147 } } // namespace v8::internal
146 148
147 #endif // V8_TYPE_INFO_H_ 149 #endif // V8_TYPE_INFO_H_
OLDNEW
« no previous file with comments | « src/ic/ic-compiler.cc ('k') | src/type-info.cc » ('j') | src/typing.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698