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

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

Issue 7461026: Record ToBoolean's type information in Hydrogen's HBranch instruction, so we can use it in LCodeG... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 5 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
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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 Handle<String> name, 231 Handle<String> name,
232 CallKind call_kind); 232 CallKind call_kind);
233 void CollectKeyedReceiverTypes(unsigned ast_id, 233 void CollectKeyedReceiverTypes(unsigned ast_id,
234 ZoneMapList* types); 234 ZoneMapList* types);
235 235
236 CheckType GetCallCheckType(Call* expr); 236 CheckType GetCallCheckType(Call* expr);
237 Handle<JSObject> GetPrototypeForPrimitiveCheck(CheckType check); 237 Handle<JSObject> GetPrototypeForPrimitiveCheck(CheckType check);
238 238
239 bool LoadIsBuiltin(Property* expr, Builtins::Name id); 239 bool LoadIsBuiltin(Property* expr, Builtins::Name id);
240 240
241 // We can't use ToBooleanStub::Types as the return value because of various
242 // cylces in our headers. Death to tons of implementations in headers!! :-P
fschneider 2011/07/25 11:55:19 It would be a perfect opportunity to untangle one
Sven Panne 2011/07/25 14:06:32 Untangling our huge header mess is a separate task
243 byte ToBooleanTypes(unsigned ast_id);
244
241 // Get type information for arithmetic operations and compares. 245 // Get type information for arithmetic operations and compares.
242 TypeInfo UnaryType(UnaryOperation* expr); 246 TypeInfo UnaryType(UnaryOperation* expr);
243 TypeInfo BinaryType(BinaryOperation* expr); 247 TypeInfo BinaryType(BinaryOperation* expr);
244 TypeInfo CompareType(CompareOperation* expr); 248 TypeInfo CompareType(CompareOperation* expr);
245 bool IsSymbolCompare(CompareOperation* expr); 249 bool IsSymbolCompare(CompareOperation* expr);
246 TypeInfo SwitchType(CaseClause* clause); 250 TypeInfo SwitchType(CaseClause* clause);
247 TypeInfo IncrementType(CountOperation* expr); 251 TypeInfo IncrementType(CountOperation* expr);
248 252
249 private: 253 private:
250 ZoneMapList* CollectReceiverTypes(unsigned ast_id, 254 ZoneMapList* CollectReceiverTypes(unsigned ast_id,
(...skipping 17 matching lines...) Expand all
268 272
269 Handle<Context> global_context_; 273 Handle<Context> global_context_;
270 Handle<NumberDictionary> dictionary_; 274 Handle<NumberDictionary> dictionary_;
271 275
272 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 276 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
273 }; 277 };
274 278
275 } } // namespace v8::internal 279 } } // namespace v8::internal
276 280
277 #endif // V8_TYPE_INFO_H_ 281 #endif // V8_TYPE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698