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

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

Issue 7535004: Merge bleeding edge up to 8774 into the GC branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 4 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/third_party/valgrind/valgrind.h ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 12 matching lines...) Expand all
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #ifndef V8_TYPE_INFO_H_ 28 #ifndef V8_TYPE_INFO_H_
29 #define V8_TYPE_INFO_H_ 29 #define V8_TYPE_INFO_H_
30 30
31 #include "allocation.h" 31 #include "allocation.h"
32 #include "globals.h" 32 #include "globals.h"
33 #include "zone.h"
34 #include "zone-inl.h" 33 #include "zone-inl.h"
35 34
36 namespace v8 { 35 namespace v8 {
37 namespace internal { 36 namespace internal {
38 37
39 const int kMaxKeyedPolymorphism = 4; 38 const int kMaxKeyedPolymorphism = 4;
40 39
41 // Unknown 40 // Unknown
42 // | \____________ 41 // | \____________
43 // | | 42 // | |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 Handle<String> name, 231 Handle<String> name,
233 CallKind call_kind); 232 CallKind call_kind);
234 void CollectKeyedReceiverTypes(unsigned ast_id, 233 void CollectKeyedReceiverTypes(unsigned ast_id,
235 ZoneMapList* types); 234 ZoneMapList* types);
236 235
237 CheckType GetCallCheckType(Call* expr); 236 CheckType GetCallCheckType(Call* expr);
238 Handle<JSObject> GetPrototypeForPrimitiveCheck(CheckType check); 237 Handle<JSObject> GetPrototypeForPrimitiveCheck(CheckType check);
239 238
240 bool LoadIsBuiltin(Property* expr, Builtins::Name id); 239 bool LoadIsBuiltin(Property* expr, Builtins::Name id);
241 240
241 // TODO(1571) We can't use ToBooleanStub::Types as the return value because
242 // of various cylces in our headers. Death to tons of implementations in
243 // headers!! :-P
244 byte ToBooleanTypes(unsigned ast_id);
245
242 // Get type information for arithmetic operations and compares. 246 // Get type information for arithmetic operations and compares.
243 TypeInfo UnaryType(UnaryOperation* expr); 247 TypeInfo UnaryType(UnaryOperation* expr);
244 TypeInfo BinaryType(BinaryOperation* expr); 248 TypeInfo BinaryType(BinaryOperation* expr);
245 TypeInfo CompareType(CompareOperation* expr); 249 TypeInfo CompareType(CompareOperation* expr);
246 bool IsSymbolCompare(CompareOperation* expr); 250 bool IsSymbolCompare(CompareOperation* expr);
247 TypeInfo SwitchType(CaseClause* clause); 251 TypeInfo SwitchType(CaseClause* clause);
248 TypeInfo IncrementType(CountOperation* expr); 252 TypeInfo IncrementType(CountOperation* expr);
249 253
250 private: 254 private:
251 ZoneMapList* CollectReceiverTypes(unsigned ast_id, 255 ZoneMapList* CollectReceiverTypes(unsigned ast_id,
(...skipping 17 matching lines...) Expand all
269 273
270 Handle<Context> global_context_; 274 Handle<Context> global_context_;
271 Handle<NumberDictionary> dictionary_; 275 Handle<NumberDictionary> dictionary_;
272 276
273 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 277 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
274 }; 278 };
275 279
276 } } // namespace v8::internal 280 } } // namespace v8::internal
277 281
278 #endif // V8_TYPE_INFO_H_ 282 #endif // V8_TYPE_INFO_H_
OLDNEW
« no previous file with comments | « src/third_party/valgrind/valgrind.h ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698