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

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

Issue 141893002: We no longer need to recover type cells from the oracle. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ports. Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « src/mips/lithium-codegen-mips.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 void CollectReceiverTypes(TypeFeedbackId id, 88 void CollectReceiverTypes(TypeFeedbackId id,
89 SmallMapList* types); 89 SmallMapList* types);
90 90
91 static bool CanRetainOtherContext(Map* map, Context* native_context); 91 static bool CanRetainOtherContext(Map* map, Context* native_context);
92 static bool CanRetainOtherContext(JSFunction* function, 92 static bool CanRetainOtherContext(JSFunction* function,
93 Context* native_context); 93 Context* native_context);
94 94
95 CheckType GetCallCheckType(TypeFeedbackId id); 95 CheckType GetCallCheckType(TypeFeedbackId id);
96 Handle<JSFunction> GetCallTarget(TypeFeedbackId id); 96 Handle<JSFunction> GetCallTarget(TypeFeedbackId id);
97 Handle<JSFunction> GetCallNewTarget(TypeFeedbackId id); 97 Handle<JSFunction> GetCallNewTarget(TypeFeedbackId id);
98 Handle<Cell> GetCallNewAllocationInfoCell(TypeFeedbackId id); 98 Handle<AllocationSite> GetCallNewAllocationSite(TypeFeedbackId id);
99 99
100 bool LoadIsBuiltin(TypeFeedbackId id, Builtins::Name builtin_id); 100 bool LoadIsBuiltin(TypeFeedbackId id, Builtins::Name builtin_id);
101 bool LoadIsStub(TypeFeedbackId id, ICStub* stub); 101 bool LoadIsStub(TypeFeedbackId id, ICStub* stub);
102 102
103 // TODO(1571) We can't use ToBooleanStub::Types as the return value because 103 // TODO(1571) We can't use ToBooleanStub::Types as the return value because
104 // of various cycles in our headers. Death to tons of implementations in 104 // of various cycles in our headers. Death to tons of implementations in
105 // headers!! :-P 105 // headers!! :-P
106 byte ToBooleanTypes(TypeFeedbackId id); 106 byte ToBooleanTypes(TypeFeedbackId id);
107 107
108 // Get type information for arithmetic operations and compares. 108 // Get type information for arithmetic operations and compares.
(...skipping 29 matching lines...) Expand all
138 void RelocateRelocInfos(ZoneList<RelocInfo>* infos, 138 void RelocateRelocInfos(ZoneList<RelocInfo>* infos,
139 byte* old_start, 139 byte* old_start,
140 byte* new_start); 140 byte* new_start);
141 void ProcessRelocInfos(ZoneList<RelocInfo>* infos); 141 void ProcessRelocInfos(ZoneList<RelocInfo>* infos);
142 void ProcessTypeFeedbackCells(Handle<Code> code); 142 void ProcessTypeFeedbackCells(Handle<Code> code);
143 143
144 // Returns an element from the backing store. Returns undefined if 144 // Returns an element from the backing store. Returns undefined if
145 // there is no information. 145 // there is no information.
146 Handle<Object> GetInfo(TypeFeedbackId id); 146 Handle<Object> GetInfo(TypeFeedbackId id);
147 147
148 // Return the cell that contains type feedback.
149 Handle<Cell> GetInfoCell(TypeFeedbackId id);
150
151 private: 148 private:
152 Handle<Context> native_context_; 149 Handle<Context> native_context_;
153 Isolate* isolate_; 150 Isolate* isolate_;
154 Zone* zone_; 151 Zone* zone_;
155 Handle<UnseededNumberDictionary> dictionary_; 152 Handle<UnseededNumberDictionary> dictionary_;
156 153
157 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 154 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
158 }; 155 };
159 156
160 } } // namespace v8::internal 157 } } // namespace v8::internal
161 158
162 #endif // V8_TYPE_INFO_H_ 159 #endif // V8_TYPE_INFO_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698