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

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

Issue 8872060: Reland 10216 - Optimize the equality check case of ICCompare stubs. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 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 | 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // TODO(1571) We can't use ToBooleanStub::Types as the return value because 266 // TODO(1571) We can't use ToBooleanStub::Types as the return value because
267 // of various cylces in our headers. Death to tons of implementations in 267 // of various cylces in our headers. Death to tons of implementations in
268 // headers!! :-P 268 // headers!! :-P
269 byte ToBooleanTypes(unsigned ast_id); 269 byte ToBooleanTypes(unsigned ast_id);
270 270
271 // Get type information for arithmetic operations and compares. 271 // Get type information for arithmetic operations and compares.
272 TypeInfo UnaryType(UnaryOperation* expr); 272 TypeInfo UnaryType(UnaryOperation* expr);
273 TypeInfo BinaryType(BinaryOperation* expr); 273 TypeInfo BinaryType(BinaryOperation* expr);
274 TypeInfo CompareType(CompareOperation* expr); 274 TypeInfo CompareType(CompareOperation* expr);
275 bool IsSymbolCompare(CompareOperation* expr); 275 bool IsSymbolCompare(CompareOperation* expr);
276 Handle<Map> GetCompareMap(CompareOperation* expr);
276 TypeInfo SwitchType(CaseClause* clause); 277 TypeInfo SwitchType(CaseClause* clause);
277 TypeInfo IncrementType(CountOperation* expr); 278 TypeInfo IncrementType(CountOperation* expr);
278 279
279 private: 280 private:
280 void CollectReceiverTypes(unsigned ast_id, 281 void CollectReceiverTypes(unsigned ast_id,
281 Handle<String> name, 282 Handle<String> name,
282 Code::Flags flags, 283 Code::Flags flags,
283 SmallMapList* types); 284 SmallMapList* types);
284 285
285 void SetInfo(unsigned ast_id, Object* target); 286 void SetInfo(unsigned ast_id, Object* target);
(...skipping 13 matching lines...) Expand all
299 Handle<Context> global_context_; 300 Handle<Context> global_context_;
300 Isolate* isolate_; 301 Isolate* isolate_;
301 Handle<NumberDictionary> dictionary_; 302 Handle<NumberDictionary> dictionary_;
302 303
303 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 304 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
304 }; 305 };
305 306
306 } } // namespace v8::internal 307 } } // namespace v8::internal
307 308
308 #endif // V8_TYPE_INFO_H_ 309 #endif // V8_TYPE_INFO_H_
OLDNEW
« src/ic.cc ('K') | « src/mark-compact.cc ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698