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

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

Issue 1020803004: Remove CanRetainOtherContext since embedded objects are now weak. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 KeyedAccessStoreMode* store_mode, 60 KeyedAccessStoreMode* store_mode,
61 IcCheckType* key_type); 61 IcCheckType* key_type);
62 void CountReceiverTypes(TypeFeedbackId id, 62 void CountReceiverTypes(TypeFeedbackId id,
63 SmallMapList* receiver_types); 63 SmallMapList* receiver_types);
64 64
65 void CollectReceiverTypes(TypeFeedbackId id, 65 void CollectReceiverTypes(TypeFeedbackId id,
66 SmallMapList* types); 66 SmallMapList* types);
67 template <class T> 67 template <class T>
68 void CollectReceiverTypes(T* obj, SmallMapList* types); 68 void CollectReceiverTypes(T* obj, SmallMapList* types);
69 69
70 static bool CanRetainOtherContext(Map* map, Context* native_context);
71 static bool CanRetainOtherContext(JSFunction* function,
72 Context* native_context);
73
74 Handle<JSFunction> GetCallTarget(FeedbackVectorICSlot slot); 70 Handle<JSFunction> GetCallTarget(FeedbackVectorICSlot slot);
75 Handle<AllocationSite> GetCallAllocationSite(FeedbackVectorICSlot slot); 71 Handle<AllocationSite> GetCallAllocationSite(FeedbackVectorICSlot slot);
76 Handle<JSFunction> GetCallNewTarget(FeedbackVectorSlot slot); 72 Handle<JSFunction> GetCallNewTarget(FeedbackVectorSlot slot);
77 Handle<AllocationSite> GetCallNewAllocationSite(FeedbackVectorSlot slot); 73 Handle<AllocationSite> GetCallNewAllocationSite(FeedbackVectorSlot slot);
78 74
79 bool LoadIsBuiltin(TypeFeedbackId id, Builtins::Name builtin_id); 75 bool LoadIsBuiltin(TypeFeedbackId id, Builtins::Name builtin_id);
80 76
81 // TODO(1571) We can't use ToBooleanStub::Types as the return value because 77 // TODO(1571) We can't use ToBooleanStub::Types as the return value because
82 // of various cycles in our headers. Death to tons of implementations in 78 // of various cycles in our headers. Death to tons of implementations in
83 // headers!! :-P 79 // headers!! :-P
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 Zone* zone_; 134 Zone* zone_;
139 Handle<UnseededNumberDictionary> dictionary_; 135 Handle<UnseededNumberDictionary> dictionary_;
140 Handle<TypeFeedbackVector> feedback_vector_; 136 Handle<TypeFeedbackVector> feedback_vector_;
141 137
142 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 138 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
143 }; 139 };
144 140
145 } } // namespace v8::internal 141 } } // namespace v8::internal
146 142
147 #endif // V8_TYPE_INFO_H_ 143 #endif // V8_TYPE_INFO_H_
OLDNEW
« src/ic/stub-cache.cc ('K') | « src/ic/stub-cache.cc ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698