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

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

Issue 8520006: 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 // TODO(1571) We can't use ToBooleanStub::Types as the return value because 252 // TODO(1571) We can't use ToBooleanStub::Types as the return value because
253 // of various cylces in our headers. Death to tons of implementations in 253 // of various cylces in our headers. Death to tons of implementations in
254 // headers!! :-P 254 // headers!! :-P
255 byte ToBooleanTypes(unsigned ast_id); 255 byte ToBooleanTypes(unsigned ast_id);
256 256
257 // Get type information for arithmetic operations and compares. 257 // Get type information for arithmetic operations and compares.
258 TypeInfo UnaryType(UnaryOperation* expr); 258 TypeInfo UnaryType(UnaryOperation* expr);
259 TypeInfo BinaryType(BinaryOperation* expr); 259 TypeInfo BinaryType(BinaryOperation* expr);
260 TypeInfo CompareType(CompareOperation* expr); 260 TypeInfo CompareType(CompareOperation* expr);
261 bool IsSymbolCompare(CompareOperation* expr); 261 bool IsSymbolCompare(CompareOperation* expr);
262 Handle<Map> GetCompareMap(CompareOperation* expr);
262 TypeInfo SwitchType(CaseClause* clause); 263 TypeInfo SwitchType(CaseClause* clause);
263 TypeInfo IncrementType(CountOperation* expr); 264 TypeInfo IncrementType(CountOperation* expr);
264 265
265 private: 266 private:
266 void CollectReceiverTypes(unsigned ast_id, 267 void CollectReceiverTypes(unsigned ast_id,
267 Handle<String> name, 268 Handle<String> name,
268 Code::Flags flags, 269 Code::Flags flags,
269 SmallMapList* types); 270 SmallMapList* types);
270 271
271 void SetInfo(unsigned ast_id, Object* target); 272 void SetInfo(unsigned ast_id, Object* target);
(...skipping 13 matching lines...) Expand all
285 Handle<Context> global_context_; 286 Handle<Context> global_context_;
286 Isolate* isolate_; 287 Isolate* isolate_;
287 Handle<NumberDictionary> dictionary_; 288 Handle<NumberDictionary> dictionary_;
288 289
289 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 290 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
290 }; 291 };
291 292
292 } } // namespace v8::internal 293 } } // namespace v8::internal
293 294
294 #endif // V8_TYPE_INFO_H_ 295 #endif // V8_TYPE_INFO_H_
OLDNEW
« src/heap.h ('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